Submission #1613286


Source Code Expand

N = int(raw_input())

s = [int(raw_input()) for _ in xrange(N)] 
s.sort()

ans = sum(s)
k = 0

for i in range(N):
    if s[i] % 10 != 0:
        k = s[i]
        break

if ans % 10 == 0 and k == 0:
    print 0
elif ans % 10 != 0:
    print ans
else:
    print ans-k

Submission Info

Submission Time
Task C - Bugged
User kira924age
Language Python (2.7.6)
Score 300
Code Size 283 Byte
Status AC
Exec Time 10 ms
Memory 2568 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 10 ms 2568 KB
a02 AC 10 ms 2568 KB
a03 AC 10 ms 2568 KB
b04 AC 10 ms 2568 KB
b05 AC 10 ms 2568 KB
b06 AC 10 ms 2568 KB
b07 AC 10 ms 2568 KB
b08 AC 10 ms 2568 KB
b09 AC 10 ms 2568 KB
b10 AC 10 ms 2568 KB
b11 AC 10 ms 2568 KB
b12 AC 10 ms 2568 KB