Submission #5621432


Source Code Expand

Copy
N = int(input())
A = sorted(
    list(map(int, input().split())))

print(sum([A[-i*2-2] for i in range(N)]))

Submission Info

Submission Time
Task A - AtCoder Group Contest
User natsuki_iwn
Language PyPy3 (2.4.0)
Score 300
Code Size 114 Byte
Status
Exec Time 322 ms
Memory 119520 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00_example_01.txt, 00_example_02.txt
All 300 / 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 166 ms 38256 KB
00_example_02.txt 164 ms 38256 KB
01.txt 164 ms 38384 KB
02.txt 162 ms 38256 KB
03.txt 163 ms 38256 KB
04.txt 161 ms 38256 KB
05.txt 175 ms 40560 KB
06.txt 322 ms 119520 KB
07.txt 234 ms 74324 KB
08.txt 321 ms 97440 KB
09.txt 320 ms 97464 KB
10.txt 320 ms 97336 KB