Submission #1194539


Source Code Expand

Copy
# -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys

def s():
    return raw_input().strip()
def n():
    return int(raw_input())
def d():
    return float(raw_input())

def ls():
    return raw_input().strip().split()
def ln():
    return map(int, raw_input().strip().split())
def ld():
    return map(float, raw_input().strip().split())

def fs():
    return [raw_input().strip() for i in xrange(input())]
def fn():
    return [int(raw_input().strip()) for i in xrange(input())]
def fd():
    return [float(raw_input().strip()) for i in xrange(input())]

N = n()
A = ln()

A.sort()

upper = A[N:][::-1]
print sum(upper[1::2])

Submission Info

Submission Time
Task A - AtCoder Group Contest
User mugenen
Language PyPy2 (5.6.0)
Score 300
Code Size 706 Byte
Status
Exec Time 515 ms
Memory 66012 KB

Judge Result

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 515 ms 34792 KB
00_example_02.txt 55 ms 33256 KB
01.txt 55 ms 33256 KB
02.txt 55 ms 33256 KB
03.txt 54 ms 33256 KB
04.txt 54 ms 33256 KB
05.txt 62 ms 33640 KB
06.txt 119 ms 66012 KB
07.txt 99 ms 59368 KB
08.txt 152 ms 59952 KB
09.txt 152 ms 59956 KB
10.txt 152 ms 59956 KB