Submission #1613283


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 0
Code Size 283 Byte
Status RE
Exec Time 11 ms
Memory 2568 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
RE × 3
RE × 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 RE 10 ms 2568 KB
a02 RE 10 ms 2568 KB
a03 RE 10 ms 2568 KB
b04 RE 10 ms 2568 KB
b05 RE 10 ms 2568 KB
b06 RE 10 ms 2568 KB
b07 RE 11 ms 2568 KB
b08 RE 10 ms 2568 KB
b09 RE 10 ms 2568 KB
b10 RE 10 ms 2568 KB
b11 RE 10 ms 2568 KB
b12 RE 11 ms 2568 KB