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
s565406375
p04047
u361841553
1538666319
Python
Python (3.4.3)
py
Accepted
17
2940
91
N = int(input()) list_input = sorted(map(int, input().split())) print(sum(list_input[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,317
s926836468
p04047
u361841553
1538665777
Python
Python (2.7.6)
py
Accepted
10
2568
146
N = int(raw_input()) L = map(int,raw_input().split()) L.sort(reverse = True) ans = 0 for i in xrange(N): ans += min(L[2*i],L[2*i+1]) print ans
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,318
s334441965
p04047
u729133443
1538610413
Python
Python (3.4.3)
py
Accepted
17
2940
57
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,217,319
s109125565
p04047
u064408584
1538531124
Python
Python (3.4.3)
py
Accepted
17
2940
76
n=int(input()) a=list(map(int, input().split())) a.sort() print(sum(a[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,320
s099170860
p04047
u940102677
1538438798
Python
Python (3.4.3)
py
Accepted
17
2940
79
n = int(input()) a = list(map(int,input().split())) a.sort() print(sum(a[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,321
s433531002
p04047
u099918199
1538236405
Python
Python (3.4.3)
py
Accepted
17
2940
138
n = int(input()) list_l = list((map(int, input().split()))) list_l.sort() ans = 0 for number in list_l[::2]: ans += number print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,322
s876580443
p04047
u457901067
1538023964
Python
Python (3.4.3)
py
Accepted
17
2940
121
N = int(input()) A = list(map(int, input().split())) A.sort() 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,217,323
s026084762
p04047
u388323466
1538014715
Python
Python (3.4.3)
py
Accepted
17
2940
119
n = input() arr = list(map(int,input().split())) s = 0 arr.sort() arr = arr[::2] for i in arr: s += i print(s)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,324
s894861782
p04047
u177398299
1537557658
Python
Python (3.4.3)
py
Accepted
19
2940
109
N = int(input()) L = sorted(map(int, input().split())) print(sum(min(a, b) for a, b in zip(L[::2], L[1::2])))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,325
s062223905
p04047
u111421568
1537398193
Python
Python (3.4.3)
py
Accepted
17
2940
131
n = int(input()) l = list(map(int, input().split())) ans = 0 l = sorted(l) for i in range(n): ans += l[2*i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,326
s907665795
p04047
u115682115
1537174355
Python
Python (3.4.3)
py
Accepted
17
2940
126
N = int(input()) L = sorted(list(map(int, input().split()))) cnt=0 for i in range(N): cnt+=min(L[2*i],L[2*i+1]) print(cnt)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,327
s775309527
p04047
u366644013
1537056323
Python
Python (3.4.3)
py
Accepted
17
2940
59
n=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,217,328
s246498177
p04047
u624475441
1536946965
Python
Python (3.4.3)
py
Accepted
17
2940
57
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,217,329
s360096895
p04047
u017810624
1536946660
Python
Python (3.4.3)
py
Accepted
17
2940
76
n=int(input()) l=list(map(int,input().split())) l.sort() print(sum(l[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,330
s840975235
p04047
u932465688
1536894650
Python
Python (3.4.3)
py
Accepted
17
2940
119
N = int(input()) L = list(map(int,input().split())) L.sort() K = [] for i in range(N): K.append(L[2*i]) print(sum(K))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,331
s267407488
p04047
u745087332
1536618411
Python
Python (3.4.3)
py
Accepted
17
3060
183
# coding:utf-8 def inpl(): return list(map(int, input().split())) N = int(input()) L = inpl() L.sort() ans = 0 for i in range(0, 2 * N, 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,217,332
s919593870
p04047
u813102292
1536032043
Python
Python (3.4.3)
py
Accepted
17
2940
127
N = int(input()) l = list(int(i) for i in input().split()) l.sort() sum = 0 for i in range(N): sum += l[i*2] print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,333
s946617492
p04047
u393481615
1535893283
Python
Python (3.4.3)
py
Accepted
17
3060
199
N = int(input()) L = list(map(int, input().split())) if(len(L) != 2*N): print("wrong number !") exit() x=0 L.sort(reverse=True) for i in range(N): x = x + min(L[2*i:2*(i+1)]) print(x)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,334
s664682180
p04047
u790301364
1535764637
Python
Python (3.4.3)
py
Accepted
17
3060
335
def main18(): num = int(input("")); strbuf = input(""); strbufs = strbuf.split(); num2 = num*2 buf = []; for i in range((num2)): buf.append(int(strbufs[i])); buf.sort(); result = 0; for i in range(num): result += buf[2*i]; print(result); if __name__ == '__main__...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,335
s825214278
p04047
u690536347
1535047202
Python
Python (3.4.3)
py
Accepted
17
2940
90
n=int(input()) l=sorted(map(int,input().split())) print(sum(l[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,217,336
s711992242
p04047
u076564993
1534977833
Python
Python (3.4.3)
py
Accepted
18
2940
107
n=int(input()) L=map(int,input().split()) L=sorted(L) ans=0 for i in range(0,2*n,2): ans+=L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,337
s671232434
p04047
u620480037
1534562206
Python
Python (3.4.3)
py
Accepted
17
3060
214
N=int(input()) L=input() L=L.rstrip().split() list1=[] for i in range(2*N): list1.append(int(L[i])) list1.sort() #print(list1) ans=0 for j in range(2*N): if j%2==0: ans+=list1[j] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,338
s234269323
p04047
u422104747
1534518910
Python
Python (3.4.3)
py
Accepted
17
2940
95
n=int(input()) s=input().split() l=[int(s[i]) for i in range(2*n)] l.sort() print(sum(l[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,339
s081524959
p04047
u807772568
1534258633
Python
Python (3.4.3)
py
Accepted
19
3060
115
a = int(input()) b = list(map(int,input().split())) b.sort() su = 0 for i in range(a): su += b[2*i] print(su)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,340
s479864311
p04047
u761989513
1534139343
Python
Python (3.4.3)
py
Accepted
17
3064
122
n = int(input()) l = sorted(list(map(int, input().split()))) ans = 0 for i in range(0, n * 2, 2): ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,341
s187499339
p04047
u808427016
1533871799
Python
Python (3.4.3)
py
Accepted
17
2940
100
N = int(input()) L = [int(_) for _ in input().split()] result = sum(sorted(L)[::2]) print(result)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,342
s646645995
p04047
u603087692
1533706774
Python
Python (3.4.3)
py
Accepted
17
2940
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,217,343
s408661615
p04047
u297574184
1533268590
Python
Python (3.4.3)
py
Accepted
17
2940
86
N = int(input()) Ls = list(map(int, input().split())) Ls.sort() print(sum(Ls[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,344
s150474846
p04047
u574050882
1533268203
Python
Python (3.4.3)
py
Accepted
17
2940
182
def main(): N = int(input()) t = input().split(" ") a = [int(i) for i in t] a.sort() sum = 0 for i in range(N): sum += a[2*i] print(sum) main()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,345
s336334496
p04047
u858523893
1533071496
Python
Python (3.4.3)
py
Accepted
17
3060
177
N = int(input()) l = [int(x) for x in input().split()] l_s = sorted(l, reverse = True) tot = 0 for i in range(0, N * 2, 2) : tot += min(l_s[i], l_s[i + 1]) print(tot)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,346
s502440204
p04047
u491402843
1532967966
Python
Python (3.4.3)
py
Accepted
18
2940
114
N=int(input()) data= list(map(int, input().split())) data.sort() j=0 for i in range(0,2*N,2): j+=data[i] print(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,217,347
s017531356
p04047
u832039789
1532841834
Python
Python (3.4.3)
py
Accepted
17
2940
63
input();print(sum(sorted(list(map(int,input().split())))[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,348
s660739027
p04047
u562935282
1532373074
Python
Python (3.4.3)
py
Accepted
17
2940
99
n = int(input()) l = list(map(int, input().split())) l_sorted = sorted(l) print(sum(l_sorted[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,349
s305044484
p04047
u631115160
1531693340
Python
Python (3.4.3)
py
Accepted
17
2940
120
N = int(input()) L = list(map(int, input().split())) L.sort() guz = 0 for i in range(N): guz += L[i*2] print(guz)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,350
s464584237
p04047
u745087332
1531518121
Python
Python (3.4.3)
py
Accepted
18
2940
134
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,217,351
s282554909
p04047
u384679440
1531450157
Python
Python (3.4.3)
py
Accepted
17
2940
136
N = int(input()) L = list(map(int, input().split())) L.sort() 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,217,352
s425491711
p04047
u627417051
1531337013
Python
Python (3.4.3)
py
Accepted
17
2940
111
N = int(input()) L = list(map(int, input().split())) L.sort() s = 0 for i in range(N): s += L[2 * i] print(s)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,353
s720895502
p04047
u990987804
1530939427
Python
Python (3.4.3)
py
Accepted
17
2940
121
N = int(input()) l = sorted(list(map(int, input().split()))).pop sum = 0 for i in range(N): l() sum += l() print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,354
s127917895
p04047
u333945892
1530671924
Python
Python (3.4.3)
py
Accepted
23
3316
183
import sys import heapq sys.setrecursionlimit(10**8) 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,217,355
s472575827
p04047
u608088992
1530304267
Python
Python (3.4.3)
py
Accepted
17
2940
139
N = int(input()) Li = list(map(int, input().split())) LiSorted = sorted(Li) Sum = 0 for i in range(N): Sum += LiSorted[2*i] print(Sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,356
s493176191
p04047
u957084285
1529899797
Python
Python (3.4.3)
py
Accepted
17
2940
118
n = int(input()) l = list(map(int, input().split())) l.sort() ans = 0 for i in range(n): ans += l[2*i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,357
s362724474
p04047
u218843509
1529821494
Python
Python (3.4.3)
py
Accepted
17
2940
107
n = int(input()) l = sorted(list(map(int, input().split()))) 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,217,358
s449574172
p04047
u272266919
1529604196
Python
Python (3.4.3)
py
Accepted
17
2940
119
N = input() Li = list(map(int, input().split(" "))) Li.sort() total = 0 for i in Li[0::2]: total += 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,217,359
s878591723
p04047
u136395536
1528643974
Python
Python (3.4.3)
py
Accepted
17
2940
139
N = int(input()) L = [int(i) for i in input().split()] L.sort() total = 0 for i in range(0,2*N,2): total = total + L[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,217,360
s865700484
p04047
u327248573
1528407205
Python
Python (3.4.3)
py
Accepted
17
2940
99
N = int(input()) length = list(map(int, input().split(' '))) length.sort() print(sum(length[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,361
s437796375
p04047
u529186305
1528076040
Python
Python (3.4.3)
py
Accepted
17
2940
125
n = input() l = sorted(map(int, input().split())) l_len = len(l) a = 0 for i in range(0,l_len,2): a = a + l[i] print(a)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,362
s563946379
p04047
u813450984
1528052053
Python
Python (3.4.3)
py
Accepted
17
2940
126
n = int(input()) l = sorted(list(map(int, input().split()))) ans = [l[i] for i in range(len(l)) if i % 2 == 0] print(sum(ans))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,363
s810413489
p04047
u103539599
1527707823
Python
Python (3.4.3)
py
Accepted
18
2940
136
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(L) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,364
s814195536
p04047
u476435125
1527383658
Python
Python (3.4.3)
py
Accepted
20
2940
116
n=int(input()) lst=list(map(int,input().split())) #sort(lst) i=0 for j in range(n): i+=sorted(lst)[2*j] print(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,217,365
s373631686
p04047
u952708174
1526913149
Python
Python (3.4.3)
py
Accepted
17
3060
180
N = int(input()) L = [int(i) for i in input().split()] L.sort(reverse=True) if len(L) % 2 == 1: L.pop() ans = 0 for k in range(0,len(L),2): ans += min(L[k],L[k+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,366
s445167434
p04047
u354638986
1526854651
Python
Python (3.4.3)
py
Accepted
19
3060
234
def main(): n = int(input()) l = list(map(int, input().split())) l.sort() x = 0 for i in range(n): x += min(l[2*i], l[2*i+1]) print(x) if __name__ == "__main__": main()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,367
s884178396
p04047
u772180901
1526836963
Python
Python (3.4.3)
py
Accepted
17
2940
134
n = int(input()) arr = list(map(int,input().split())) arr.sort() ans = [_ for num,_ in enumerate(arr) if num % 2 == 0] print(sum(ans))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,368
s161912918
p04047
u102126195
1526827846
Python
Python (3.4.3)
py
Accepted
17
2940
81
N = int(input()) L = list(map(int, input().split())) L.sort() print(sum(L[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,369
s217714568
p04047
u828847847
1526492038
Python
Python (2.7.6)
py
Accepted
10
2568
127
n = int(input()) arr = map(int,raw_input().split()) arr.sort() count = 0 for i in range(n): count += arr[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,217,370
s561838911
p04047
u186426563
1526412857
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,217,371
s918230688
p04047
u712259362
1526181720
Python
Python (3.4.3)
py
Accepted
18
3060
183
# coding: utf-8 N = int(input()) L = [int(a) for a in input().split()] L.sort(reverse=True) ans = 0 for i in range(N): ans += L[2*i] if L[2*i] <= L[2*i+1] else L[2*i+1] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,372
s176058666
p04047
u304608668
1526079824
Python
Python (3.4.3)
py
Accepted
17
3060
393
#--- define function ---# def num_check(n, l): if 2 * n == len(l): return True else: return False #--- main ---# num = int(input()) l = input().split() list = [int(i) for i in l] if not num_check(num, list): print("Invalid numbers.") exit() list.sort() meet = 0 for i in range(num): ...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,373
s370700358
p04047
u143492911
1526076212
Python
Python (3.4.3)
py
Accepted
17
2940
75
n=int(input()) t=list(map(int,input().split())) t.sort() print(sum(t[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,374
s998857422
p04047
u766407523
1525833236
Python
Python (3.4.3)
py
Accepted
17
2940
141
N = int(input()) L = list(map(int, input().split())) ans = 0 sorted_L = sorted(L) for i in range(N): ans += sorted_L[2*i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,375
s037992927
p04047
u200239931
1525373628
Python
Python (3.4.3)
py
Accepted
21
3316
643
from collections import Counter def getinputdata(): # 配列初期化 array_result = [] data = input() array_result.append(data.split(" ")) flg = 1 try: while flg: data = input() array_temp = [] if (data != ""): array_result.append(dat...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,376
s563719154
p04047
u125505541
1525297914
Python
Python (3.4.3)
py
Accepted
17
2940
124
n = int(input()) ls = [int(l) for l in input().split()] ls.sort() ans = 0 for i in range(n): ans += ls[2 * i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,377
s537475677
p04047
u520158330
1524852281
Python
Python (3.4.3)
py
Accepted
18
2940
152
N = int(input()) L = sorted(list(map(int,input().split())),reverse=True) ans=0 for i in range(N): ans += min([L[(2*i)],L[(2*i)+1]]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,378
s619856535
p04047
u125505541
1524795148
Python
Python (3.4.3)
py
Accepted
17
2940
124
n = int(input()) ls = [int(l) for l in input().split()] ls.sort() ans = 0 for i in range(n): ans += ls[2 * i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,379
s469434722
p04047
u846150137
1524786353
Python
Python (3.4.3)
py
Accepted
17
2940
119
n=int(input()) arr=[int(i) for i in input().split()] arr.sort() ans=0 for i in range(0,n*2,2): ans+=arr[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,380
s484688383
p04047
u226108478
1524759471
Python
Python (3.4.3)
py
Accepted
17
2940
284
# -*- coding: utf-8 -*- # AtCoder Grand Contest # Problem A if __name__ == '__main__': number = int(input()) l = sorted(list(map(int, input().split())), reverse=True) count = 0 for i in range(number): 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,217,381
s354869597
p04047
u257974487
1524628769
Python
Python (3.4.3)
py
Accepted
17
2940
169
n = int(input()) skewer = list(map(int,input().split())) skewer.sort(reverse=True) ans = 0 for i in range(n * 2): if i % 2 == 1: ans += skewer[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,382
s894411532
p04047
u856232850
1524376237
Python
Python (3.4.3)
py
Accepted
17
2940
80
n = int(input()) a = list(map(int,input().split())) a.sort() print(sum(a[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,383
s169044788
p04047
u388927326
1524226405
Python
Python (3.4.3)
py
Accepted
22
3444
350
#!/usr/bin/env python3 import sys, math, copy # import fractions, itertools # import numpy as np # import scipy HUGE = 2147483647 HUGEL = 9223372036854775807 ABC = "abcdefghijklmnopqrstuvwxyz" def main(): n = int(input()) ln = list(map(int, input().split())) ln = sorted(ln) ln_shorter = ln[::2] 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,217,384
s377553051
p04047
u294000907
1523403346
Python
Python (3.4.3)
py
Accepted
17
2940
308
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # [競プロ等におけるpython3の標準入力 - Qiita](https://qiita.com/zenrshon/items/c4f3849552348b3dbe67) # 数値の数の読み込み n = int(input()) # 数値読み込み a = [int(i) for i in input().split()] a.sort(reverse=True) print(sum(a[1::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,385
s736104593
p04047
u636387751
1523045450
Python
Python (3.4.3)
py
Accepted
17
2940
128
N = int(input()) L = list(map(int, input().split())) L = sorted(L) ans = 0 for i in range(0,2*N,2): ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,386
s891845129
p04047
u875361824
1522725512
Python
Python (3.4.3)
py
Accepted
17
2940
208
def main(): N = int(input()) *L, = map(int, input().split()) ans = 0 L = sorted(L) for i in range(0, 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,217,387
s917269187
p04047
u306142032
1522709382
Python
Python (3.4.3)
py
Accepted
17
2940
148
n = int(input()) l = list(map(int, input().split())) cnt = 0 l_s = sorted(l) for i in range(n): cnt += min(l_s[2*i], l_s[2*i + 1]) print(cnt)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,388
s384815406
p04047
u075012704
1522610089
Python
Python (3.4.3)
py
Accepted
17
2940
79
N = int(input()) L = sorted(list(map(int, input().split()))) print(sum(L[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,389
s266471479
p04047
u050024609
1522534977
Python
Python (3.4.3)
py
Accepted
17
2940
101
N = int(input()) L = sorted(list(map(int, input().split()))) 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,217,390
s737317166
p04047
u729707098
1522443903
Python
Python (3.4.3)
py
Accepted
17
2940
139
n = int(input()) l = [int(i) for i in input().split()] l.sort() answer = 0 for i in range(len(l)): if i%2==0: 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,217,391
s933229700
p04047
u132434645
1522391032
Python
Python (3.4.3)
py
Accepted
17
2940
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,217,392
s021401865
p04047
u941884460
1522122122
Python
Python (3.4.3)
py
Accepted
17
2940
126
n = int(input()) top = list(map(int,input().split())) top.sort() total = 0 for i in range(n): total += top[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,217,393
s145469228
p04047
u075012704
1522101199
Python
Python (3.4.3)
py
Accepted
17
2940
80
N = int(input()) L = sorted(list(map(int, input().split()))) print(sum(L[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,394
s886630307
p04047
u030726788
1521595888
Python
Python (3.4.3)
py
Accepted
17
2940
106
n=int(input()) l=list(map(int,input().split())) l.sort() s=0 for i in range(2*n)[::2]: s+=l[i] print(s)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,395
s530384239
p04047
u101627912
1521349887
Python
Python (3.4.3)
py
Accepted
17
2940
186
# coding: utf-8 kusi=int(input()) lst=list(map(int,input().split())) cnt=1 tabe=0 lst.sort() lst.reverse() for i in lst: if int(cnt%2)==0: tabe+=i cnt+=1 print(tabe)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,396
s511573195
p04047
u632369368
1521087273
Python
Python (3.4.3)
py
Accepted
17
2940
155
N = int(input()) L = [int(n) for n in input().split()] L.sort() cnt = 0 for i in range(0, 2 * N, 2): ml = min(L[i], L[i+1]) cnt += ml print(cnt)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,397
s878460128
p04047
u231685196
1520994401
Python
Python (3.4.3)
py
Accepted
17
2940
132
N = input() line = list(map(int,input().split())) line.sort() o = 0 for i in range(int(len(line)/2)): o += line[2*i*1] print(o)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,398
s645859628
p04047
u858136677
1520477449
Python
Python (3.4.3)
py
Accepted
18
3060
121
n = int(input()) l = list(map(int,input().split())) l.sort() ans = 0 i = 0 while i < 2*n: ans += l[i] i += 2 print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,399
s738868957
p04047
u926678805
1519938240
Python
Python (3.4.3)
py
Accepted
17
2940
121
n=int(input()) a=sorted(list(map(int,input().split()))) ans=0 for i in range(n): ans+=min(a[2*i],a[2*i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,400
s342524873
p04047
u364618491
1519938112
Python
Python (3.4.3)
py
Accepted
17
2940
63
input(),print(sum(sorted(list(map(int,input().split())))[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,401
s544358960
p04047
u671395265
1519893345
Python
Python (3.4.3)
py
Accepted
17
2940
73
n = int(input()) print(sum(sorted(list(map(int, input().split())))[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,402
s263412439
p04047
u667024514
1519891408
Python
Python (3.4.3)
py
Accepted
17
2940
85
n = int(input()) lis = list(map(int,input().split())) lis.sort() print(sum(lis[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,403
s283617192
p04047
u050024609
1519880084
Python
Python (3.4.3)
py
Accepted
17
2940
97
N=int(input()) L=sorted(list(map(int, input().split()))) 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,217,404
s503627773
p04047
u021951967
1519538287
Python
Python (3.4.3)
py
Accepted
17
2940
153
n = int(input()) l = [int(v) for v in input().split(' ')] n_l = sorted(l)[::-1] s = 0 for i in range(n): s += min(n_l[i*2], n_l[i*2+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,217,405
s103791078
p04047
u562016607
1519483600
Python
Python (3.4.3)
py
Accepted
17
2940
128
N = int(input()) L = [int(i) for i in input().split()] L.sort(reverse=True) S = 0 for i in range(N): S += L[2*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,217,406
s782100181
p04047
u391475811
1519078718
Python
Python (3.4.3)
py
Accepted
17
3060
125
N=int(input()) A=[int(x) for x in 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,217,407
s554399392
p04047
u051751608
1518254514
Python
Python (3.4.3)
py
Accepted
18
2940
147
skewer_num = int(input()) skewer_lengths = [int(i) for i in input().split()] skewer_lengths.sort() result = sum(skewer_lengths[0::2]) print(result)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,408
s757292295
p04047
u761320129
1515684843
Python
Python (3.4.3)
py
Accepted
23
2940
132
N = int(input()) src = list(map(int,input().split())) src.sort() ans = 0 for a,b in zip(src[::2],src[1::2]): ans += a print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,409
s158562962
p04047
u858748695
1515558382
Python
Python (3.4.3)
py
Accepted
20
3060
140
#!/usr/bin/env python3 N = int(input()) L = list(map(int, input().split())) L.sort() print(sum((x for i, x in enumerate(L) if i % 2 == 0)))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,410
s525192342
p04047
u136090046
1514939578
Python
Python (3.4.3)
py
Accepted
19
3060
173
num = int(input()) val = [int(x) for x in input().split()] val.sort() array = [] for i in range(0, len(val)-1, 2): array.append(min(val[i], val[i+1])) print(sum(array))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,411
s968209112
p04047
u994607060
1514488235
Python
Python (3.4.3)
py
Accepted
17
2940
121
N = int(input()) Ls = list(map(int, input().split())) Ls_sorted = sorted(Ls, reverse=True) print(sum(Ls_sorted[1::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,412
s418949581
p04047
u482969053
1513479985
Python
Python (3.4.3)
py
Accepted
18
2940
194
def solve(): N = input() L = list(map(int, input().split())) ans = 0 L = list(reversed(sorted(L))) for i in range(len(L)//2): ans += L[2*i+1] print(ans) solve()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,413
s538791325
p04047
u443170850
1512007522
Python
Python (3.4.3)
py
Accepted
18
3060
180
N = int(input()) L = list(map(int,input().split())) L.sort() count = 0 while len(L) != 0: first = L.pop(0) second = L.pop(0) count += min(first,second) 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,217,414
s797091537
p04047
u667084803
1511845436
Python
Python (3.4.3)
py
Accepted
17
2940
106
N=int(input()) A=list(map(int,input().split())) A.sort() 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,217,415
s126440614
p04047
u942788644
1511626968
Python
Python (2.7.6)
py
Accepted
10
2568
98
n = input()*2 l = sorted(map(int, raw_input().split())) print sum([l[i] for i in xrange(0, 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,217,416