Submission #162361

# Submission time Handle Problem Language Result Execution time Memory
162361 2019-11-07T18:16:37 Z boolodifjenula Akcija (COCI15_akcija) Python 3
16 / 80
348 ms 7856 KB
n=int(input())
L=[int(input()) for i in range (n)]
L.sort()
L.reverse()
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 25 ms 3300 KB Output isn't correct
2 Incorrect 26 ms 3300 KB Output isn't correct
3 Incorrect 25 ms 3300 KB Output isn't correct
4 Incorrect 26 ms 3300 KB Output isn't correct
5 Incorrect 28 ms 3300 KB Output isn't correct
6 Incorrect 327 ms 7080 KB Output isn't correct
7 Correct 280 ms 7368 KB Output is correct
8 Correct 285 ms 7544 KB Output is correct
9 Incorrect 325 ms 7844 KB Output isn't correct
10 Incorrect 348 ms 7856 KB Output isn't correct