Submission #4201440


Source Code Expand

n = input()
 
l = list(map(int, input().split()))
 
l.sort(reverse=True)
 
total = sum(l)
 
if (total - 2 * l[0] > 0 ) :
  print("Yes")
else:
  print("No")

Submission Info

Submission Time
Task B - Polygon
User Cummin
Language Python (3.4.3)
Score 200
Code Size 166 Byte
Status AC
Exec Time 18 ms
Memory 2940 KiB

Judge Result

Set Name All Sample
Score / Max Score 200 / 200 0 / 0
Status
AC × 18
AC × 3
Set Name Test Cases
All 0_small_1, 0_small_2, 0_small_3, 0_small_4, 1_max_1, 1_max_2, 1_max_3, 1_max_4, 2_hand_1, 2_hand_2, 2_hand_3, 2_hand_4, 2_hand_5, 2_hand_6, 2_hand_7, sample_01, sample_02, sample_03
Sample sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
0_small_1 AC 18 ms 2940 KiB
0_small_2 AC 18 ms 2940 KiB
0_small_3 AC 18 ms 2940 KiB
0_small_4 AC 18 ms 2940 KiB
1_max_1 AC 18 ms 2940 KiB
1_max_2 AC 18 ms 2940 KiB
1_max_3 AC 18 ms 2940 KiB
1_max_4 AC 18 ms 2940 KiB
2_hand_1 AC 18 ms 2940 KiB
2_hand_2 AC 18 ms 2940 KiB
2_hand_3 AC 18 ms 2940 KiB
2_hand_4 AC 18 ms 2940 KiB
2_hand_5 AC 18 ms 2940 KiB
2_hand_6 AC 18 ms 2940 KiB
2_hand_7 AC 18 ms 2940 KiB
sample_01 AC 18 ms 2940 KiB
sample_02 AC 18 ms 2940 KiB
sample_03 AC 17 ms 2936 KiB