Submission #5177243


Source Code Expand

Copy
n = int(input())
a = list(map(int,input().split()))
a.sort()
ans = 0
i = n
while i <= 3*n-1:
    ans += a[i]
    i +=2
print(ans)

Submission Info

Submission Time
Task A - AtCoder Group Contest
User duck24
Language PyPy3 (2.4.0)
Score 300
Code Size 139 Byte
Status
Exec Time 323 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 165 ms 38384 KB
00_example_02.txt 164 ms 38256 KB
01.txt 164 ms 38256 KB
02.txt 164 ms 38256 KB
03.txt 166 ms 38256 KB
04.txt 167 ms 38256 KB
05.txt 193 ms 41456 KB
06.txt 323 ms 119520 KB
07.txt 241 ms 72020 KB
08.txt 321 ms 95264 KB
09.txt 318 ms 93496 KB
10.txt 320 ms 93496 KB