Submission

Status:

[PPPPP][PPPPP][PPPPP][PP][P][P][P][P][PP][PP]

Subtask/Task Score:

{10/10}{10/10}{10/10}{10/10}{10/10}{10/10}{10/10}{10/10}{10/10}{10/10}

Score: 100

User: agnes_chan

Problemset: โดรน

Language: python

Time: 0.015 second

Submitted On: 2026-05-05 22:10:29

n , gx , pt = int(input())*0 , [] , sorted(map(int,input().split()))
for c in range(400,200,-2) : gx += [c]*9
for c in range(199,-1,-1) : gx += [c+1]*(1+c%2*9)
while len(pt) : n += pt.pop()*gx.pop()
print(n)