Submission #3599676


Source Code Expand

n=int(input().strip())
s=[]
su=0
for i in range(n):
    a=int(input().strip())
    s.append(a)
    su+=a
s.sort()

if su%10==0:
    fl=False
    for i in s:
        tm=su-i
        if tm%10!=0:
            su=tm
            fl=True
            break
else:
    fl=True

if fl:
    print(su)
else:
    print(0)

Submission Info

Submission Time
Task C - Bugged
User nphys
Language Python (3.4.3)
Score 300
Code Size 331 Byte
Status AC
Exec Time 18 ms
Memory 3064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 12
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12
Case Name Status Exec Time Memory
a01 AC 16 ms 3060 KB
a02 AC 17 ms 3060 KB
a03 AC 17 ms 3060 KB
b04 AC 17 ms 2940 KB
b05 AC 17 ms 3060 KB
b06 AC 17 ms 2940 KB
b07 AC 18 ms 2940 KB
b08 AC 17 ms 3060 KB
b09 AC 17 ms 3064 KB
b10 AC 17 ms 2940 KB
b11 AC 17 ms 2940 KB
b12 AC 17 ms 2940 KB