Problem: p03136
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
a=list(map(int, input().split()))
if max(a)*2 <= sum(a):
    print("Yes")
else:
    print("No")

Failing test case input:
4
2 0 2 0

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=input()
a=list(map(int, input().split()))
if max(a)*2 < sum(a):
    print("Yes")
else:
    print("No")

Problem: p03136
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a= int(input())
b=list(map(int,input().split()))
c=max(b)
if sum(b)-c<c:
       print("YES")
else:
       print("NO")

Failing test case input:
4
3 8 5 1

Expected output:
Yes

Actual output:
NO


Fixed submission (verdict: Accepted):
a= int(input())
b=list(map(int,input().split()))
c=max(b)
if c<sum(b)-c:
       print("Yes")
else:
       print("No")

Problem: p03136
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
a=list(map(int,input().split()))
print("YNeos"[max(a)*2>sum(a)::2])

Failing test case input:
4
2 0 2 0

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
input()
a=list(map(int,input().split()))
print("YNeos"[max(a)*2>=sum(a)::2])

Problem: p03136
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
l = list(map(int,input().split()))
if max(l) < sum(l)-max(l):
    print("YES")
else:
    print("NO")

Failing test case input:
10
0 0 1 9 0 14 33 101 -1 1

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int,input().split()))
if max(l) < sum(l)-max(l):
    print("Yes")
else:
    print("No")

Problem: p03136
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def nyu():
    N = int(input())
    L = list(map(int,input().split()))
    L.sort()

    return N,L

def check(N,L):
    sum =0 

    for n in range(N-1):
        sum += L[n]
    if sum > L[N-1]:
        print("YES")
    else:
        print("NO")
    



N,L =nyu()
check(N,L)







Failing test case input:
4
-1 -2 9 -4

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def nyu():
    N = int(input())
    L = list(map(int,input().split()))
    L.sort()

    return N,L

def check(N,L):
    sum =0 

    for n in range(N-1):
        sum += L[n]
    if sum > L[N-1]:
        print("Yes")
    else:
        print("No")
    



N,L =nyu()
check(N,L)

Problem: p03136
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input()
length = map(int, input().split(" "))
lm = max(length)
print("Yes" if lm < sum(length)-lm else "No")

Failing test case input:
4
6 6 1 0

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
input()
length = list(map(int, input().split(" ")))
lm = max(length)
print("Yes" if lm < sum(length) - lm else "No")

Problem: p03136
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n = int(input())
l = list(map(int, input().split()))
print("Yes" if max(l) > sum(l) - max(l) else "No")

Failing test case input:
4
12 -5 -2 -1

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int, input().split()))
print("Yes" if max(l) < sum(l) - max(l) else "No")