Submission #5621614


Source Code Expand

Copy
n = int(input())

a = list(map(int, input().split()))

sorted_a = sorted(a)
reversed_a = reversed(a)

aa = []
for i in range(3*n):
    sorted_a.pop(-1)
    reversed_a.pop(-1)
    aa.append(sorted_a.pop(-1))

print(sum(aa))

Submission Info

Submission Time
Task A - AtCoder Group Contest
User supercell
Language Python3 (3.4.3)
Score 0
Code Size 235 Byte
Status

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00_example_01.txt, 00_example_02.txt
All 0 / 300 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt
Case Name Status Exec Time Memory
00_example_01.txt
00_example_02.txt
01.txt
02.txt
03.txt
04.txt
05.txt
06.txt
07.txt
08.txt
09.txt
10.txt