Submission #4051736


Source Code Expand

n = int(input())
s = [int(input()) for i in range(n)]
ans = sum(s)
s.sort()
if ans %10 != 0:
  print(ans)
else:
  for i in s:
    if (ans -i) %10 != 0:
      print(ans-i)
      break
  else:
    print(0)

Submission Info

Submission Time
Task C - Bugged
User rookzeno
Language PyPy3 (2.4.0)
Score 300
Code Size 215 Byte
Status AC
Exec Time 165 ms
Memory 38384 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 165 ms 38384 KB
a02 AC 159 ms 38256 KB
a03 AC 160 ms 38256 KB
b04 AC 160 ms 38256 KB
b05 AC 162 ms 38256 KB
b06 AC 162 ms 38256 KB
b07 AC 162 ms 38256 KB
b08 AC 164 ms 38256 KB
b09 AC 165 ms 38256 KB
b10 AC 160 ms 38256 KB
b11 AC 162 ms 38256 KB
b12 AC 161 ms 38256 KB