SOLUTION INFO
Python · main.py
import sys
def input():
return sys.stdin.readline().rstrip()
N = int(input())
arr = []
total = 0
for i in range(N):
arr.append(int(input()))
arr.sort(reverse = True)
ct = 1
for i in range(N):
if ct % 3 == 0:
ct = 1
continue
total += arr[i]
ct += 1
print(total)
SOLUTION DESCRIPTION
풀이 설명
등록된 풀이 설명이 없습니다.