s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time int64 0 100 | memory stringlengths 4 6 | code_size int64 15 14.7k | code stringlengths 15 14.7k | problem_id stringlengths 6 6 | problem_description stringlengths 358 9.83k | input stringlengths 2 4.87k | output stringclasses 807
values | __index_level_0__ int64 1.1k 1.22M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s468046015 | p04047 | u223447847 | 1565197863 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 159 | N = int(input())
L = list(map(int, input().split()))
ans = 0
L.sort(reverse=True)
for i in range(N):
ans += min(L[2*i], L[2*i+1])
i += 1
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,017 |
s682940463 | p04047 | u007550226 | 1565122657 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 64 | input();print(sum(sorted(list(map(int,input().split())))[0::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,018 |
s286041689 | p04047 | u800258529 | 1565116102 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 63 | input()
print(sum(sorted(list(map(int,input().split())))[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,019 |
s511886497 | p04047 | u921773161 | 1565099357 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 151 | N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = []
for i in range(0, 2*N, 2):
ans.append(L[i])
ans = sum(ans)
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,020 |
s728769738 | p04047 | u476124554 | 1565094615 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 138 | n = int(input())
l = list(map(int,input().split()))
l = sorted(l)
ans = 0
for i in range(0,2*n-1,2):
ans +=min(l[i],l[i+1])
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,021 |
s977640829 | p04047 | u941753895 | 1564863337 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 88 | n=int(input())
l=list(map(int,input().split()))
l.sort()
l.reverse()
print(sum(l[1::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,022 |
s093996612 | p04047 | u393512980 | 1564616352 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 114 | n = int(input())
l = list(map(int, input().split()))
l.sort()
print(sum([l[i] for i in range(2*n) if i % 2 == 0])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,023 |
s834184018 | p04047 | u164678731 | 1564572731 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 178 | # coding: utf-8
# Your code here!
n = int(input())
l = list(map(int, input().split()))
l.sort()
ans = 0
for i in range(2 * n):
if i % 2 == 0:
ans += l[i]
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,024 |
s422542835 | p04047 | u571969099 | 1564346535 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | n=int(input())
l=[int(i) for i in input().split()]
l.sort()
a=0
for i in range(n):
a+=l[i*2]
print(a) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,025 |
s017090555 | p04047 | u537782349 | 1564248797 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | a = int(input())
b = list(map(int, input().split()))
b = sorted(b, reverse=True)
c = 0
for i in range(1, len(b), 2):
c += min(b[i], b[i-1])
print(c)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,026 |
s808121460 | p04047 | u416758623 | 1564058036 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 140 | n = int(input())
ls = sorted(list(map(int, input().split())))
total = 0
for i in range(n):
total += min(ls[2*i], ls[2*i+1])
print(total) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,027 |
s581858740 | p04047 | u927534107 | 1564004603 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 64 | input();print(sum(sorted(list(map(int,input().split())))[0::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,028 |
s491200409 | p04047 | u077291787 | 1563984814 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 167 | # AGC001A - BBQ Easy
def main():
n = int(input())
L = sorted(map(int, input().rstrip().split()))
print(sum(L[::2]))
if __name__ == "__main__":
main() | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,029 |
s065183137 | p04047 | u668503853 | 1563808592 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 81 | n=int(input())
l=sorted(list(map(int, input().split())))
ll=l[::2]
print(sum(ll)) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,030 |
s335888062 | p04047 | u537782349 | 1563741670 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 199 | a = int(input())
b = list(map(int, input().split()))
b = sorted(b, reverse=True)
c = 0
d = 0
for i in range(1, len(b), 2):
c += min(b[i], b[i-1])
d += 1
if d == a:
break
print(c)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,031 |
s190065356 | p04047 | u889344512 | 1563690439 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 126 | n = int(input())
l = list(map(int,input().split()))
l.sort()
x = 0
for i in range(0,n):
x += min(l[2*i],l[2*i+1])
print(x) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,032 |
s366913334 | p04047 | u623659526 | 1563681078 | Python | Python (3.4.3) | py | Accepted | 32 | 4212 | 297 | import logging
logging.basicConfig(level=logging.INFO, format="%(message)s")
#logging.disable(logging.CRITICAL)
def main():
N = int(input())
L_1 = list(map(int, input().split()))
L_1.sort()
logging.info(L_1)
print(sum(L_1[::2]))
if __name__ == "__main__":
main()
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,033 |
s514489106 | p04047 | u263830634 | 1563658906 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0
for i in range(N):
ans += L[2 * i]
print (ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,034 |
s267813189 | p04047 | u970449052 | 1563338609 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 140 | n=int(input())
l=list(map(int,input().split()))
l=sorted(l,reverse=True)
ans=0
for i in range(0,n*2,2):
ans+=min(l[i],l[i+1])
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,035 |
s149968540 | p04047 | u677523557 | 1563204010 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0
for i in range(N):
ans += min(L[2*i], L[2*i+1])
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,036 |
s080639587 | p04047 | u148781101 | 1563164128 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | n = int(input())*2
arr = list(map(int, input().split()))
arr = sorted(arr)
sum = 0
for i in range(0,n,2):
sum += arr[i]
print(sum) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,037 |
s683141531 | p04047 | u623349537 | 1563124677 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 127 | N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0
for i in range(0, len(L), 2):
ans += L[i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,038 |
s261039339 | p04047 | u811000506 | 1563077814 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 120 | N = int(input())
L = list(map(int,input().split()))
L.sort()
ans = 0
for i in range(0,N*2,2):
ans += L[i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,039 |
s119827682 | p04047 | u668503853 | 1562980453 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 81 | n=int(input())
l=sorted(list(map(int, input().split())))
ll=l[::2]
print(sum(ll)) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,040 |
s378557202 | p04047 | u291766461 | 1562944241 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 153 | def main():
N = int(input())
L = list(map(int, input().split()))
L = sorted(L)
print(sum(L[::2]))
if __name__ == '__main__':
main() | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,041 |
s674375561 | p04047 | u663438907 | 1562876467 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 257 | N = int(input())
L = list(map(int, input().split()))
vlist = []
ans = 0
for i in range(N):
a = max(L)
L.remove(a)
b = max(L)
L.remove(b)
if a < b:
vlist.append(a)
else:
vlist.append(b)
for i in range(N):
ans += vlist[i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,042 |
s622968492 | p04047 | u772588522 | 1562811911 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 85 | n = int(input())
l = [int(x) for x in input().split()]
l.sort()
print(sum(l[0::2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,043 |
s889800320 | p04047 | u473291366 | 1562724846 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 132 | X = int(input())
L = list(map(int,input().split()))
L.sort()
ans = 0
for i in range(X):
ans += min(L[2*i], L[2*i+1])
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,044 |
s526809242 | p04047 | u996542290 | 1562711256 | Python | Python (3.4.3) | py | Accepted | 22 | 3064 | 382 | n = input()
l = list(map(int, input().split()))
def bubble_sort(arr):
change = True
while change:
change = False
for i in range(len(arr) - 1):
if arr[i] > arr[i + 1]:
arr[i], arr[i + 1] = arr[i + 1], arr[i]
change = True
return arr
ans=[]
L= bubble... | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,045 |
s220489988 | p04047 | u671252250 | 1562708860 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 177 | # coding: utf-8
# Your code here!
N = int(input())
a = sorted(list(map(int, input().split())))
ctr = 0
for i in range(N * 2):
if i % 2 == 0:
ctr += a[i]
print(ctr) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,046 |
s406281240 | p04047 | u539517139 | 1562593649 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | n=int(input())
x=sorted(list(map(int,input().split())))
s=0
for i in range(n):
s+=x[i*2]
print(s) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,047 |
s118992891 | p04047 | u116670634 | 1562476639 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 79 | n = int(input())
l = sorted(list(map(int, input().split())))
print(sum(l[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,048 |
s990239894 | p04047 | u223646582 | 1562454586 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | N = int(input())
L = sorted([int(i) for i in input().split()])
print(sum(L[::2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,049 |
s827146552 | p04047 | u691018832 | 1562288260 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 156 | import sys
input = sys.stdin.readline
n = int(input())
l = list(map(int, input().split()))
sum = 0
l.sort()
for i in range(n):
sum += l[2*i]
print(sum) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,050 |
s527071169 | p04047 | u693953100 | 1562191076 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 108 | n = int(input())
l = list(map(int,input().split()))
l.sort()
ans = 0
for i in l[::2]:
ans +=i
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,051 |
s761578572 | p04047 | u097317219 | 1562179684 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 122 | N = int(input())
L = list(map(int,input().split()))
L.sort()
ans = 0
i = 0
while(i<2*N):
ans += L[i]
i += 2
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,052 |
s062267832 | p04047 | u717001163 | 1562160269 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 116 | n=int(input())
l=list(map(int,input().split()))
l=sorted(l)
s=0
for i in range(len(l)):
if i%2==0:s+=l[i]
print(s) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,053 |
s004636450 | p04047 | u891482208 | 1562079362 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | n = input()
a = sorted(list(map(int, input().split())))
ans = 0
for i in range(0, len(a), 2):
ans += a[i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,054 |
s060534058 | p04047 | u537782349 | 1561835299 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 137 | a = int(input())
b = list(map(int, input().split()))
b.sort()
c = 0
for i in range(len(b)-1, 0, -2):
c += min(b[i], b[i-1])
print(c)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,055 |
s101967467 | p04047 | u537782349 | 1561834750 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 137 | a = int(input())
b = list(map(int, input().split()))
b.sort()
c = 0
for i in range(len(b)-1, 0, -2):
c += min(b[i], b[i-1])
print(c)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,056 |
s083671591 | p04047 | u865741247 | 1561770675 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 127 | N = int(input()) * 2
Ls= list(map(int,input().split(" ")))
Ls.sort()
ans = 0
for i in range(0,N,2):
ans+= Ls[i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,057 |
s530761163 | p04047 | u727073061 | 1561656175 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 186 | wood = input()
lis_1 = list(map(int,input().split()))
lis_1.sort()
guzai = 0
for i in range(int(wood)):
max_gu = min(lis_1[2*i],lis_1[2*i+1])
guzai += int(max_gu)
print(guzai)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,058 |
s313656070 | p04047 | u114366889 | 1561603417 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 185 | N = input()
Inp = list(input().split())
Inp = [int(i) for i in Inp]
Inp.sort()
ans = 0
for i in range(0,len(Inp),2) :
kushi = [int(Inp[i]),int(Inp[i+1])]
ans += min(kushi)
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,059 |
s924701019 | p04047 | u623687794 | 1561583362 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 75 | n=int(input())
k=list(map(int,input().split()))
k.sort()
print(sum(k[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,060 |
s564692175 | p04047 | u970308980 | 1561521170 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 75 | N = int(input())
L = sorted(map(int, input().split()))
print(sum(L[::2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,061 |
s452761165 | p04047 | u905268546 | 1561349583 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | N = int(input())
L = list(map(int, input().split()))
L.sort()
print(sum(L[0::2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,062 |
s024767573 | p04047 | u314050667 | 1561346944 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 131 | N = int(input())
length = sorted(list(map(int, input().split())))
ans = 0
for i in range(N):
ans += length[(i*2)]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,063 |
s343719767 | p04047 | u500297289 | 1561266950 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 142 | N = int(input())
L = list(map(int, input().split()))
L.sort(reverse=True)
ans = 0
for i in range(1, 2 * N, 2):
ans += L[i]
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,064 |
s194982686 | p04047 | u497046426 | 1561238985 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 91 | N = int(input())
*L, = map(int, input().split())
L = sorted(L)
ans = sum(L[::2])
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,065 |
s517054406 | p04047 | u504562455 | 1561081138 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | n = int(input())
l = [int(i) for i in input().split()]
l.sort()
print(sum([l[i] for i in range(len(l)) if i%2 == 0]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,066 |
s526971280 | p04047 | u239342230 | 1560731681 | Python | Python (3.4.3) | py | Accepted | 19 | 3316 | 80 | N = int(input())
L = sorted(list(map(int, input().split())))
print(sum(L[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,067 |
s211349886 | p04047 | u102278909 | 1560700686 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | N = int(input())
L = [int(x) for x in input().split()]
L.sort()
ans = 0
for i in range(N):
ans += L[i * 2]
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,068 |
s813502878 | p04047 | u971161994 | 1560628318 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | N = [int(v) for v in input().split()]
L = [int(v) for v in input().split()]
L.sort()
L_even=L[0::2]
goukei=sum(L_even)
print(str(goukei))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,069 |
s731818535 | p04047 | u319818856 | 1560487888 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 206 | def BBQ_easy(N: int, L: list)->int:
L.sort()
return sum(L[0::2])
if __name__ == "__main__":
N = int(input())
L = [int(s) for s in input().split()]
ans = BBQ_easy(N, L)
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,070 |
s968220157 | p04047 | u102461423 | 1560391468 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 98 | N = int(input())
L = [int(x) for x in input().split()]
L.sort()
answer = sum(L[::2])
print(answer) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,071 |
s632559656 | p04047 | u315703650 | 1560053064 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 144 | n = int(input())
l = list(map(int,input().split()))
l = sorted(l)
ans = 0
for i in range(len(l)):
if i%2==0:
ans += l[i]
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,072 |
s149817137 | p04047 | u329058683 | 1559993851 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 94 | N=int(input())
L=list(map(int,input().split()))
L.sort()
S=0
for i in L[::2]:
S=S+i
print(S) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,073 |
s892460810 | p04047 | u560988566 | 1559966568 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | n = int(input())
l = list(map(int, input().split()))
ans = 0
l.sort()
for i in range(n):
ans += l[2*i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,074 |
s427633441 | p04047 | u867736259 | 1559882754 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 119 | a = int(input())
b = list(map(int,input().split()))
b = sorted(b)
c = 0
for i in range(0,2*a,2):
c += b[i]
print(c) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,075 |
s499486351 | p04047 | u764600134 | 1559837994 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 400 | # -*- coding: utf-8 -*-
"""
A - BBQ Easy
https://atcoder.jp/contests/agc001/tasks/agc001_a
"""
import sys
def solve(N, L):
ans = 0
while L:
a = L.pop()
b = L.pop()
ans += min(a, b)
return ans
def main(args):
N = int(input())
L = sorted(map(int, input().split()))
ans ... | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,076 |
s917775922 | p04047 | u148781101 | 1559719276 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 213 | N = int(input())*2
N -= 1
inp = input()
skewers=[]
for num in inp.split():
skewers.append(int(num))
skewers = sorted(skewers)
total = 0
for i in range(0,N,2):
num = int(skewers[i])
total+=num
print(total)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,077 |
s144746670 | p04047 | u203597140 | 1559689734 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 143 | n, = [int(v) for v in input().split()]
l = [int(v) for v in input().split()]
l.sort()
ans = 0
for i in range(n):
ans += l[2 * i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,078 |
s975013764 | p04047 | u700636661 | 1559634966 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 298 | import sys
def main():
sinputl = sys.stdin.readline
num_skewer = int(sinputl().strip())
input = [int(x) for x in sinputl().split()]
input.sort()
count = 0
for i in range(num_skewer):
count += input[i * 2]
print(count)
if __name__ == "__main__":
main() | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,079 |
s285661954 | p04047 | u919633157 | 1559603388 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 112 | n=int(input())
l=sorted(map(int,input().split()))
ans=0
while len(l)>1:
ans+=min(l.pop(),l.pop())
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,080 |
s925852761 | p04047 | u655048024 | 1559494576 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | N = int(input())
L = list(map(int,input().split()))
L.sort()
maximum = 0
for i in range(N):
maximum += L[2*i]
print(maximum) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,081 |
s921951726 | p04047 | u906129425 | 1559287751 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 80 | n = int(input())
a = list(map(int, input().split()))
a.sort()
print(sum(a[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,082 |
s894217862 | p04047 | u305052967 | 1559254118 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | N = int(input())
L = list(map(int, input().split()))
L.sort()
s = 0
for n in range(N):
s += L[2*n]
print(s)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,083 |
s524611392 | p04047 | u332049206 | 1559241640 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 117 | n = int(input())
lis = list(map(int,input().split()))
lis.sort()
S = 0
for i in range(n):
S += lis[2*i]
print(S)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,084 |
s410226071 | p04047 | u305052967 | 1559169835 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 132 | n = int(input())
list_L = list(map(int, input().split()))
list_L.sort()
sum = 0
for i in range(n):
sum += list_L[2*i]
print(sum) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,085 |
s389758388 | p04047 | u081688405 | 1559159402 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | n = int(input())
ls = sorted(list(map(int, input().split())))
print(sum(ls[::2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,086 |
s452973775 | p04047 | u388415336 | 1559025399 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 211 | num_meals = int(input())
skewers = list(map(int, input().split()))
skewers.sort()
ingredients = 0
for skewer in range(0,(len(skewers) - 1),+2):
ingredients = ingredients + skewers[skewer]
print(ingredients)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,087 |
s988876740 | p04047 | u388415336 | 1559025086 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 211 | num_meals = int(input())
skewers = list(map(int, input().split()))
skewers.sort()
ingredients = 0
for skewer in range(0,(len(skewers) - 1),+2):
ingredients = ingredients + skewers[skewer]
print(ingredients)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,088 |
s510371751 | p04047 | u767664985 | 1558951050 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 81 | N = int(input())
L = sorted(list(map(int, input().split())))
print(sum(L[:: 2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,089 |
s710570659 | p04047 | u957872856 | 1558843160 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 144 | a = int(input())
b = list(map(int,input().split()))
b.sort()
j = 0
num = 0
for i in range(a):
c = b[j:j+2]
num += min(c)
j += 2
print(num) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,090 |
s203422869 | p04047 | u278886389 | 1558554953 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 82 | N = int(input())
L = list(map(int,input().split(" ")))
L.sort()
print(sum(L[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,091 |
s898538856 | p04047 | u532966492 | 1558355764 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | N=int(input())
M=sorted(list(map(int,input().split())))
if N%2==1:
M.pop(-1)
print(sum(M[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,092 |
s839767056 | p04047 | u614314290 | 1558229196 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 81 | N = int(input())
L = list(map(int, input().split()))
print(sum(sorted(L)[::2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,093 |
s454632175 | p04047 | u268516119 | 1558107886 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 84 | input()
L=[int(l) for l in input().split()]
L.sort(reverse=True)
print(sum(L[1::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,094 |
s330044504 | p04047 | u606045429 | 1557983916 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 85 | N = int(input())
L = [int(i) for i in input().split()]
L.sort()
print(sum(L[::2]))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,095 |
s421300965 | p04047 | u077019541 | 1557949744 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 126 | N =int(input())
Ls = sorted(map(int,input().split()))
ans = [min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)]
print(sum(ans)) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,096 |
s284810303 | p04047 | u169639579 | 1557888665 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 124 | N = int(input())
s = list(map(int,input().split()))
s.sort()
sum = 0
for i in range(N):
sum = sum + s[2*i]
print(sum) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,097 |
s424416476 | p04047 | u273928723 | 1557521610 | Python | Python (3.4.3) | py | Accepted | 20 | 3316 | 134 | n=input()
a=input().split()
a=[int(i) for i in a]
a.sort()
count=0
ans=0
for i in a:
if count%2==0:
ans+=i
count+=1
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,098 |
s967486377 | p04047 | u417622667 | 1557467904 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 227 | #!/usr/bin/python
# -*- Coding: utf-8 -*-
import sys
L = [input()]
L = sorted(list(map(int,input().split())), key= lambda x: -x)
test = lambda L, S=0, f=lambda f, L, S : f(f,L[2:],S+L[1]) if L else print(S): f(f, L, S)
test(L) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,099 |
s665361813 | p04047 | u843911000 | 1557444872 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 124 | n = int(input())
l = list(map(int, input().split()))
l.sort()
ans = 0
for i in range(0, 2*n, 2):
ans += l[i]
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,100 |
s123383268 | p04047 | u693694535 | 1557444283 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 103 | N=input().split()
L_i = list(map(int, input().split()))
L_i.sort(reverse=False)
print(sum(L_i[0::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,101 |
s251537131 | p04047 | u030235503 | 1557443503 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 176 | n = int(input()) * 2
l = input().split()
s = []
for i in range(n):
s.append(int(l[i]))
s.sort(reverse=True)
sum = 0
for qq in range(1,n,2):
sum = sum + s[qq]
print(sum) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,102 |
s089514183 | p04047 | u531813438 | 1557443291 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 100 | N = int(input())
L = list(map(int, input().split()))
L_s = sorted(L)
A = sum(L_s[0::2])
print(A) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,103 |
s869552136 | p04047 | u531813438 | 1557443163 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 100 | N = int(input())
L = list(map(int, input().split()))
L_s = sorted(L)
A = sum(L_s[0::2])
print(A) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,104 |
s995049623 | p04047 | u360980679 | 1557442625 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 135 | N = int(input())
L = list(map(int, input().split()))
res = 0
L.sort()
for i in range(len(L)%2, len(L), 2):
res += L[i]
print(res)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,105 |
s985929482 | p04047 | u977193988 | 1557441661 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 122 | N=int(input())
L=[int(i) for i in input().split()]
L.sort()
K=[]
for i in range(N):
K.append(L[i*2])
print(sum(K))
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,106 |
s196227405 | p04047 | u637593381 | 1557441565 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 113 | li = []
N = int(input())
li = list(map(int, input().split()))
li.sort(reverse=True)
re = sum(li[1::2])
print(re) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,107 |
s712920954 | p04047 | u350248178 | 1557441441 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 130 | n=int(input())
l=[int(i) for i in input().split()]
l.sort()
ans=0
for i in range(2*n):
if i%2==0:
ans+=l[i]
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,108 |
s502866534 | p04047 | u734876600 | 1557441393 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 82 | n = int(input())
li = list(map(int,input().split()))
li.sort()
print(sum(li[::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,109 |
s247656984 | p04047 | u350248178 | 1557441346 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 131 | n=int(input())
l=[int(i) for i in input().split()]
l.sort()
ans=0
for i in range(2*n):
if i%2==0:
ans+=l[i]
print(ans)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,110 |
s713584869 | p04047 | u960171798 | 1557441306 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 121 | N = int(input())
L = list(map(int, input().split()))
l = sorted(L)
cnt = 0
for i in range(N):
cnt += l[2*i]
print(cnt)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,111 |
s148533334 | p04047 | u832039789 | 1557441185 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | n = int(input())
l = list(map(int,input().split()))
l = sorted(l)[::-1]
res = 0
for i in range(1,2 * n,2):
res += l[i]
print(res) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,112 |
s171679355 | p04047 | u740284863 | 1557441096 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 121 | N = int(input())
L = sorted(list(map(int,input().split())))
sum = 0
for i in range(0,2*N,2):
sum += L[i]
print(sum)
| p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,113 |
s363640204 | p04047 | u133886644 | 1557377841 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 185 | import sys
input = sys.stdin.readline
N = int(input())
L = [int(v) for v in input().split()]
L.sort()
ans = 0
for i in range(N):
ans += min(L[i * 2], L[i * 2 + 1])
print(ans) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,114 |
s477451268 | p04047 | u091051505 | 1557193491 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 83 | n = int(input())
a = [int(i) for i in input().split()]
a.sort()
print(sum(a[0::2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,115 |
s400473028 | p04047 | u969190727 | 1557085106 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 76 | n=int(input())
print(sum(sorted([int(i) for i in input().split()])[-2::-2])) | p04047 | <span class="lang-en">
<p>Score : <var>200</var> points</p>
<div class="part">
<section>
<h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p>
<p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p>
<div style="text-align: center;">
<img src="https://agc001.contest.atcoder.jp/img/a... | 2
1 3 1 2
| 3
| 1,217,116 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.