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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s235960038 | p04047 | u696684809 | 1600913972 | Python | Python (3.8.2) | py | Accepted | 29 | 8944 | 131 | n = int(input())
l = list(map(int,input().split()))
answer = 0
l = sorted(l)
for i in range(0,2*n,2):
answer +=l[i]
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,216,717 |
s002336718 | p04047 | u500376440 | 1600874382 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61940 | 176 | import sys
def input():
return sys.stdin.readline().rstrip()
N=int(input())
L=sorted(list(map(int,input().split())))
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,216,718 |
s186277353 | p04047 | u572032237 | 1600837635 | Python | Python (3.8.2) | py | Accepted | 26 | 8932 | 143 | n = int(input())
l = [int(s) for s in input().split()]
l.sort()
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,216,719 |
s162850141 | p04047 | u016844138 | 1600468632 | Python | Python (3.8.2) | py | Accepted | 29 | 9036 | 114 | n=int(input())
arr=list(map(int,input().split()))
arr.sort()
s=0
for i in range(0,(2*n)-1,2):
s+=arr[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,216,720 |
s795157162 | p04047 | u047102107 | 1599930820 | Python | PyPy3 (7.3.0) | py | Accepted | 63 | 61732 | 139 | N = int(input())
A = list(map(int, input().split()))
A.sort()
ans = 0
for i in range(0, len(A), 2):
ans += min(A[i], A[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,216,721 |
s034960174 | p04047 | u468972478 | 1599700635 | Python | Python (3.8.2) | py | Accepted | 27 | 9144 | 129 | n = int(input())
a = sorted(list(map(int, input().split())))
s = 0
for i in range(2 * n):
if i % 2 == 0:
s += a[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,216,722 |
s999698632 | p04047 | u701644092 | 1599510596 | Python | Python (3.8.2) | py | Accepted | 27 | 8968 | 85 | N = int(input())
L = list(map(int,input().split()))
L = sorted(L)
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,216,723 |
s146538058 | p04047 | u910632349 | 1599435764 | Python | Python (3.8.2) | py | Accepted | 26 | 9056 | 74 | 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,216,724 |
s039494699 | p04047 | u492910842 | 1599434330 | Python | PyPy3 (7.3.0) | py | Accepted | 68 | 61844 | 75 | 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,216,725 |
s521079274 | p04047 | u218829859 | 1599280654 | Python | Python (3.8.2) | py | Accepted | 31 | 9168 | 137 | n = int(input())
num = [int(i) for i in input().split(' ')]
num.sort(reverse=True)
m=0
for i in range(1,n+1):
m+=num[2*i-1]
print(m)
| 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,216,726 |
s024786429 | p04047 | u456353530 | 1599251641 | Python | PyPy3 (7.3.0) | py | Accepted | 61 | 61844 | 111 | N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0
for x in L[::2]:
ans += x
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,216,727 |
s532287319 | p04047 | u763350628 | 1599174831 | Python | Python (3.8.2) | py | Accepted | 27 | 9068 | 167 | def main():
n = int(input())
l = list(sorted(map(int, input().split())))
ans = 0
for i in range(0, 2*n, 2):
ans += l[i]
print(ans)
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,216,728 |
s442844106 | p04047 | u340064601 | 1598930562 | Python | Python (3.8.2) | py | Accepted | 26 | 9160 | 64 | n=int(input())
print(sum(sorted(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,216,729 |
s771857657 | p04047 | u537962130 | 1598906630 | Python | PyPy3 (7.3.0) | py | Accepted | 97 | 61720 | 71 | input()
l=list(map(int,input().split()))
l=sorted(l)
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,216,730 |
s623777733 | p04047 | u537962130 | 1598906494 | Python | PyPy3 (7.3.0) | py | Accepted | 64 | 61484 | 98 | n=int(input())
l=list(map(int,input().split()))
l=sorted(l)
print(sum([l[2*i] for i in range(n)])) | 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,216,731 |
s941068395 | p04047 | u249987458 | 1598749783 | Python | Python (3.8.2) | py | Accepted | 28 | 9152 | 133 | n = int(input())
l = list(map(int, input().split()))
l.sort()
num = 0
for i in range(0,2*n,2):
num += min(l[i],l[i+1])
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,216,732 |
s308633041 | p04047 | u500376440 | 1597692469 | Python | Python (3.8.2) | py | Accepted | 29 | 9164 | 138 | N=int(input())
L=sorted(list(map(int,input().split())),reverse=True)
ans=0
for i in range(1,len(L),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,216,733 |
s616077020 | p04047 | u567493268 | 1597553471 | Python | Python (3.8.2) | py | Accepted | 26 | 8968 | 145 | k = int(input())
li= list(map(int, input().split()))
li.sort()
sum=0
for k in range(len(li)):
if k%2==0:
sum=sum+li[k]
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,216,734 |
s833781348 | p04047 | u597455618 | 1597458077 | Python | Python (3.8.2) | py | Accepted | 26 | 9108 | 117 | 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,216,735 |
s228221750 | p04047 | u201928947 | 1597372025 | Python | PyPy3 (7.3.0) | py | Accepted | 70 | 61928 | 79 | 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,216,736 |
s118581085 | p04047 | u018679195 | 1597257801 | Python | Python (3.8.2) | py | Accepted | 24 | 8992 | 133 | n = int(input())
a = list(map(int, input().split()))
a.sort()
c = 0
for i in range(0, n):
c += min(a[2 * i], a[(2 * 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,216,737 |
s633523572 | p04047 | u368796742 | 1597014012 | Python | Python (3.8.2) | py | Accepted | 25 | 9048 | 119 | n = int(input())
l = sorted(list(map(int,input().split())))
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,216,738 |
s247096377 | p04047 | u449937469 | 1596920716 | Python | Python (3.8.2) | py | Accepted | 28 | 8992 | 172 | N = int(input().strip())
L = list(map(int, input().strip().split()))
L.sort()
amt = 0
while (len(L) > 0):
(L1, L2) = L[0:2]
amt += min([L1, L2])
del L[0:2]
print(amt)
| 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,216,739 |
s334766368 | p04047 | u673338219 | 1596919334 | Python | Python (3.8.2) | py | Accepted | 32 | 9108 | 92 | n = int(input())
l = list(map(int,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,216,740 |
s323848325 | p04047 | u112364985 | 1596832757 | Python | Python (3.8.2) | py | Accepted | 27 | 9104 | 115 | 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,216,741 |
s635216702 | p04047 | u934442292 | 1596599175 | Python | Python (3.8.2) | py | Accepted | 30 | 9172 | 232 | import sys
input = sys.stdin.readline
def main():
N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = sum(L[i] for i in range(0, 2 * N, 2))
print(ans)
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,216,742 |
s297362460 | p04047 | u353919145 | 1596511585 | Python | Python (3.8.2) | py | Accepted | 26 | 9024 | 113 | n=int(input())
a=list(map(int,input().split()))
a.sort()
ans=0
for i in range(0,2*n,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,216,743 |
s535088778 | p04047 | u358254559 | 1596471757 | Python | Python (3.8.2) | py | Accepted | 27 | 9096 | 78 | 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,216,744 |
s787150862 | p04047 | u168416324 | 1595706910 | Python | Python (3.8.2) | py | Accepted | 25 | 9032 | 111 | n=int(input())
l=sorted(list(map(int,input().split())))
ans=0
for i in range(n):
ans+=l[(i+1)*2-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,216,745 |
s286552443 | p04047 | u009348313 | 1595348624 | Python | PyPy3 (7.3.0) | py | Accepted | 66 | 61880 | 132 | n = int(input())
l = sorted(list(map(int,input().split())),reverse = True)
ans = 0
for i in range(n):
ans += 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,216,746 |
s888016571 | p04047 | u860843282 | 1595301257 | Python | Python (3.8.2) | py | Accepted | 25 | 8968 | 156 | n = int(input())
arr = list(map(int, input().split()))
arr.sort()
res = 0
i=0
l = len(arr)
while i<l:
res+=min(arr[i], arr[i+1])
i+=2
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,216,747 |
s011724753 | p04047 | u434966508 | 1595238372 | Python | PyPy3 (7.3.0) | py | Accepted | 65 | 61536 | 126 | 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,216,748 |
s186880516 | p04047 | u937238023 | 1595127250 | Python | Python (3.8.2) | py | Accepted | 29 | 9060 | 121 | n = int(input())
l = sorted(map(int, input().split()))
x = 0
for i in range(0,len(l),2):
x += min(l[i],l[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,216,749 |
s841179516 | p04047 | u261103969 | 1594982154 | Python | PyPy3 (7.3.0) | py | Accepted | 91 | 61900 | 268 | import sys
readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)
def main():
n = int(readline())
l = list(map(int, readline().split()))
l.sort()
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,216,750 |
s263454780 | p04047 | u520276780 | 1594966244 | Python | PyPy3 (7.3.0) | py | Accepted | 63 | 61780 | 72 | n=int(input())
*l,=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,216,751 |
s079683850 | p04047 | u036104576 | 1594854031 | Python | Python (3.8.2) | py | Accepted | 24 | 9056 | 141 | N = int(input())
L = list(sorted(map(int, input().split())))
ans = 0
for i in range(0, 2 * N, 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,216,752 |
s899413153 | p04047 | u398988238 | 1594783235 | Python | Python (3.8.2) | py | Accepted | 29 | 9072 | 181 | N=int(input())
inp=input()
L=[int(val) for val in inp.split()]
L=sorted(L,reverse=True)
total=0
start=0
for _ in range(N):
total+=min(L[start],L[start+1])
start+=2
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,216,753 |
s156911849 | p04047 | u978167553 | 1594586068 | Python | Python (3.8.2) | py | Accepted | 25 | 9160 | 109 | n = int(input())
l = list(map(int, input().split()))
l.sort()
print(sum([l[i] for i in range(0, 2 * n, 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,216,754 |
s297371162 | p04047 | u587589241 | 1594156990 | Python | Python (3.8.2) | py | Accepted | 30 | 9068 | 124 | 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,216,755 |
s715756890 | p04047 | u186838327 | 1594078189 | Python | Python (3.8.2) | py | Accepted | 30 | 9112 | 153 | n = int(input())
L = list(map(int, input().split()))
L.sort(reverse=True)
ans = 0
for i, l in enumerate(L):
if i%2 == 1:
ans += 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,216,756 |
s591271690 | p04047 | u186838327 | 1594078015 | Python | PyPy3 (7.3.0) | py | Accepted | 74 | 61920 | 153 | n = int(input())
L = list(map(int, input().split()))
L.sort(reverse=True)
ans = 0
for i, l in enumerate(L):
if i%2 == 1:
ans += 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,216,757 |
s337980437 | p04047 | u768896740 | 1593959409 | Python | Python (3.8.2) | py | Accepted | 30 | 9080 | 83 | 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,216,758 |
s265993841 | p04047 | u492749916 | 1593907251 | Python | Python (3.8.2) | py | Accepted | 28 | 9032 | 130 | N = int(input())
L = list(map(int, input().split()))
ans = 0
L = sorted(L)
for i in range(1,N+1):
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,216,759 |
s095122448 | p04047 | u556571816 | 1593815811 | Python | Python (3.8.2) | py | Accepted | 25 | 9028 | 198 | n = int(input())
l = input().split()
int_l = []
for i in range(2*n):
int_l.append(int(l[i]))
int_l.sort(reverse=True)
sum = 0
for i in range(n):
sum += min(int_l[2*i],int_l[2*i+1])
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,216,760 |
s922774544 | p04047 | u437215432 | 1593781085 | Python | Python (3.8.2) | py | Accepted | 26 | 8964 | 127 | n = int(input())
l = list(map(int, input().split()))
l = sorted(l)
count = sum(l[i] for i in range(0, 2 * n, 2))
print(count)
| 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,216,761 |
s125507722 | p04047 | u535803878 | 1593661737 | Python | PyPy3 (7.3.0) | py | Accepted | 63 | 62072 | 271 | import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")
n = int(input())
l = list(map(int, input().split()))
l.sort()
if len(l)%2==1:
l = l[1:]
ans = 0
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,216,762 |
s519324376 | p04047 | u388463553 | 1593456357 | Python | Python (3.8.2) | py | Accepted | 28 | 9012 | 136 | N=int(input())
L=list(map(int,input().split()))
L.sort(reverse=True)
x=0
for i in range(len(L)):
if i%2!=0:
x+=L[i]
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,216,763 |
s434568972 | p04047 | u208713671 | 1593414462 | Python | PyPy3 (7.3.0) | py | Accepted | 61 | 61700 | 116 | N = int(input())
L = list(map(int,input().split()))
L.sort()
out = 0
for i in range(N):
out += L[2*i]
print(out) | 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,216,764 |
s238766070 | p04047 | u923270446 | 1593395905 | Python | Python (3.8.2) | py | Accepted | 36 | 8924 | 140 | n = int(input())
l = list(map(int, input().split()))
l.sort()
ans = 0
for i in range(0, 2 * n, 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,216,765 |
s671474789 | p04047 | u397953026 | 1593388888 | Python | Python (3.8.2) | py | Accepted | 26 | 9112 | 128 | n = int(input())
l = list(map(int,input().split()))
ans = 0
l.sort()
for i in range(n):
ans += l[0]
l = 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,216,766 |
s031972899 | p04047 | u749614185 | 1593384900 | Python | Python (3.8.2) | py | Accepted | 27 | 9176 | 181 | num = int(input())
num *= 2
Skewers = list(map(int, input().split()))
Skewers.sort()
val = 0
for i in range(0, num-1, 2):
val += min(Skewers[i], Skewers[i + 1])
print(val) | 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,216,767 |
s852140472 | p04047 | u425758699 | 1593369742 | Python | Python (3.8.2) | py | Accepted | 26 | 9044 | 109 | n=int(input())
a=list(map(int,input().split()))
a=sorted(a)
ans=0
for i in range(n):
ans+=a[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,216,768 |
s491296445 | p04047 | u000085263 | 1593331048 | Python | Python (3.8.2) | py | Accepted | 29 | 9172 | 152 | n = input()
l = list(map(int, input().split()))
l.sort(reverse=True)
c = 0
ans = 0
for i in l:
if c % 2 == 1:
ans+=l[c]
c+=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,216,769 |
s856145260 | p04047 | u276686572 | 1593276804 | Python | Python (3.8.2) | py | Accepted | 28 | 9004 | 177 | n = int(input())
n *= 2
skewers = list(map(int, input().split()))
skewers.sort()
eats = 0
for i in range(0, n-1, 2):
eats += min(skewers[i], skewers[i + 1])
print(eats) | 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,216,770 |
s996927520 | p04047 | u086503932 | 1593276228 | Python | Python (3.8.2) | py | Accepted | 27 | 9248 | 355 | #!/usr/bin/env python3
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right
def main():
N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0
for i in range(1,2*N):
ans += L[i-1]
L[i] -= L[i-1]
print(ans)
if ... | 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,216,771 |
s463716748 | p04047 | u277429554 | 1593201657 | Python | Python (3.8.2) | py | Accepted | 33 | 9148 | 154 | n = int(input())
l = list(map(int, input().split()))
l.sort()
sum = 0
#print(l)
for i in range(len(l)):
if i % 2 == 0:
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,216,772 |
s616617400 | p04047 | u109436774 | 1593101063 | Python | Python (3.8.2) | py | Accepted | 26 | 9092 | 120 | N = int(input())
L = list(map(int, input().split()))
L.sort()
S = 0
for i in range (1, 2*N+1, 2):
S += L[i-1]
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,216,773 |
s022445494 | p04047 | u796716859 | 1592892523 | Python | PyPy3 (7.3.0) | py | Accepted | 61 | 61732 | 171 | n = int(input())
s = list(map(int, input().split()))
s = sorted(s)
c, f = 0, []
for i in range(0, 2*n, 2):
c+=min(s[i], s[i+1])
# print(min(s[i], s[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,216,774 |
s036877571 | p04047 | u864276028 | 1592883092 | Python | Python (3.8.2) | py | Accepted | 29 | 9036 | 120 | N = int(input())
L = list(map(int, input().split()))
L.sort()
S = 0
for i in range (1, 2*N+1, 2):
S += L[i-1]
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,216,775 |
s028090472 | p04047 | u856671164 | 1592763562 | Python | Python (3.8.2) | py | Accepted | 28 | 8880 | 188 | n = int(input())
li = [int(x) for x in input().split()]
def skews(n,li):
li = sorted(li)
li = [l for i,l in enumerate(li) if i%2==0]
return sum(li)
print(skews(n,li))
| 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,216,776 |
s451710576 | p04047 | u081661483 | 1592763341 | Python | Python (3.8.2) | py | Accepted | 28 | 9184 | 272 | #1
def solution(n, skewers):
sorted_s = sorted(skewers)
answer = 0
for i in range(0, 2*n, 2):
smaller = min(sorted_s[i],sorted_s[i+1])
answer += smaller
return answer
n = int(input())
skewers = [int(x) for x in input().split()]
print(solution(n, skewers)) | 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,216,777 |
s475048864 | p04047 | u761062383 | 1592687632 | Python | Python (3.8.2) | py | Accepted | 27 | 9032 | 183 | def resolve():
N = int(input())
L = list(reversed(sorted([int(i) for i in input().split()])))
sumA = 0
for l in L[1::2]:
sumA += l
print(sumA)
resolve()
| 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,216,778 |
s100156181 | p04047 | u333873045 | 1592244403 | Python | Python (3.4.3) | py | Accepted | 18 | 3064 | 408 | def pair(n,count):
l=[];su=0
for i in range(0,len(n),2):
sub=list()
sub.append(n[i:i+2])
su=su+sub[0][0]
l.append(sub)
return(su)
def ip11(): return int(input())
def ip22(): return [int(_) for _ in input().split()]
def main():
ip1=ip11()
ip2=ip22()
... | 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,216,779 |
s436913621 | p04047 | u199356004 | 1592154481 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 175 | N=int(input())
L = sorted([int(i) for i in input().split()], key=lambda x: x)
foodCount = 0
for i in range(0,len(L), 2):
foodCount += min(L[i], L[i+1])
print(foodCount)
| 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,216,780 |
s213673916 | p04047 | u394526356 | 1591834088 | Python | Python (3.4.3) | py | Accepted | 16 | 2940 | 117 | 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,216,781 |
s320334031 | p04047 | u227085629 | 1591829336 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 108 | n = int(input())
l = list(map(int,input().split()))
l.sort()
c = 0
for i in range(n):
c += l[2*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,216,782 |
s015643229 | p04047 | u285891772 | 1591797514 | Python | Python (3.4.3) | py | Accepted | 38 | 5144 | 958 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees#, log2, log
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgette... | 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,216,783 |
s516714885 | p04047 | u357751375 | 1591675801 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | n = int(input())
l = list(map(int,input().split()))
list.sort(l)
count = 0
for i in range(0,n*2,2):
count = count + l[i]
print(count) | 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,216,784 |
s285705891 | p04047 | u344122377 | 1591339883 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 137 |
n = int(input());
l = list(map(int, 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,216,785 |
s002599181 | p04047 | u745514010 | 1591249050 | 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(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,216,786 |
s076958006 | p04047 | u366886346 | 1591154261 | Python | Python (3.4.3) | py | Accepted | 19 | 3060 | 123 | n=int(input())
l=list(map(int,input().split()))
l.sort(reverse=True)
ans=0
for i in range(n):
ans+=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,216,787 |
s469919961 | p04047 | u557168336 | 1591152645 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 138 | import sys
input = sys.stdin.readline
n=int(input())
vA=list(map(int,input().split()))
vA.sort()
res=sum(a for a in vA[::2])
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,216,788 |
s815274777 | p04047 | u098012509 | 1591070269 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 285 | import sys
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
def main():
N = int(input())
L = [int(x) for x in input().split()]
L.sort()
ans = 0
for i in range(0, N * 2, 2):
ans += L[i]
print(ans)
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,216,789 |
s361170026 | p04047 | u749643742 | 1590936114 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 69 | 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,216,790 |
s564541698 | p04047 | u597374218 | 1590787665 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 68 | 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,216,791 |
s454502775 | p04047 | u528661669 | 1590761128 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 118 | N = input()
L = [int(j) for j in input().split(' ')]
L.sort()
print(sum([L[j] for j in range(len(L)) if j % 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,216,792 |
s454461946 | p04047 | u941047297 | 1590421182 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 86 | n = int(input())
L = list(map(int, input().split()))
L = sorted(L)
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,216,793 |
s139059954 | p04047 | u408620326 | 1590359107 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 139 | N = int(input())
L = sorted([int(i) for i in input().strip().split()])
ans = 0
for n in range(N):
ans += min(L[2*n], L[2*n+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,216,794 |
s280515237 | p04047 | u530786533 | 1590278098 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 133 | n = int(input())
l = list(map(int, input().split()))
l.sort(reverse=True)
ans = 0
for i in range(n):
ans += 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,216,795 |
s663972879 | p04047 | u953794676 | 1590276773 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 119 | n = int(input())
l = [int(i) for i 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,216,796 |
s524359013 | p04047 | u189513668 | 1590270931 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 141 | N = int(input())
L = list(map(int, input().split()))
L.sort()
count = 0
for i in range(N):
count += min(L[2*i], L[2*i+1])
print(count) | 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,216,797 |
s187251086 | p04047 | u960080897 | 1590200146 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 73 | 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,216,798 |
s013466715 | p04047 | u970809473 | 1590199185 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 75 | 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,216,799 |
s707327514 | p04047 | u106181248 | 1590198030 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 84 | 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,216,800 |
s336467539 | p04047 | u123849536 | 1590190625 | Python | Python (3.4.3) | py | Accepted | 19 | 2940 | 187 | # -*- coding: utf-8 -*-
n = int(input())
l_list = list(map(int, input().split()))
counter = 0
for i in range(2 * n):
if i % 2 == 0:
counter += sorted(l_list)[i]
print(counter) | 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,216,801 |
s555351469 | p04047 | u814986259 | 1590129017 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 125 | N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = sum([L[i] for i in range(N*2) if i % 2 == 0])
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,216,802 |
s854803513 | p04047 | u924691798 | 1590084457 | Python | Python (3.4.3) | py | Accepted | 17 | 3060 | 180 | N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = 0
for i in range(0,N,2):
ans += L[i]
L.sort(reverse=True)
for i in range(1,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,216,803 |
s509955977 | p04047 | u955579908 | 1590068913 | Python | Python (3.4.3) | py | Accepted | 17 | 3064 | 116 | n = int(input())
l = list(map(int, input().split()))
l.sort()
c = 0
for i in range(0, n):
c += l[2 * 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,216,804 |
s917386393 | p04047 | u896791216 | 1590030858 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 129 | n = int(input())
l = list(map(int, input().split()))
l.sort()
total = 0
for i in range(0, n):
total += l[2 * i]
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,216,805 |
s943180268 | p04047 | u790807791 | 1590011127 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 145 | n = int(input())
skewers = list(map(int,input().split()))
s = sorted(skewers)
ans = sum([val for i,val in enumerate(s) if i % 2 == 0])
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,216,806 |
s599461788 | p04047 | u370608397 | 1589998962 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 65 | _=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,216,807 |
s815672177 | p04047 | u408375121 | 1589972855 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 115 | 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,216,808 |
s298833065 | p04047 | u462329577 | 1589950731 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 127 | n = int(input())
l = list(map(int, input().split()))
l.sort()
ans = sum([l[i] for i in range(2 * n) if i % 2 == 0])
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,216,809 |
s646905199 | p04047 | u292454598 | 1589724243 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 73 | a = int(input())
b = sorted(map(int,input().split()))
print(sum(b[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,216,810 |
s341902222 | p04047 | u241159583 | 1589683645 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 99 | n = int(input())
l = sorted(list(map(int, input().split())), reverse = True)
print(sum(l[1:n*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,216,811 |
s119540488 | p04047 | u652656291 | 1589665318 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 93 | n = int(input())
L = sorted(map(int,input().split()))
ans = L[0::2]
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,216,812 |
s761800137 | p04047 | u489959379 | 1589514420 | Python | Python (3.4.3) | py | Accepted | 18 | 2940 | 313 | import sys
sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7
def resolve():
n = int(input())
L = sorted(list(map(int, input().split())))
res = 0
for i in range(n * 2):
if i % 2 == 0:
res += L[i]
print(res)
if __name__ == '__main__':
resolve()
| 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,216,813 |
s992978763 | p04047 | u948522631 | 1589143153 | Python | Python (3.4.3) | py | Accepted | 18 | 3060 | 151 | n = int(input())
l = list(map(int,input().split()))
l.sort()
ans = 0
for i in range(n*2):
if i%2 != 0:
continue
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,216,814 |
s588274797 | p04047 | u867933941 | 1589078767 | Python | Python (2.7.6) | py | Accepted | 11 | 2568 | 100 | N = input()
Ls = map(int,raw_input().split(" "))
Ls.sort()
print sum(Ls[i] for i in range(0,N*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,216,815 |
s049289701 | p04047 | u999989620 | 1588727251 | Python | Python (3.4.3) | py | Accepted | 17 | 2940 | 148 | n = int(input())
l = list(map(int, input().split(' ')))
l.sort()
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,216,816 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.