Submission #5621245


Source Code Expand

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

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

Submission Info

Submission Time
Task A - AtCoder Group Contest
User natsuki_iwn
Language PyPy3 (2.4.0)
Score 0
Code Size 112 Byte
Status
Exec Time 324 ms
Memory 119648 KB

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 163 ms 38256 KB
00_example_02.txt 161 ms 38256 KB
01.txt 167 ms 38256 KB
02.txt 164 ms 38256 KB
03.txt 172 ms 38384 KB
04.txt 163 ms 38256 KB
05.txt 176 ms 40560 KB
06.txt 324 ms 119648 KB
07.txt 234 ms 74452 KB
08.txt 322 ms 96416 KB
09.txt 320 ms 96184 KB
10.txt 320 ms 96184 KB