Submission #3776396


Source Code Expand

N = int(input())
meats = list(map(int, input().strip().split()))
meats.sort()
answer = 0
index = 0
for meat in meats:
    if(index % 2 == 0):
        answer += meat
    index += 1
print(answer)

Submission Info

Submission Time
Task A - BBQ Easy
User aporo
Language Python (3.4.3)
Score 200
Code Size 204 Byte
Status AC
Exec Time 18 ms
Memory 2940 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 12
Set Name Test Cases
Sample sample-01.txt, sample-02.txt
All sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, sample-01.txt, sample-02.txt
Case Name Status Exec Time Memory
01-01.txt AC 18 ms 2940 KB
01-02.txt AC 18 ms 2940 KB
01-03.txt AC 18 ms 2940 KB
01-04.txt AC 18 ms 2940 KB
01-05.txt AC 18 ms 2936 KB
01-06.txt AC 18 ms 2940 KB
01-07.txt AC 18 ms 2940 KB
01-08.txt AC 18 ms 2940 KB
sample-01.txt AC 18 ms 2940 KB
sample-02.txt AC 18 ms 2940 KB