Submission #5035279


Source Code Expand

N=int(input())
s=[0]*N
total=0
for i in range(N):
    s[i]=int(input())
    total+=s[i]
s.sort()
if total%10!=0:
    print(total)
else:
    for i in range(N+1):
        if i==N:
            print(0)
            break
        if (total-s[i])%10!=0:
            print(total-s[i])
            break

Submission Info

Submission Time
Task C - Bugged
User nuto321
Language Python (3.4.3)
Score 300
Code Size 311 Byte
Status AC
Exec Time 19 ms
Memory 3060 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 18 ms 3060 KB
a02 AC 18 ms 3060 KB
a03 AC 18 ms 3060 KB
b04 AC 19 ms 2940 KB
b05 AC 18 ms 2936 KB
b06 AC 18 ms 2940 KB
b07 AC 19 ms 2940 KB
b08 AC 18 ms 3060 KB
b09 AC 18 ms 3060 KB
b10 AC 18 ms 2940 KB
b11 AC 18 ms 2940 KB
b12 AC 18 ms 3060 KB