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
s289769466
p04047
u078349616
1588711543
Python
Python (3.4.3)
py
Accepted
17
3060
134
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,817
s273569829
p04047
u340781749
1588701415
Python
Python (3.4.3)
py
Accepted
17
2940
87
n = int(input()) lll = list(map(int, input().split())) lll.sort() print(sum(lll[::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,818
s530557780
p04047
u863150907
1588695956
Python
Python (3.4.3)
py
Accepted
17
2940
112
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,216,819
s296426569
p04047
u349444371
1588689596
Python
Python (3.4.3)
py
Accepted
17
2940
112
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,216,820
s397474254
p04047
u106778233
1588630719
Python
Python (3.4.3)
py
Accepted
17
3060
238
import sys input=sys.stdin.readline def main(): n=int(input()) L=list(map(int,input().split())) L.sort() ans=0 for i in range(n): ans+=L[i*2] else: 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,821
s208121704
p04047
u691896522
1588531624
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(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,822
s100149678
p04047
u188745744
1588389980
Python
Python (3.4.3)
py
Accepted
17
2940
143
A = int(input()) B = list(map(int,input().split())) B.sort(reverse=True) ans =0 for i in range(A): ans += min(B[0+i*2],B[1+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,823
s325588175
p04047
u156815136
1588264851
Python
Python (3.4.3)
py
Accepted
36
5276
761
from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from fractions import gcd from itertools import combinations # (string,3) 3回 from collections import deque from collections import defaultdict import bisect # # d = m - k[i] - k[j] # ...
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,824
s522360698
p04047
u935016954
1588214568
Python
Python (3.4.3)
py
Accepted
17
2940
95
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,825
s229072004
p04047
u311379832
1588131058
Python
Python (3.4.3)
py
Accepted
17
2940
126
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,216,826
s802494819
p04047
u156815136
1588106494
Python
Python (3.4.3)
py
Accepted
39
5276
773
from statistics import median #import collections #aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0] from fractions import gcd from itertools import combinations # (string,3) 3回 from collections import deque from collections import defaultdict import bisect # # d = m - k[i] - k[j] # ...
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,827
s021781431
p04047
u102242691
1588041276
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[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,216,828
s261856906
p04047
u461833298
1587829961
Python
Python (3.4.3)
py
Accepted
17
2940
95
N = int(input()) L = [int(x) for x 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,216,829
s459711244
p04047
u528470578
1587750476
Python
Python (3.4.3)
py
Accepted
17
2940
108
N = int(input()) L = list(map(int, input().split())) L = sorted(L, reverse=True) mL = L[1::2] print(sum(mL))
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,830
s906415586
p04047
u276115223
1587692529
Python
Python (3.4.3)
py
Accepted
17
2940
109
# AGC 001: A – BBQ Easy N = int(input()) L = [int(s) for s 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,216,831
s264660548
p04047
u256093215
1587580399
Python
Python (3.4.3)
py
Accepted
18
2940
114
N=int(input()) L=list(map(int,input().split())) L.sort() ans=int(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,216,832
s431546496
p04047
u318165580
1587525651
Python
Python (3.4.3)
py
Accepted
17
2940
110
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,833
s043044695
p04047
u651663683
1587392915
Python
Python (3.4.3)
py
Accepted
17
2940
74
input() print(sum(list(sorted(list(map(int,input().split()))))[0:-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,834
s449974021
p04047
u959225525
1587355475
Python
Python (3.4.3)
py
Accepted
17
2940
117
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,216,835
s915696042
p04047
u749770850
1587165569
Python
Python (3.4.3)
py
Accepted
17
2940
141
n = int(input()) l = [int(i) for i in input().split()] l.sort() ans = 0 for i in range(1, len(l), 2): ans += min(l[i-1], 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,836
s753276217
p04047
u392172834
1587146414
Python
Python (3.4.3)
py
Accepted
17
2940
223
import sys kushiYaki = int(input()) kushi = list(map(int, input().split())) kushi.sort() max_ingredients = 0 for available_ingredient in kushi[0::2]: max_ingredients += available_ingredient print(max_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,216,837
s039622319
p04047
u167988719
1587071068
Python
Python (3.4.3)
py
Accepted
17
2940
85
N = int(input()) L = sorted(map(int, input().split())) 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,838
s280527496
p04047
u373047809
1586971808
Python
Python (3.4.3)
py
Accepted
19
2940
96
n, *l = map(int, open(0).read().split()) print(sum(min(sorted(l)[i*2:i*2+2]) 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,839
s843903545
p04047
u022979415
1586910130
Python
Python (3.4.3)
py
Accepted
17
2940
153
def main(): n = int(input()) l = [int(x) for x in input().split()] l.sort() print(sum(l[0::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,840
s417268005
p04047
u620464724
1586909759
Python
Python (3.4.3)
py
Accepted
17
3060
149
n = int(input()) a = list(map(int,input().split())) asrt = sorted(a,reverse=True) ans = 0 for v in range(1,2*n,2): ans += asrt[v] print(str(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,841
s947850950
p04047
u747602774
1586906177
Python
Python (3.4.3)
py
Accepted
17
2940
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,842
s560693459
p04047
u810356688
1586642698
Python
Python (3.4.3)
py
Accepted
17
2940
108
n=int(input()) L=sorted(list(map(int,input().split()))) 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,843
s920910068
p04047
u021667910
1586501583
Python
Python (3.4.3)
py
Accepted
17
2940
320
# 2n = n * 2 pairs optimal greedy contradiction 1 is paired with k 2 is with j if we move 1 to 2 and k to j def main(): n = int(input()) arr = [int(x) for x in input().split(" ")] arr.sort() ans = 0 for i in range(2*n): if (i % 2) == 0: ans += arr[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,844
s984567236
p04047
u279493135
1586333549
Python
Python (3.4.3)
py
Accepted
42
5328
805
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_uppercase...
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,845
s699698770
p04047
u442268271
1586298637
Python
Python (3.4.3)
py
Accepted
17
2940
132
n = int(input()) l = list(map(int,input().split())) l.sort() skewers = 0 for i in range(0,2*n,2) : skewers += l[i] print(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,846
s281429030
p04047
u159975271
1586231065
Python
Python (3.4.3)
py
Accepted
18
3060
129
N = int(input()) A = sorted(map(int,input().split()),reverse=True) C = [] for i in range(N): C.append(A[2*i + 1]) print(sum(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,847
s946424248
p04047
u089142196
1586229690
Python
Python (3.4.3)
py
Accepted
17
2940
89
N=int(input()) L=list(map(int,input().split())) L.sort() ans=sum(L[0:2*N: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,848
s497284451
p04047
u644972721
1586151709
Python
Python (3.4.3)
py
Accepted
18
2940
118
n = int(input()) l = sorted(list(map(int, input().split()))) 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,849
s785931268
p04047
u749416810
1586151309
Python
Python (3.4.3)
py
Accepted
17
2940
116
n=int(input()) l=list(map(int,input().split())) l.sort() s=0 for i in range(0,2*n,2): s+=min(l[i],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,850
s145788163
p04047
u749416810
1585982149
Python
Python (3.4.3)
py
Accepted
17
2940
122
n=int(input()) l=list(map(int, input().split())) l.sort() s=0 for i in range(0,2*n, 2): s+=min(l[i], 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,851
s959675793
p04047
u267300160
1585790878
Python
Python (3.4.3)
py
Accepted
18
2940
149
N = int(input()) kushi = list(map(int,input().split())) kushi.sort() ans = 0 for i in range(0,2*N,2): ans += min(kushi[i],kushi[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,852
s087617403
p04047
u576264625
1585530805
Python
Python (3.4.3)
py
Accepted
18
3060
126
n = int(input()) l = list(map(int, input().split() )) l.sort() count = 0 i = 0 while i<len(l): count+=l[i] i+=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,853
s726009540
p04047
u622045059
1585522189
Python
Python (3.4.3)
py
Accepted
39
5292
2,190
import math import fractions import bisect import collections import itertools import heapq import string import sys import copy from decimal import * from collections import deque sys.setrecursionlimit(10**7) MOD = 10**9+7 INF = float('inf') #無限大 def gcd(a,b):return fractions.gcd(a,b) #最大公約数 def lcm(a,b):return (a*b) ...
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,854
s847759453
p04047
u672475305
1585443158
Python
Python (3.4.3)
py
Accepted
22
3316
135
n = int(input()) l = list(map(int,input().split())) l.sort() res = 0 for i in range(n*2): if i%2==0: 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,216,855
s538165927
p04047
u346812984
1585336923
Python
Python (3.4.3)
py
Accepted
17
2940
155
N = int(input()) L = list(map(int, input().split())) L.sort(reverse=True) 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,856
s140624259
p04047
u127499732
1585115021
Python
Python (3.4.3)
py
Accepted
17
2940
163
def main(): n = int(input()) l = list(map(int, input().split())) l.sort() ans = sum(l[::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,857
s371466402
p04047
u896726004
1585088035
Python
Python (3.4.3)
py
Accepted
17
2940
118
n = int(input()) l = sorted(list(map(int, input().split()))) 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,858
s431033138
p04047
u113971909
1585053522
Python
Python (3.4.3)
py
Accepted
18
2940
65
N=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,859
s899024839
p04047
u090649502
1584899682
Python
Python (3.4.3)
py
Accepted
17
2940
77
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,860
s054575371
p04047
u590825760
1584833999
Python
Python (3.4.3)
py
Accepted
18
2940
140
n = int(input()) li = [int(x) for x in input().split()] li.sort() ans = 0 for i in range(0,2*n,2): ans += min(li[i],li[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,861
s232346502
p04047
u152891327
1584810745
Python
Python (3.4.3)
py
Accepted
17
3060
139
N = int(input()) l = [0] * 2 * N l = list(map(int, input().split())) l.sort() total = 0 for i in range(N): total += l[i * 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,862
s137593252
p04047
u638795007
1584510737
Python
Python (3.4.3)
py
Accepted
25
3956
1,006
def examA(): N = I() L = LI() L.sort() ans = sum(L[::2]) print(ans) return def examB(): ans = 0 print(ans) return def examC(): ans = 0 print(ans) return def examD(): ans = 0 print(ans) return def examE(): ans = 0 print(ans) return def examF():...
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,863
s631137672
p04047
u189479417
1584410290
Python
Python (3.4.3)
py
Accepted
21
3316
116
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,864
s087741032
p04047
u561083515
1584409037
Python
Python (3.4.3)
py
Accepted
18
2940
129
N = int(input()) L = [int(i) for i in 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,216,865
s549856207
p04047
u020390084
1584297729
Python
Python (3.4.3)
py
Accepted
17
3060
384
#!/usr/bin/env python3 import sys # input = sys.stdin.readline def INT(): return int(input()) def MAP(): return map(int,input().split()) def LI(): return list(map(int,input().split())) def main(): N = INT() L = LI() L.sort() answer = 0 for i in range(N): answer += min(L[2*i],L[2*i+1]) ...
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,866
s935782470
p04047
u893063840
1584232362
Python
Python (3.4.3)
py
Accepted
18
3316
92
n = int(input()) l = list(map(int, input().split())) l.sort() 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,867
s744705043
p04047
u545666277
1584083196
Python
Python (3.4.3)
py
Accepted
24
3572
376
# -*- coding: utf-8 -*- import math import itertools import sys import copy #import numpy as np # 入力 #A, B, C, D = map(int, input().split()) #L = list(map(int, input().split())) #S = list(str(input())) #N = int(input()) #S = str(input()) N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i ...
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,868
s701014442
p04047
u151107315
1583951424
Python
Python (3.4.3)
py
Accepted
17
2940
135
N = int(input()) L_li = list(map(int, input().split())) L_li.sort() ans = 0 for i in range(0, 2 * N, 2): ans += L_li[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,869
s096096910
p04047
u071680334
1583837260
Python
Python (3.4.3)
py
Accepted
17
2940
214
def main(): 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) 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,870
s687763758
p04047
u808664337
1583794601
Python
Python (3.4.3)
py
Accepted
17
3064
206
N = int(input()) L = input().split(" ") for i in range(0, len(L)): L[i] = int(L[i]) L.sort() ans = 0 for i in range(0, len(L), 2): tmp = L[i] if tmp > L[i+1]: tmp = L[i+1] ans += tmp 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,871
s365570193
p04047
u693716675
1583466945
Python
Python (3.4.3)
py
Accepted
17
2940
123
n = int(input()) l = [int(i) for i in 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,216,872
s268428801
p04047
u672898046
1583463943
Python
Python (3.4.3)
py
Accepted
17
2940
130
n = int(input()) l = sorted(list(map(int, input().split()))) 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,873
s523183659
p04047
u556589653
1583199324
Python
Python (3.4.3)
py
Accepted
17
3060
140
N = int(input()) L = list(map(int,input().split())) ans = 0 L.sort() L.reverse() 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,216,874
s451005184
p04047
u002459665
1583049756
Python
Python (3.4.3)
py
Accepted
17
2940
163
N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(2*N): if i % 2 == 0: # print(i) 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,875
s892517527
p04047
u987164499
1582982520
Python
Python (3.4.3)
py
Accepted
17
3060
198
from sys import stdin point = 0 n = int(stdin.readline().rstrip()) li = list(map(int,stdin.readline().rstrip().split())) li.sort() for i in range(n): point += min(li[2*i],li[2*i+1]) print(point)
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,876
s316774191
p04047
u126823513
1582942748
Python
Python (3.4.3)
py
Accepted
17
2940
102
n = int(input()) li_l = list(map(int, input().split())) print(sum(sorted(li_l, reverse=True)[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,877
s931877360
p04047
u762420987
1582924160
Python
Python (3.4.3)
py
Accepted
17
2940
154
N = int(input()) Llist = sorted(list(map(int, input().split())))[::-1] ans = 0 for i in range(0, 2*N, 2): ans += min(Llist[i], Llist[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,878
s383270144
p04047
u217627525
1582752285
Python
Python (3.4.3)
py
Accepted
17
2940
108
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,879
s112795655
p04047
u729417323
1582555499
Python
Python (3.4.3)
py
Accepted
19
2940
133
# --*-coding:utf-8-*-- N = int(input()) L = sorted(map(int, input().split())) print(sum(min(L[2*i], L[2*i+1]) 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,880
s469450987
p04047
u386089355
1582392062
Python
Python (3.4.3)
py
Accepted
17
2940
142
n = int(input()) ls = list(map(int, input().split())) ls.sort(reverse=True) ans = 0 for i in range(n): ans += ls[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,881
s543151878
p04047
u408375121
1582330693
Python
Python (3.4.3)
py
Accepted
17
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,882
s298881981
p04047
u062068953
1582007312
Python
Python (3.4.3)
py
Accepted
17
3064
151
n=int(input()) x=input().split() l=[] for k in range(2*n): l.append(int(x[k])) l.sort() s=0 for k in range(2*n): if k%2==0: s+=l[k] 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,883
s154691539
p04047
u328510800
1581568737
Python
Python (3.4.3)
py
Accepted
18
2940
135
n = int(input()) a = list(map(int, input().split())) a.sort() res = 0 for i in range(0, 2*n, 2): res += min(a[i], a[i+1]) 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,884
s863917164
p04047
u300778480
1581375511
Python
Python (3.4.3)
py
Accepted
19
3060
205
try: N = int(input()) a = map(int, input().split()) a_ = sorted(a, reverse=True) b = [] for i in range(len(a_)): if i%2!=0: b.append(a_[i]) print(sum(b)) except EOFError: pass
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,885
s350528845
p04047
u995062424
1581276686
Python
Python (3.4.3)
py
Accepted
17
2940
135
N = int(input()) L = list(map(int, input().split())) L = sorted(L) sum_L = 0 for i in range(0, 2*N, 2): sum_L += L[i] print(sum_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,216,886
s599952088
p04047
u428132025
1581226289
Python
Python (3.4.3)
py
Accepted
17
2940
140
n = int(input()) l = [int(_) for _ in input().split()] l.sort() 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,216,887
s948540662
p04047
u170183831
1581042339
Python
Python (3.4.3)
py
Accepted
17
2940
169
def solve(n, L): L.sort() return sum(min(L[2 * i], L[2 * i + 1]) for i in range(n)) _n = int(input()) _L = list(map(int, input().split())) print(solve(_n, _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,216,888
s341577882
p04047
u648212584
1580836793
Python
Python (3.4.3)
py
Accepted
17
2940
256
import sys input = sys.stdin.buffer.readline def main(): N = int(input()) A = list(map(int,input().split())) A.sort() ans = 0 for i in range(N): ans += A[2*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,889
s972505598
p04047
u636014233
1580717872
Python
Python (3.4.3)
py
Accepted
17
3064
112
N = int(input()) li = list(map(int, input().split())) li.sort() P = 0 for i in range(N): P += li[i*2] print(P)
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,890
s433415845
p04047
u039864635
1580449228
Python
Python (3.4.3)
py
Accepted
18
2940
59
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,891
s683801773
p04047
u102242691
1580098180
Python
Python (3.4.3)
py
Accepted
17
2940
158
n = int(input()) l = list(map(int,input().split())) l.sort() a = [] for i in range(2*n): if i % 2 == 0: a.append(l[i]) #print(a) print(sum(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,216,892
s700935546
p04047
u683134447
1580051885
Python
Python (3.4.3)
py
Accepted
17
2940
129
n = int(input()) ll = list(map(int,input().split())) ll = sorted(ll) ans = 0 for i in range(n): ans += ll[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,893
s785934790
p04047
u777283665
1579885588
Python
Python (3.4.3)
py
Accepted
17
3060
123
n = int(input()) x = sorted(list(map(int, input().split()))) ans = 0 for i in range(0, 2*n, 2): ans += x[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,894
s284056549
p04047
u202634017
1579820112
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[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,895
s014097005
p04047
u268792407
1579800352
Python
Python (3.4.3)
py
Accepted
17
2940
125
n=int(input()) a=list(map(int,input().split())) a.sort() ans = 0 for i in range(2*n): if i%2==0: 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,896
s137074558
p04047
u977642052
1579613189
Python
Python (3.4.3)
py
Accepted
17
2940
260
def main(n: int, l: list): ans = 0 l.sort(reverse=True) for _ in range(n): a, b = l.pop(), l.pop() ans += a print(ans) if __name__ == "__main__": n = int(input()) l = list(map(int, input().split())) main(n, 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,216,897
s823735941
p04047
u501278784
1579514859
Python
Python (3.4.3)
py
Accepted
17
3060
124
n=int(input()) a=[int(x) for x in input().split()] a.sort() ss=0 for i in range(0,len(a),2): ss+=min(a[i:i+2]) print(ss)
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,898
s625141139
p04047
u723721005
1579055456
Python
Python (3.4.3)
py
Accepted
18
3060
165
a = int(input()) s = input().split() d = [] m = 0 for i in s: d.append(int(i)) while d != []: d.remove(max(d)) m += max(d) d.remove(max(d)) 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,899
s615828529
p04047
u273010357
1579012950
Python
Python (3.4.3)
py
Accepted
17
2940
152
n = int(input()) li = list(map(int, input().split())) li.sort() li1 = [] for i in range(2*n): if i%2==0: li1.append(li[i]) print(sum(li1))
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,900
s348777016
p04047
u828766688
1578811865
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(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,216,901
s401599770
p04047
u263226212
1578792265
Python
Python (3.4.3)
py
Accepted
17
2940
165
# -*- coding: utf-8 -*- N = int(input()) L = sorted(list(map(int, input().split()))) 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,216,902
s693491423
p04047
u864197622
1578637978
Python
Python (3.4.3)
py
Accepted
17
2940
81
N = int(input()) A = sorted([int(a) for a in input().split()]) 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,903
s029465098
p04047
u614875193
1578608674
Python
Python (3.4.3)
py
Accepted
17
2940
65
N=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,904
s126558333
p04047
u626468554
1578003705
Python
Python (3.4.3)
py
Accepted
18
2940
152
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,216,905
s670863163
p04047
u060569392
1577749074
Python
Python (3.4.3)
py
Accepted
17
2940
119
n=int(input()) l=list(map(int,input().split())) l.sort() count=0 for i in range(0,2*n,2): 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,906
s956649396
p04047
u469063372
1577671822
Python
Python (3.4.3)
py
Accepted
17
3060
148
n = int(input()) l = list(map(int, input().split())) l.sort() ans = 0 i = 0 while i <= n * 2 - 1: ans += min(l[i], l[i+1]) 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,907
s512019996
p04047
u580070121
1577584709
Python
Python (3.4.3)
py
Accepted
24
3316
83
n = int(input()) l = [int(x) for x 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,216,908
s934540254
p04047
u305018585
1577571606
Python
Python (3.4.3)
py
Accepted
18
2940
105
input() A=list(map(int,input().split())) A.sort() r = 0 for i in range(0,len(A),2): r+=A[i] print(r)
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,909
s298186137
p04047
u709304134
1577542007
Python
Python (3.4.3)
py
Accepted
17
2940
99
#coding:utf-8 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,910
s348210924
p04047
u204616996
1577391595
Python
Python (3.4.3)
py
Accepted
17
2940
103
N=int(input()) L=list(map(int,input().split())) L=sorted(L) ans=0 for l in L[0::2]: 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,911
s384376919
p04047
u225388820
1577385199
Python
Python (3.4.3)
py
Accepted
17
2940
109
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,912
s887492123
p04047
u102461423
1577381385
Python
Python (3.4.3)
py
Accepted
17
2940
192
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N,*L = map(int,read().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,216,913
s773379901
p04047
u984276646
1577344299
Python
Python (3.4.3)
py
Accepted
17
2940
98
N = int(input()) A = list(map(int, input().split())) A.sort() print(sum(A[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,914
s945202053
p04047
u994988729
1577251110
Python
Python (3.4.3)
py
Accepted
17
2940
92
n = int(input()) l = list(map(int, input().split())) l.sort() ans = sum(l[0::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,915
s477256599
p04047
u309141201
1577117348
Python
Python (3.4.3)
py
Accepted
18
2940
125
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,216,916