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
s903897275
p04047
u017271745
1557015702
Python
Python (3.4.3)
py
Accepted
17
2940
143
N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(2*N): if i % 2 == 0: ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,117
s850794793
p04047
u875347753
1557012714
Python
Python (3.4.3)
py
Accepted
17
2940
128
N = int(input()) a = sorted(list(map(int, input().split()))) res =[] for i in range(N): res.append(a[2*i]) print(sum(res))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,118
s994232722
p04047
u513900925
1556939940
Python
Python (3.4.3)
py
Accepted
17
2940
162
N = int(input()) a = list(int(i) for i in input().split()) list.sort(a, reverse=True) ans = 0 for i in range(N*2): if i%2 == 1: 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,119
s890732927
p04047
u565204025
1556939538
Python
Python (3.4.3)
py
Accepted
17
2940
152
# -*- coding: utf-8 -*- n = int(input()) l = list(map(int,input().split())) l.sort() ans = 0 for i in range(0,len(l),2): ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,120
s962548553
p04047
u949414593
1556908387
Python
Python (3.4.3)
py
Accepted
19
3060
77
N=int(input()) Ln=list(map(int,input().split())) print(sum(sorted(Ln)[::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,121
s093876717
p04047
u735233212
1556900277
Python
Python (3.4.3)
py
Accepted
20
3316
117
#AGC001A N = int(input()) Ls = list(map(int, input().split())) Ls.sort(reverse=True) res = sum(Ls[1::2]) print(res)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,122
s649697092
p04047
u023229441
1556675014
Python
Python (3.4.3)
py
Accepted
17
2940
74
n=int(input()) A=sorted(list(map(int,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,217,123
s286593586
p04047
u488178971
1556647065
Python
Python (3.4.3)
py
Accepted
17
2940
128
N =int(input()) L =[int(j) for j in input().split()] L.sort() ans=0 for i in range(0,2*N-1,2): ans+=min(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,124
s416821762
p04047
u756388720
1556549867
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,125
s139857058
p04047
u366959492
1556506712
Python
Python (3.4.3)
py
Accepted
17
2940
119
n=int(input()) l=list(map(int,input().split())) l.sort(reverse=True) c=0 for i in range(1,2*n,2): c+=l[i] print(c)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,126
s394870315
p04047
u688126754
1556072087
Python
Python (3.4.3)
py
Accepted
17
3060
255
N = int(input()) tmp_lst = input().split() length_lst = [] #print(2*N) for i in range(2*N): # print(tmp_lst[i]) length_lst.append(int(tmp_lst[i])) length_lst.sort() output = 0 for i in range(0, 2*N, 2): output += length_lst[i] print(output)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,127
s391133509
p04047
u346194435
1555973326
Python
Python (3.4.3)
py
Accepted
17
2940
166
N = int(input()) lList = [int(x) for x in input().split()] lList.sort() result = 0 for l, ll in zip(lList[::2], lList[1::2]): result += min(l,ll) 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,128
s415550537
p04047
u885899351
1555959565
Python
Python (3.4.3)
py
Accepted
17
2940
70
n=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,129
s487525407
p04047
u222138979
1555957390
Python
Python (3.4.3)
py
Accepted
17
3060
157
n = input() L = [int(_) for _ in input().split()] L.sort() total = 0 for i in range(len(L)): if i % 2 == 0: 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,130
s348863398
p04047
u163320134
1555390650
Python
Python (3.4.3)
py
Accepted
17
2940
137
n=int(input()) arr=list(map(int,input().split())) arr=sorted(arr) ans=0 for i in range(len(arr)): if i%2==0: 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,131
s498711966
p04047
u693716675
1555101254
Python
Python (3.4.3)
py
Accepted
17
2940
120
n = int(input()) l = [int(i) for i in input().split()] l.sort() cnt=0 for i in range(n): cnt += l[2*i] print(cnt)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,132
s827865558
p04047
u317738231
1555068933
Python
Python (3.4.3)
py
Accepted
17
2940
130
N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(0, len(L), 2): ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,133
s896515224
p04047
u360952168
1554967642
Python
Python (3.4.3)
py
Accepted
17
2940
151
n = int(input()) kushi = list(map(int, input().split())) kushi.sort() setkushi = [min(kushi[2*i], kushi[2*i+1]) for i in range(n)] print(sum(setkushi))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,134
s418959643
p04047
u616522759
1554936436
Python
Python (3.4.3)
py
Accepted
19
2940
89
N = int(input()) L = [int(i) for i in input().split()] L.sort() L = L[0::2] 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,217,135
s789681963
p04047
u729133443
1554868029
Python
Python (3.4.3)
py
Accepted
17
2940
55
n,l=open(0);print(sum(sorted(map(int,l.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,136
s627175179
p04047
u593063683
1554830338
Python
Python (3.4.3)
py
Accepted
17
3064
798
import math def getInt(): return int(input()) def getIntList(): return [int(x) for x in input().split()] def zeros(n): return [0]*n def zeros2(n, m): return [zeros(m) for i in range(n)] # obsoleted zeros((n, m))で代替 class Debug(): def __init__(self): self.debug = True def off(self): self.debug...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,137
s023654933
p04047
u151625340
1554654318
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,217,138
s413936250
p04047
u071730284
1554643056
Python
Python (3.4.3)
py
Accepted
17
2940
151
N = int(input()) Ls = [int(x) for x in input().split()] Ls.sort() ans = 0 for i in range(0, len(Ls), 2): ans += min(Ls[i], Ls[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,139
s163894987
p04047
u655048024
1554642000
Python
Python (3.4.3)
py
Accepted
18
2940
168
N = int(input()) c=list(map(int, input().split())) c.sort() Max = 0 for i in range(len(c)): if i%2 == 0: Max = Max + c[i] else: None print(Max)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,140
s251954815
p04047
u859897687
1554552071
Python
Python (3.4.3)
py
Accepted
18
2940
117
n=int(input()) l=list(map(int,input().split())) l.sort(reverse=1) ans=0 for i in range(n): ans+=l[2*i+1] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,141
s979421564
p04047
u350997995
1554282587
Python
Python (3.4.3)
py
Accepted
18
2940
122
N = int(input()) L = list(map(int,input().split())) L.sort() count = 0 for i in range(N): count += L[2*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,217,142
s270677861
p04047
u426108351
1554160508
Python
Python (3.4.3)
py
Accepted
18
2940
115
N = int(input()) L = list(map(int, input().split())) ans = 0 L.sort() for i in range(N): ans += L[2*i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,143
s472270455
p04047
u751488284
1554082104
Python
Python (3.4.3)
py
Accepted
18
2940
122
N=int(input()) L=list(map(int, input().split())) L.sort() sum=0 for i in range(N): sum += L[(i - 1) * 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,144
s025621715
p04047
u451689622
1554001712
Python
Python (3.4.3)
py
Accepted
17
3060
264
#!/usr/bin/env python3 N = int(input()) L = [] for n in [int(i) for i in input().split()]: L.append(n) L.sort() SUM = 0 for i in range(N): x = L.pop() y = L.pop() if x < y: SUM = SUM + x elif x >= y: SUM = SUM + y 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,145
s684058277
p04047
u227082700
1553831326
Python
Python (3.4.3)
py
Accepted
17
2940
103
n,l,ans=int(input()),list(map(int,input().split())),0;l.sort() for i in range(n):ans+=l[i*2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,146
s297358608
p04047
u844902298
1553831324
Python
Python (3.4.3)
py
Accepted
17
3060
119
n = int(input()) s = list(map(int,input().split())) s.sort() sum = 0 for i in range(0,2*n,2): sum += s[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,147
s356094197
p04047
u684695949
1553738951
Python
Python (3.4.3)
py
Accepted
17
3060
138
import bisect N = input() Ls = map(int,input().split(" ")) Ls = sorted(Ls) ans = sum([L for i,L in enumerate(Ls) if i%2 == 0]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,148
s354968958
p04047
u143509139
1553733255
Python
Python (3.4.3)
py
Accepted
18
2940
66
input();print(sum(sorted(list(map(int,input().split())))[-2::-2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,149
s807126562
p04047
u652081898
1553671279
Python
Python (3.4.3)
py
Accepted
18
2940
117
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,217,150
s283756273
p04047
u518042385
1553622992
Python
Python (3.4.3)
py
Accepted
17
2940
103
n=int(input()) l=list(map(int,input().split())) l=sorted(l) z=0 for i in range(n): z+=l[2*i] print(z)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,151
s936728128
p04047
u390694622
1553373720
Python
Python (3.4.3)
py
Accepted
17
2940
143
N = int(input()) a = list(map(int,input().split())) ans=0 a.sort(reverse=True) for i in range(2*N): if i%2==1: 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,152
s415129951
p04047
u379692329
1553324109
Python
Python (3.4.3)
py
Accepted
18
2940
87
N = int(input()) L = [int(_) for _ in 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,217,153
s364273493
p04047
u721316601
1553199186
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,154
s333369633
p04047
u761989513
1553180527
Python
Python (3.4.3)
py
Accepted
18
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,155
s454502190
p04047
u209918867
1553106097
Python
Python (3.4.3)
py
Accepted
17
2940
125
n=int(input());l=sorted(list(map(int,input().split())))[::-1]; L=0 for i in range(0,len(l),2): L+=min(l[i],l[i+1]) print(L)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,156
s710251380
p04047
u518064858
1553053530
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[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,157
s636803379
p04047
u782654209
1553051819
Python
Python (3.4.3)
py
Accepted
18
2940
639
#AGC001 A 23:11 - ''' 問題 2本の串にいくつかの具材を刺して串焼きをN個つくりたい 串は2N本ありi番目の串の長さはLi 2本の串のうち短いほうの長さをxとすると串焼きには最大で具材をx個刺せる うまく串を組み合わせたとき具材は全部で最大何個刺せるか? ただしNは1以上100以下 Liは1以上100以下 考察 串の長さの差が小さいほどよいのでLiをソートして奇数番目に小さい値の総和をとる ''' N = int(input()) L = sorted(list(map(int,input().split(' ')))) ans = 0 for i in range(N): ans += L[2*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,158
s268418470
p04047
u619197965
1552858958
Python
Python (3.4.3)
py
Accepted
17
2940
114
n=int(input()) l=sorted([int(i) for i in 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,159
s795106764
p04047
u774144884
1552856494
Python
Python (3.4.3)
py
Accepted
17
2940
266
# -*- coding: utf-8 -*- def rli(): return list(map(int, input().split())) def main(): input() nums = rli() nums.sort() ans = 0 for i in range(0, len(nums), 2): ans += nums[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,160
s065374372
p04047
u118642796
1552822327
Python
Python (3.4.3)
py
Accepted
17
2940
120
N = int(input()) L = [int(i) for i in input().split()] L.sort() print(sum([L[i] for i in range(0,2*N,2)]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,161
s406296022
p04047
u562935282
1552765763
Python
Python (3.4.3)
py
Accepted
17
2940
107
N = int(input()) a = list(map(int, input().split())) a = list(sorted(a, 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,162
s292464156
p04047
u299355740
1552763853
Python
Python (2.7.6)
py
Accepted
11
2820
274
def main(): n=input() kushi=map(int,raw_input().split()) print answer(n,kushi) def answer(n,kushi): kushi.sort() kushi.reverse() sums=0 for i in range(1,2*n,2): sums+=kushi[i] return sums 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,163
s567023316
p04047
u350049649
1552761765
Python
Python (3.4.3)
py
Accepted
18
2940
77
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,164
s442021947
p04047
u697713131
1552760429
Python
Python (3.4.3)
py
Accepted
18
2940
123
n = int(input()) kushi = list(map(int,input().split())) kushi.sort() s = 0 for i in range(n): s += kushi[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,165
s033993429
p04047
u282228874
1552750373
Python
Python (3.4.3)
py
Accepted
17
2940
85
n = int(input()) L = list(map(int,input().split())) L.sort() X = L[::2] print(sum(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,166
s146824962
p04047
u835629653
1552748958
Python
Python (3.4.3)
py
Accepted
17
2940
138
n = int(input()) sticks = list(map(int, input().split())) sticks.sort(reverse=True) valid_lengths = sticks[1::2] print(sum(valid_lengths))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,167
s835220185
p04047
u843135954
1552741628
Python
Python (3.4.3)
py
Accepted
18
3060
260
import sys stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) nn = lambda: list(stdin.readline().split()) ns = lambda: stdin.readline().rstrip() n = ni() L = na() A = sorted(L, reverse=True)[1::2] 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,217,168
s755325042
p04047
u802772880
1552683535
Python
Python (3.4.3)
py
Accepted
17
2940
99
N=int(input()) L=list(map(int,input().split())) L.sort() l=[L[i*2] for i in range(N)] 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,217,169
s614373314
p04047
u102960641
1552657212
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,170
s978521010
p04047
u140122197
1552614079
Python
Python (3.4.3)
py
Accepted
17
2940
251
n = int(input()) # for i in range(n): items = input() li = list(map(int, items.split())) # print(type(li)) # li = [7,43,45,32,3,5,11,22] # # li2 = sorted(li) # print(li2) # li = sorted(li) print(sum([val for i, val in enumerate(li) 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,171
s163177402
p04047
u813098295
1552515309
Python
Python (3.4.3)
py
Accepted
19
3060
158
n = int(input()) a = [ int(x) for x in input().split() ] a.sort() t = [] i = 0 while i+1 < len(a): t += [ min(a[i], a[i+1]) ] i += 2 print(sum(t))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,172
s597696147
p04047
u887207211
1552454990
Python
Python (3.4.3)
py
Accepted
20
3060
129
N = int(input()) L = sorted(list(map(int,input().split()))) cnt = 0 for i in range(0,N*2-1,2): cnt += min(L[i:i+2]) 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,173
s914086802
p04047
u298297089
1552430831
Python
Python (3.4.3)
py
Accepted
20
3060
143
num = int(input()) num_list = sorted(list(map(int, input().split()))) i = 0 sum = 0 while i < num * 2: sum += num_list[i] 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,174
s666842289
p04047
u977389981
1552424582
Python
Python (3.4.3)
py
Accepted
18
2940
99
n = int(input()) L = sorted([int(i) for i in input().split()], reverse = True) print(sum(L[1::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,175
s976343484
p04047
u174603263
1552419044
Python
Python (3.4.3)
py
Accepted
21
2940
125
n = int(input()) lst = list(map(int, input().split())) lst.sort() ret = 0 for i in range(n): ret += lst[2*i] print(ret)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,176
s116225091
p04047
u158635223
1552164486
Python
Python (3.4.3)
py
Accepted
18
3060
185
def main(): n=int(input()) l=list(map(int,input().split())) l.sort() ans=0 for i in range(n): ans+=l[i*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,217,177
s524783331
p04047
u643840641
1552058556
Python
Python (3.4.3)
py
Accepted
18
2940
79
n = int(input()) l = list(map(int, input().split())) print(sum(sorted(l)[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,178
s160167529
p04047
u394721319
1551895046
Python
Python (3.4.3)
py
Accepted
18
2940
139
N = int(input()) L = [int(i) for i in input().split()] L.sort() ans = 0 for i,j in zip(L[::2], L[1::2]): ans += min(i, 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,179
s734580199
p04047
u352623442
1551771718
Python
Python (3.4.3)
py
Accepted
18
2940
124
n = int(input()) l = list(map(int,input().split())) l = sorted(l) 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,180
s854890339
p04047
u525796732
1551755817
Python
Python (3.4.3)
py
Accepted
20
2940
84
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,217,181
s248891030
p04047
u852719059
1551755095
Python
Python (3.4.3)
py
Accepted
18
2940
118
n = int(input()) Ls = list(map(int,input().split())) Ls.sort() ans = 0 for L in Ls[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,217,182
s046228277
p04047
u171366497
1551750933
Python
Python (3.4.3)
py
Accepted
18
2940
108
N=int(input()) L=list(map(int,input().split())) L.sort() ans=0 for i in range(N): ans+=L[i*2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,183
s202660927
p04047
u185896732
1551715998
Python
Python (3.4.3)
py
Accepted
18
2940
122
n=int(input()) l=list(map(int,input().split())) l.sort() sum=0 for i in range(0,2*n,2): sum+=min(l[i],l[i+1]) print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,184
s098370266
p04047
u516272298
1551715688
Python
Python (3.4.3)
py
Accepted
18
2940
116
n = int(input()) l = sorted(list(map(int,input().split()))) a = 0 for i in range(0,len(l),2): 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,185
s793249243
p04047
u265415328
1551715312
Python
Python (3.4.3)
py
Accepted
17
2940
116
a = 0 n = int(input()) le = list(map(int, input().split())) le.sort() le2 = [] le2 = le[0::2] print (str(sum(le2)))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,186
s230778464
p04047
u963903527
1551691939
Python
Python (3.4.3)
py
Accepted
17
2940
136
N = int(input()) L = [int(i) for i in input().split()] L.sort() ans = 0 while len(L) != 0: ans += min(L.pop(0), L.pop(0)) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,187
s514632482
p04047
u046776181
1551664819
Python
Python (3.4.3)
py
Accepted
17
2940
83
N = int(input()) L = list(map(int, input().split())) L.sort() print(sum(L[-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,188
s393466507
p04047
u763741681
1551494006
Python
Python (3.4.3)
py
Accepted
17
3060
117
N=int(input()) L=list(map(int,input().split())) L.sort() i=0 sum1=0 while i<2*N: sum1+=L[i] i=i+2 print(sum1)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,189
s973162065
p04047
u278260569
1551480000
Python
Python (3.4.3)
py
Accepted
18
2940
132
N = int(input()) L = list(map(int,input().split())) L_sorted = sorted(L) ans = 0 for i in range(N): ans += L_sorted[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,190
s126548679
p04047
u620945921
1551475114
Python
Python (3.4.3)
py
Accepted
18
2940
124
n=int(input()) l=[int(i) for i in input().split()] l.sort() #print(n,l) 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,191
s495975857
p04047
u411858517
1551394810
Python
Python (3.4.3)
py
Accepted
17
2940
154
N = int(input()) L = list(map(int, input().split())) L.sort() i = 0 res = 0 for _ in range(N): res += min(L[i], L[i+1]) i = i + 2 print(res)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,192
s184520144
p04047
u175034939
1551391946
Python
Python (3.4.3)
py
Accepted
17
2940
131
n = int(input()) a = list(map(int,input().split())) a.sort() cnt = 0 for i in range(n): cnt += min(a[i*2], a[i*2+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,193
s516892879
p04047
u033524082
1551376926
Python
Python (3.4.3)
py
Accepted
18
3060
115
n=int(input()) l=list(map(int,input().split())) l.sort() ans=0 i=0 while i<n*2-1: 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,194
s204422546
p04047
u766684188
1551371846
Python
Python (3.4.3)
py
Accepted
18
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,195
s226650166
p04047
u766684188
1551371770
Python
Python (3.4.3)
py
Accepted
17
2940
68
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,196
s101075750
p04047
u945418216
1551342677
Python
Python (3.4.3)
py
Accepted
17
2940
83
n = int(input()) ll = sorted(list(map(int, input().split()))) print(sum(ll[::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,197
s575155351
p04047
u251123951
1551324472
Python
Python (3.4.3)
py
Accepted
17
2940
143
n=int(input()) kushi = list(map(int,input().split())) kushi.sort() result=0 for i in range(len(kushi)//2): result+=kushi[i*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,198
s068881146
p04047
u745087332
1551314344
Python
Python (3.4.3)
py
Accepted
17
3064
545
# coding:utf-8 import sys INF = float('inf') MOD = 10 ** 9 + 7 def LI(): return [int(x) for x in sys.stdin.readline().split()] def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()] def LF(): return [float(x) for x in sys.stdin.readline().split()] def LS(): return sys.stdin.readline().split() def II():...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,199
s426702574
p04047
u343904763
1551299899
Python
Python (3.4.3)
py
Accepted
18
3068
109
N=int(input()) List =[int(i) for i in input().split()] List.sort() new_list = List[0::2] print(sum(new_list))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer 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,200
s840479425
p04047
u785989355
1551289275
Python
Python (3.4.3)
py
Accepted
17
2940
129
N=int(input()) L=list(map(int,input().split())) L.sort() ans=0 for i in range(2*N): if i%2==0: ans+=L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,201
s200363600
p04047
u367130284
1551246236
Python
Python (3.4.3)
py
Accepted
31
2940
118
_,*a=map(int,open(0).read().split()) a=sorted(a) if len(a)%2==1: del a[0] print(sum(a[s]for s in range(0,len(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,202
s699080922
p04047
u882209234
1551239086
Python
Python (3.4.3)
py
Accepted
20
3060
127
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,217,203
s405781617
p04047
u794173881
1551156712
Python
Python (3.4.3)
py
Accepted
23
2940
84
n = int(input()) a = list(map(int,input().split())) a = sorted(a) 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,204
s548319384
p04047
u543954314
1551151150
Python
Python (3.4.3)
py
Accepted
17
2940
114
n = int(input()) l = sorted(list(map(int, input().split()))) s = 0 for i in range(0,n*2,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,205
s921254751
p04047
u301984327
1550371815
Python
Python (3.4.3)
py
Accepted
17
2940
142
n = int(input()) kusi = [int(x) for x in input().split()] ans = 0 kusi.sort(reverse = True) for i in range(n): ans += kusi[i*2+1] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,206
s881355097
p04047
u988857405
1550369334
Python
Python (3.4.3)
py
Accepted
17
2940
129
N = int(input()) Ls = list(map(int, input().split())) Ls.sort() sum = 0 for i in range(0,len(Ls), 2): sum += Ls[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,207
s716553727
p04047
u201968280
1550183474
Python
Python (3.4.3)
py
Accepted
18
2940
178
n = int(input()) table = list(map(int,input().split())) table.sort() count = 0 for i in range(2*n): if i%2 == 0: count += table[i] else: pass 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,208
s215777195
p04047
u346193734
1550177537
Python
Python (3.4.3)
py
Accepted
18
2940
144
n = int(input()) l = list(map(int, input().split())) l.sort() ans = 0 for i in range(2 * n): if i % 2 == 0: ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,209
s058572448
p04047
u016567570
1550025454
Python
Python (3.4.3)
py
Accepted
17
2940
118
#-*- coding: utf-8 -*- N = int(input()) L_list = list(map(int, input().split())) L_list.sort() print(sum(L_list[::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,210
s170381027
p04047
u950708010
1550005247
Python
Python (3.4.3)
py
Accepted
17
3060
161
n = int(input()) l = list(int(i) for i in input().split()) ans = 0 l2 = sorted(l,reverse =True) for i in range(0,2*n-1,2): ans += min(l2[i],l2[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,211
s579633018
p04047
u020401041
1549985409
Python
Python (3.4.3)
py
Accepted
17
2940
135
N = int(input()) L = list(map(int, input().split())) cnt = 0 sL = sorted(L) for i in range(N): sL.pop() cnt += sL.pop() 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,212
s004308776
p04047
u272557899
1549925423
Python
Python (3.4.3)
py
Accepted
18
2940
130
n = int(input()) l = [int(m) for m 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,217,213
s643425146
p04047
u599547273
1549916679
Python
Python (3.4.3)
py
Accepted
18
2940
97
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,217,214
s788577416
p04047
u404676457
1549854839
Python
Python (3.4.3)
py
Accepted
17
2940
94
n = int(input()) l = list(map(int, input().split())) l.sort() l.reverse() print(sum(l[1::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,215
s222066851
p04047
u052347048
1549814487
Python
Python (3.4.3)
py
Accepted
18
2940
83
a=int(input()) b = sorted(list(map(int,input().split()))) print(sum(b[0:len(b):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,216