Submission #1983046


Source Code Expand

import numpy as np
import pdb

def main():
    N = int(raw_input())
    pts = np.zeros(N)
    for k in range(N):
        pts[k] = int(raw_input())

    myanswer = solve(pts)
    
    print int(myanswer)

def solve(pts):
    N = len(pts)
    totalvalue = np.sum(pts)
    if np.mod(totalvalue, 10) != 0:
        return totalvalue

    notmultipleof10 = np.where(np.mod(pts, 10) > 0)[0]
    if len(notmultipleof10) == 0:
        return 0
    else:
        selection = pts[notmultipleof10]
        lost = np.min(selection)
        return totalvalue - lost




if __name__ == '__main__':
    main()

Submission Info

Submission Time
Task C - Bugged
User masomatics
Language Python (2.7.6)
Score 300
Code Size 626 Byte
Status AC
Exec Time 294 ms
Memory 18764 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 294 ms 18764 KB
a02 AC 92 ms 10528 KB
a03 AC 92 ms 10528 KB
b04 AC 92 ms 10528 KB
b05 AC 91 ms 10528 KB
b06 AC 92 ms 10528 KB
b07 AC 93 ms 10528 KB
b08 AC 92 ms 10528 KB
b09 AC 93 ms 10528 KB
b10 AC 92 ms 10528 KB
b11 AC 94 ms 10528 KB
b12 AC 92 ms 10528 KB