Submission #396302
Source Code Expand
n = int(input()) table = list(map(int, input().split())) table.sort() table = table[::-1] res = 0 for i in range(n): if i % 2 == 0: res += table[i] print(res)
Submission Info
Submission Time | |
---|---|
Task | A - カードと兄妹 |
User | yumechi |
Language | Python (3.4.2) |
Score | 100 |
Code Size | 180 Byte |
Status | AC |
Exec Time | 96 ms |
Memory | 6800 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt |
All | 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 93 ms | 6632 KB |
01-02.txt | AC | 91 ms | 6736 KB |
01-03.txt | AC | 93 ms | 6764 KB |
01-04.txt | AC | 90 ms | 6628 KB |
01-05.txt | AC | 94 ms | 6632 KB |
01-06.txt | AC | 93 ms | 6752 KB |
01-07.txt | AC | 96 ms | 6748 KB |
01-08.txt | AC | 96 ms | 6752 KB |
01-09.txt | AC | 95 ms | 6756 KB |
01-10.txt | AC | 96 ms | 6752 KB |
01-11.txt | AC | 95 ms | 6800 KB |
sample-01.txt | AC | 96 ms | 6748 KB |
sample-02.txt | AC | 95 ms | 6756 KB |