Submission #162360

# Submission time Handle Problem Language Result Execution time Memory
162360 2019-11-07T18:10:45 Z boolodifjenula Akcija (COCI15_akcija) Python 3
40 / 80
331 ms 7756 KB
n=int(input())
L=[int(input()) for i in range (n)]
L.sort()
z=0
for i in range (n):
    if i%3==0:
        continue
    else:
        z+=L[i]
if n%3==1:
    z+=L[n-1]
elif n%3==2:
    z+=L[n-2]
print(z)
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 3300 KB Output isn't correct
2 Incorrect 25 ms 3300 KB Output isn't correct
3 Incorrect 25 ms 3272 KB Output isn't correct
4 Correct 25 ms 3300 KB Output is correct
5 Correct 28 ms 3400 KB Output is correct
6 Correct 320 ms 6948 KB Output is correct
7 Correct 281 ms 7448 KB Output is correct
8 Correct 309 ms 7380 KB Output is correct
9 Incorrect 331 ms 7712 KB Output isn't correct
10 Incorrect 322 ms 7756 KB Output isn't correct