Submission #2380544


Source Code Expand

#!/usr/bin/env python3

import sys, math, copy
# import fractions, itertools
# import numpy as np
# import scipy

HUGE = 2147483647
HUGEL = 9223372036854775807
ABC = "abcdefghijklmnopqrstuvwxyz"

def main():
    n = int(input())
    ai = list(map(int, input().split()))
    ai = sorted(ai, reverse=True)
    assert len(ai) == n * 3
    res = 0
    for i in range(n):
        res += ai[i * 2 + 1]
    print(res)

main()

Submission Info

Submission Time
Task A - AtCoder Group Contest
User sen_7
Language Python (3.4.3)
Score 300
Code Size 419 Byte
Status AC
Exec Time 216 ms
Memory 37596 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 12
Set Name Test Cases
Sample 00_example_01.txt, 00_example_02.txt
All 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 AC 21 ms 3444 KB
00_example_02.txt AC 22 ms 3444 KB
01.txt AC 22 ms 3444 KB
02.txt AC 22 ms 3444 KB
03.txt AC 22 ms 3444 KB
04.txt AC 22 ms 3444 KB
05.txt AC 32 ms 5412 KB
06.txt AC 113 ms 37596 KB
07.txt AC 83 ms 8968 KB
08.txt AC 214 ms 32616 KB
09.txt AC 215 ms 32668 KB
10.txt AC 216 ms 32648 KB