답안 #162359

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
162359 2019-11-07T18:10:03 Z boolodifjenula Akcija (COCI15_akcija) Python 3
0 / 80
331 ms 7980 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)
# 결과 실행 시간 메모리 Grader output
1 Incorrect 25 ms 3300 KB Output isn't correct
2 Incorrect 25 ms 3428 KB Output isn't correct
3 Incorrect 29 ms 3300 KB Output isn't correct
4 Incorrect 26 ms 3276 KB Output isn't correct
5 Incorrect 28 ms 3400 KB Output isn't correct
6 Incorrect 328 ms 7084 KB Output isn't correct
7 Incorrect 297 ms 7416 KB Output isn't correct
8 Incorrect 286 ms 7416 KB Output isn't correct
9 Incorrect 330 ms 7716 KB Output isn't correct
10 Incorrect 331 ms 7980 KB Output isn't correct