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
s004708636
p04047
u923824033
1549764612
Python
Python (3.4.3)
py
Accepted
17
3060
203
N = int(input()) kushi = 2 * N l = input().rstrip().split(" ") L = [] for i in range(kushi): L.append(int(l[i])) L.sort() x = 0 for i in range(len(L)): if i % 2 == 0: x += L[i] print(x)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,217
s633223669
p04047
u902468164
1549753066
Python
Python (3.4.3)
py
Accepted
18
2940
147
n = int(input()) l2n = [int(l) for l in input().split(" ")] l2n = sorted(l2n) ln = [l2n[i] for i in range(0, len(l2n), 2)] res = sum(ln) 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,218
s397695330
p04047
u480138356
1549752914
Python
Python (3.4.3)
py
Accepted
20
3060
121
N = int(input()) L = map(int, input().split(" ")) L = sorted(L) tmp= 0 for i in range(N): tmp += L[i*2] print(tmp)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,219
s169531019
p04047
u375616706
1549580315
Python
Python (3.4.3)
py
Accepted
17
2940
187
# python template for atcoder1 import sys sys.setrecursionlimit(10**9) input = sys.stdin.readline N = int(input()) A = list(map(int, input().split())) A = sorted(A) print(sum(A[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,220
s180840730
p04047
u879870653
1549557433
Python
Python (3.4.3)
py
Accepted
18
2940
214
N = int(input()) L = list(map(int,input().split())) L = sorted(L) ans = 0 while len(L) : if len(L) == 1 : ans += L[0] L.pop(0) else : ans += 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,221
s620782716
p04047
u631277801
1549539282
Python
Python (3.4.3)
py
Accepted
18
3064
481
import sys stdin = sys.stdin sys.setrecursionlimit(10**5) def li(): return map(int, stdin.readline().split()) def li_(): return map(lambda x: int(x)-1, stdin.readline().split()) def lf(): return map(float, stdin.readline().split()) def ls(): return stdin.readline().split() def ns(): return stdin.readline().rstrip(...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,222
s831487735
p04047
u761320129
1549538887
Python
Python (3.4.3)
py
Accepted
18
2940
112
N = int(input()) L = list(map(int,input().split())) L.sort() 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,223
s759917527
p04047
u777923818
1549538879
Python
Python (3.4.3)
py
Accepted
17
2940
157
def inpl(): return list(map(int, input().split())) N = int(input()) L = sorted(inpl()) 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,224
s630580547
p04047
u270681687
1549538852
Python
Python (3.4.3)
py
Accepted
18
3060
125
n = int(input()) l = list(map(int, input().split())) l.sort() ans = 0 for i in range(0, 2*n, 2): ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,225
s205462902
p04047
u256031597
1549339139
Python
Python (3.4.3)
py
Accepted
18
2940
80
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,226
s519019052
p04047
u689562091
1549259907
Python
Python (3.4.3)
py
Accepted
17
3060
153
N = int(input()) L = list(map(int, input().split())) L.sort(reverse=True) res = 0 for i in range(0, len(L), 2): res += min(L[i], L[i + 1]) print(res)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,227
s642493992
p04047
u904804404
1549249803
Python
Python (3.4.3)
py
Accepted
18
2940
143
a = input() lst = list(map(int,input().split(" "))) lst.sort() ans=0 for i in range(int(len(lst)/2)): ans += lst[len(lst)-2*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,228
s713433783
p04047
u760794812
1549247473
Python
Python (3.4.3)
py
Accepted
17
2940
126
N = int(input()) a = list(map(int, input().split())) a.sort() count = 0 for i in range(N): count += a[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,229
s592727929
p04047
u588633699
1549246576
Python
Python (3.4.3)
py
Accepted
18
2940
123
N = int(input()) L = list(map(int, input().split())) L.sort() x = 0 for i in range(0, 2*N, 2): x += L[i] print(x)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,230
s660200412
p04047
u588341295
1548889111
Python
Python (3.4.3)
py
Accepted
43
5536
1,228
# -*- coding: utf-8 -*- import sys, re from collections import deque, defaultdict, Counter from math import sqrt, hypot, factorial, pi, sin, cos, radians if sys.version_info.minor >= 5: from math import gcd else: from fractions import gcd from heapq import heappop, heappush, heapify, heappushpop from bisect import bi...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,231
s938986030
p04047
u190882678
1548295998
Python
Python (3.4.3)
py
Accepted
18
3060
226
input_word = input() N = int(input_word) input_word = input() tmp_list = input_word.split(" ") input_list = [ int(i) for i in tmp_list ] input_list.sort() output = 0 for i in range(N): output += input_list[2*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,232
s634357384
p04047
u695857481
1548276973
Python
Python (3.4.3)
py
Accepted
18
2940
117
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,233
s882079763
p04047
u374171306
1548221747
Python
Python (3.4.3)
py
Accepted
18
2940
144
N = int(input()) arr = [int(i) for i in input().split()] arr.sort() result = 0 for i in range(len(arr)//2): result += arr[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,234
s081602822
p04047
u993642190
1548221405
Python
Python (3.4.3)
py
Accepted
17
2940
138
N = int(input()) l = [int(i) for i in input().split()] l.sort() count = 0 for i in range(len(l) // 2) : count += l[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,235
s321980442
p04047
u638357064
1547932481
Python
Python (3.4.3)
py
Accepted
17
2940
96
N = int(input()) L = sorted([int(l) for l 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,236
s573867623
p04047
u434208140
1547769032
Python
Python (3.4.3)
py
Accepted
17
2940
105
input() a=list(map(int,input().split())) a.sort() ans=0 while(len(a)>0): ans+=a[0] a=a[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,237
s978787179
p04047
u850266651
1547441631
Python
Python (3.4.3)
py
Accepted
18
2940
121
_ = input() a = [int(i) for i in input().split()] a.sort() b = [a[i] for i in range(len(a)) if i % 2 == 0 ] print(sum(b))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,238
s146619672
p04047
u371467115
1547408641
Python
Python (3.4.3)
py
Accepted
18
2940
75
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,239
s835021497
p04047
u740284863
1547316050
Python
Python (3.4.3)
py
Accepted
18
2940
167
import sys input = sys.stdin.readline N = int(input()) kushi = sorted(list(map(int,input().split()))) sum = 0 for i in range(0,2*N,2): sum += kushi[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,240
s892975584
p04047
u740284863
1547315740
Python
Python (3.4.3)
py
Accepted
18
2940
128
N = int(input()) kushi = sorted(list(map(int,input().split()))) sum = 0 for i in range(0,2*N,2): sum += kushi[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,241
s117957140
p04047
u740284863
1547315640
Python
Python (3.4.3)
py
Accepted
23
3316
147
N = int(input()) kushi = sorted(list(map(int,input().split()))) sum = 0 for i in range(2*N): if i % 2 == 0: sum += kushi[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,242
s822524961
p04047
u102960641
1547179788
Python
Python (3.4.3)
py
Accepted
17
2940
118
n = int(input()) a = sorted(list(map(int, input().split()))) ans = 0 for i in range(0,2*n,2): ans += a[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,243
s361750556
p04047
u633967774
1546712592
Python
Python (3.4.3)
py
Accepted
20
2940
121
a=int(input()) ar=list(map(int,input().split())) ar.sort() count=0 for i in range(0,a*2,2): count+=ar[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,244
s348748108
p04047
u787562674
1546560671
Python
Python (3.4.3)
py
Accepted
18
2940
142
N = int(input()) inputs = sorted([int(i) for i in input().split()]) ans = 0 for i in range(N): ans += min(inputs[2*i: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,245
s340117548
p04047
u089032001
1546496731
Python
Python (3.4.3)
py
Accepted
17
3060
236
n = int(input()) A = sorted(list(map(int, input().split()))) ans = 0 flag = True for i in reversed(range(len(A))): if flag is False: flag = True continue if i - 1 < 0: continue ans += A[i - 1] flag = False 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,246
s858618987
p04047
u459233539
1546318866
Python
Python (3.4.3)
py
Accepted
17
2940
88
n=int(input()) l=sorted(list(map(int,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,247
s867562455
p04047
u759434129
1546286088
Python
Python (2.7.6)
py
Accepted
10
2568
65
n = input() print sum(sorted(map(int, raw_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,248
s219087759
p04047
u550943777
1546278919
Python
Python (3.4.3)
py
Accepted
20
3060
117
N = int(input()) al = sorted(list(map(int,input().split()))) sum = 0 for i in range(N): sum += al[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,249
s452235355
p04047
u176645218
1546229191
Python
Python (3.4.3)
py
Accepted
18
2940
84
N=int(input()) L=list(map(int,input().split(' '))) L.sort() L=L[::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,250
s152803490
p04047
u785578220
1546213105
Python
Python (3.4.3)
py
Accepted
20
2940
121
a = int(input()) l = list(map(int, input().split())) l.sort() res=0 for i in range(len(l)//2): res+=l[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,251
s216075759
p04047
u391331433
1546106183
Python
Python (2.7.6)
py
Accepted
21
3188
714
import sys from collections import deque import copy import math def get_read_func(fileobject): if fileobject == None : return raw_input else: return fileobject.readline def main(): if len(sys.argv) > 1: f = open(sys.argv[1]) else: f = None read_func = get_read_func...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,252
s244227152
p04047
u026102659
1545868211
Python
Python (3.4.3)
py
Accepted
17
2940
119
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,253
s121354597
p04047
u983918956
1545816976
Python
Python (3.4.3)
py
Accepted
18
2940
124
N = int(input()) L = list(map(int,input().split())) L.sort() ans = 0 for i in range(0,2*N - 1,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,254
s142974229
p04047
u848647227
1545793236
Python
Python (3.4.3)
py
Accepted
18
2940
145
a = int(input()) ar = list(map(int,input().split(" "))) ar.sort() count = 0 for i in range(0,a*2,2): count += min(ar[i],ar[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,255
s931753074
p04047
u114954806
1545584602
Python
Python (3.4.3)
py
Accepted
18
2940
150
n=int(input()) result = 0 lst=sorted(list(map(int,input().split()))) for i in range(len(lst)): if i%2 == 0: result += lst[i] 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,256
s619196708
p04047
u371467115
1545524715
Python
Python (3.4.3)
py
Accepted
18
2940
58
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,257
s476973418
p04047
u761320129
1545483756
Python
Python (3.4.3)
py
Accepted
18
3060
144
N = int(input()) L = list(map(int,input().split())) L.sort(reverse=True) ans = 0 for a,b in zip(L[::2],L[1::2]): ans += min(a,b) 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,258
s241500165
p04047
u669382434
1545249631
Python
Python (3.4.3)
py
Accepted
18
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,259
s860808593
p04047
u529076930
1544938487
Python
Python (3.4.3)
py
Accepted
18
2940
137
N=int(input()) L=list(map(int, input().split())) L_sort = sorted(L) temp=0 for i in range(0,2*N,2): temp += L_sort[i] print(temp)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,260
s776861208
p04047
u631277801
1544923876
Python
Python (3.4.3)
py
Accepted
19
3316
482
import sys stdin = sys.stdin sys.setrecursionlimit(10**5) def li(): return map(int, stdin.readline().split()) def li_(): return map(lambda x: int(x)-1, stdin.readline().split()) def lf(): return map(float, stdin.readline().split()) def ls(): return stdin.readline().split() def ns(): return stdin.readline().rstrip(...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,261
s642614683
p04047
u762488523
1544909179
Python
Python (3.4.3)
py
Accepted
18
2940
135
N=int(input()) L=list(map(int, input().split())) L_sort = sorted(L) temp=0 for i in range(0,2*N,2): temp += L_sort[i] print(temp)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,262
s371188187
p04047
u445511055
1544900729
Python
Python (3.4.3)
py
Accepted
18
2940
263
# -*- coding: utf-8 -*- def main(): """Function.""" n = int(input()) kushi = list(map(int, input().split())) kushi.sort() total = 0 for i in range(n): total += kushi[i*2] print(total) 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,263
s238383676
p04047
u063052907
1544828042
Python
Python (3.4.3)
py
Accepted
17
2940
93
# coding: utf-8 N = int(input()) lst = sorted(map(int, input().split())) print(sum(lst[::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,264
s067947983
p04047
u728498511
1544765787
Python
Python (3.4.3)
py
Accepted
18
3064
251
n = int(input()) Ls = list(map(int, input().split())) Ls.sort(reverse=True) diff = [] i = 0 while i + 1 <= len(Ls) : diff.append( min(Ls[i], Ls[i+1]) ) i += 2 diff.sort(reverse=True) ans = 0 for i in range(n): ans += diff[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,265
s092774631
p04047
u063052907
1544759328
Python
Python (3.4.3)
py
Accepted
18
2940
124
# coding: utf-8 N = int(input()) lst = sorted(map(int, input().split())) print(sum([lst[i] for i in range(2*N) if i %2==0]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,266
s444334832
p04047
u063052907
1544759068
Python
Python (3.4.3)
py
Accepted
18
2940
153
# coding: utf-8 N = int(input()) lst = sorted(map(int, input().split())) cnt = 0 for i in range(0, 2*N, 2): cnt += min(lst[i], lst[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,267
s206475497
p04047
u001024152
1544725961
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(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,268
s429527997
p04047
u731368968
1544638613
Python
Python (3.4.3)
py
Accepted
18
2940
108
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,269
s911544944
p04047
u369752439
1544593447
Python
Python (3.4.3)
py
Accepted
18
2940
194
N = int(input()) meats = list(map(int, input().strip().split())) meats.sort() answer = 0 index = 0 for meat in meats: if(index % 2 == 0): answer += meat index += 1 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,270
s630394389
p04047
u513081876
1544411222
Python
Python (3.4.3)
py
Accepted
18
2940
138
N = int(input()) L = [int(i) for i in 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,271
s519099817
p04047
u557437077
1544392183
Python
Python (3.4.3)
py
Accepted
17
2940
290
n = int(input()) l = [int(i) for i in input().split()] l = sorted(l) # 大きいものは大きいもの同士でペアを組んだ方がよい # a>b>c>dで, 「b+d>c+d」より証明完了 count = 0 # print(l) for i in range(n): count += l[i*2] # print(i) print("{}".format(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,272
s912291047
p04047
u785220618
1544237002
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,273
s460026072
p04047
u258375111
1544232648
Python
Python (3.4.3)
py
Accepted
18
2940
129
n = int(input()) x = list(map(int, input().split())) x.sort() ans = 0 for i in range(n): ans = ans + x[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,274
s523289631
p04047
u258375111
1544232179
Python
Python (3.4.3)
py
Accepted
18
2940
132
N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(N): ans = 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,275
s073684994
p04047
u258180405
1543509081
Python
Python (3.4.3)
py
Accepted
17
2940
178
"""取込""" n = int(input()) data = sorted([int(i) for i in input().split(" ")]) """問題""" # import pdb; pdb.set_trace( score = sum(data[-2::-2]) """出力""" print(score)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,276
s254376774
p04047
u284854859
1543442762
Python
Python (3.4.3)
py
Accepted
17
2940
118
n = int(input()) l = list(map(int,input().split())) l.sort() res = 0 for i in range(n): res += l[2*i] print(res)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,277
s519130401
p04047
u844789719
1543426970
Python
Python (3.4.3)
py
Accepted
17
2940
68
input() print(sum(sorted([int(_) for _ in input().split()])[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,278
s908272095
p04047
u004025573
1543217033
Python
Python (3.4.3)
py
Accepted
17
2940
131
N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(N): ans = 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,279
s799921103
p04047
u047535298
1543003196
Python
Python (3.4.3)
py
Accepted
20
2940
80
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,280
s774166090
p04047
u853900545
1542649597
Python
Python (3.4.3)
py
Accepted
17
2940
110
n = int(input()) l = sorted(list(map(int,input().split()))) c = 0 for i in range(n): c += l[2*i] print(c)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,281
s257925830
p04047
u598167418
1542605217
Python
PyPy2 (5.6.0)
py
Accepted
35
27884
115
n = input() arr = map(int,raw_input().split()) arr.sort() ans = 0 for i in range(0,2*n,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,282
s394510107
p04047
u131666536
1542225735
Python
Python (3.4.3)
py
Accepted
18
2940
177
# -*- coding: utf-8 -*- n = int(input()) kusi = [int(s) for s in input().split()] kusi.sort() bbq = [] cnt = 0 for i in range(0, 2*n, 2): cnt += kusi[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,283
s341882394
p04047
u432805419
1542163973
Python
Python (3.4.3)
py
Accepted
17
2940
86
a = int(input()) b = list(map(int,input().split())) b = sorted(b) print(sum(b[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,284
s597845964
p04047
u930862022
1541993099
Python
Python (3.4.3)
py
Accepted
17
2940
116
n = int(input()) l = list(map(int, input().split())) l.sort() m = 0 for i in range(n): m = m + l[2*i] print(m)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,285
s601061651
p04047
u398846051
1541815990
Python
Python (3.4.3)
py
Accepted
18
2940
80
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,286
s395081424
p04047
u505420467
1541796366
Python
Python (3.4.3)
py
Accepted
18
3064
80
n=int(input()) a=list(map(int,input().split())) a.sort() b=a[::2] print(sum(b))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,287
s557098448
p04047
u596276291
1541614811
Python
Python (3.4.3)
py
Accepted
28
3948
1,031
from collections import defaultdict, Counter from itertools import product, groupby, count, permutations, combinations from math import pi, sqrt from collections import deque from bisect import bisect, bisect_left, bisect_right from string import ascii_lowercase from functools import lru_cache import sys sys.setrecursi...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,288
s058717868
p04047
u328207927
1541605409
Python
Python (3.4.3)
py
Accepted
99
3064
209
N=int(input()) L=list(map(int,input().strip().split())) an=0 for i in range(N): kusi=[] kusi.append(min(L)) L.remove(min(L)) kusi.append(min(L)) L.remove(min(L)) an+=min(kusi) print(an)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,289
s568082398
p04047
u393558821
1541479033
Python
Python (3.4.3)
py
Accepted
17
2940
202
import sys def main(): x = int(input()) lst = list(int(x) for x in input().split(' ')) lst.sort() ans = 0 for i in range(0,x*2,2): ans += int(lst[i]) print(ans) main()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,290
s656738349
p04047
u214617707
1541470657
Python
Python (3.4.3)
py
Accepted
17
2940
126
N = int(input()) L = list(map(int, input().split())) L = sorted(L) num = 0 for i in range(N): num += L[2 * i] print(num)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,291
s574482299
p04047
u173374079
1541226084
Python
Python (3.4.3)
py
Accepted
18
3060
164
n = int(input()) l = map(int, input().split()) l = sorted(l) ans = 0 for i in range(n): a = l[2 * i] b = l[2 * i + 1] ans = ans + min(a, b) 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,292
s155543636
p04047
u500279510
1541206605
Python
Python (3.4.3)
py
Accepted
17
2940
120
n = int(input()) a = list(map(int,input().split())) a.sort() ans = 0 for i in range (0, 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,293
s188781770
p04047
u427344224
1540908825
Python
Python (3.4.3)
py
Accepted
19
3060
162
N = int(input()) l_list = list(map(int, input().split())) l_list.sort() result = 0 for i in range(0, 2*N, 2): l1 = l_list[i] result += l1 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,294
s936254289
p04047
u427344224
1540908762
Python
Python (3.4.3)
py
Accepted
17
3060
211
N = int(input()) l_list = list(map(int, input().split())) l_list.sort() result = 0 for i in range(0, 2*N, 2): l1 = l_list[i] l2 = l_list[i+1] min_l = min(l1, l2) result += min_l 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,295
s107911840
p04047
u820351940
1540855768
Python
Python (3.4.3)
py
Accepted
17
2940
107
n = int(input()) a = list(map(int, input().split())) a.sort() print(sum(map(min, zip(a[::2], 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,296
s474850024
p04047
u409064224
1540855060
Python
Python (3.4.3)
py
Accepted
17
2940
154
n = int(input()) l = list(map(int,input().split())) res = 0 l.sort() l.reverse() for i in range(n): point = 1 + 2*i res += l[point] else: 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,297
s226145692
p04047
u612636296
1540854833
Python
Python (3.4.3)
py
Accepted
18
3060
136
N = int(input()) L = list(map(int, input().split())) ans = 0 L.sort() for i in range(0, 2 * N, 2): ans += L[i] else: 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,298
s122870585
p04047
u137667583
1540854772
Python
Python (3.4.3)
py
Accepted
17
2940
128
N = int(input()) L = list(map(int,input().split())) sum = 0 L.sort() for i in range(0,len(L),2): sum = sum + L[i] print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,299
s634969251
p04047
u177040005
1540785083
Python
Python (3.4.3)
py
Accepted
21
3316
318
import collections N = int(input()) L = list(map(int,input().split())) LL = [] dic = collections.Counter(L) ans = 0 for k,v in dic.items(): if v == 1: LL.append(k) else: ans += k*(v//2) if v%2 == 1: LL.append(k) LL = sorted(LL) for l in LL[::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,300
s815095861
p04047
u323680411
1540771497
Python
Python (3.4.3)
py
Accepted
18
3060
451
from sys import stdin def main() -> None: n = next_int() l = [next_int() for _ in range(2 * n)] l.sort() ans = sum(l[::2]) print(ans) def next_int() -> int: return int(next_str()) def next_str() -> str: result = "" while True: tmp = stdin.read(1) if tmp.strip() != ...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,301
s142257804
p04047
u323680411
1540771341
Python
Python (3.4.3)
py
Accepted
18
3064
488
from sys import stdin def main() -> None: n = next_int() l = [next_int() for _ in range(2 * n)] l.sort() ans = 0 for i in range(n): ans += l[2 * i] print(ans) def next_int() -> int: return int(next_str()) def next_str() -> str: result = "" while True: tmp = std...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,302
s082331440
p04047
u533885955
1540080984
Python
Python (3.4.3)
py
Accepted
17
3060
180
A = int(input()) rate = [] rate = list(map(int,input().strip().split(' '))) rate.sort(reverse=True) i = 0 sum = 0 while i < A : sum = sum + rate[2*i+1] i = 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,303
s240699110
p04047
u667024514
1540003048
Python
Python (3.4.3)
py
Accepted
19
2940
120
n = int(input()) lis = list(map(int,input().split())) lis.sort() ans = 0 for i in range(n): ans += lis[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,304
s575291927
p04047
u753869160
1539957570
Python
Python (3.4.3)
py
Accepted
19
3060
128
input() datas = sorted(map(int, input().split()), reverse=True) print(sum([min(datas[x:x+2]) for x in range(0, len(datas), 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,305
s323085579
p04047
u789840108
1539862132
Python
Python (3.4.3)
py
Accepted
18
3060
199
n = int(input()) lis = list(map(int, input().split(' '))) ret = 0 for i in range(n): pair1 = max(lis) lis.remove(pair1) pair2 = max(lis) lis.remove(pair2) ret += pair2 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,306
s095355750
p04047
u724892495
1539615900
Python
Python (3.4.3)
py
Accepted
17
2940
127
N=int(input()) L=[int(i) for i in input().split()] L.sort() ans=0 for i in range(N): ans += min(L[2*i],L[2*i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,307
s533053760
p04047
u845333844
1539463331
Python
Python (3.4.3)
py
Accepted
17
2940
120
n=int(input()) l=list(map(int,input().split())) l.sort() k=l[::2] sum=0 for i in range(n): sum += k[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,308
s009189014
p04047
u178536051
1539460141
Python
Python (3.4.3)
py
Accepted
17
3060
138
N = int(input()) kushis = sorted(list(map(int, input().split()))) guzai = 0 for i in range(0, 2*N, 2): guzai += kushis[i] print(guzai)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,309
s690772098
p04047
u138486156
1539375418
Python
Python (3.4.3)
py
Accepted
17
2940
117
n = int(input()) l = sorted(list(map(int, input().split()))) ans = 0 for i in range(n): ans += l[2*i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,310
s230215182
p04047
u333139319
1539110802
Python
Python (3.4.3)
py
Accepted
17
2940
143
n = int(input()) l = [int(i) for i in input().split()] a = 0 l.sort() for i in range(len(l)): if i % 2 == 0: 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,311
s492157069
p04047
u619819312
1538925384
Python
Python (3.4.3)
py
Accepted
17
2940
115
n=int(input()) s=list(map(int,input().split())) s.sort() c=0 for i in range(0,n): c+=min(s[i*2],s[i*2+1]) print(c)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,312
s717911503
p04047
u711295009
1538925093
Python
Python (3.4.3)
py
Accepted
17
3060
163
n = int(input()) listL = list(map(int, input().split())) listL.sort() count=0 index=0 while index < len(listL): count+=listL[index] index+=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,313
s497518619
p04047
u589087860
1538844790
Python
Python (3.4.3)
py
Accepted
17
2940
162
n = int(input()) l = list(map(int, input().split())) l.sort(reverse = True) ans = 0 for i in range(len(l)): if i % 2 == 1: 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,314
s556665359
p04047
u603234915
1538774400
Python
Python (3.4.3)
py
Accepted
17
2940
151
n = int(input()) l = list(map(int, input().split())) l.sort(reverse=True) ans = 0 for i in range(len(l)): if i%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,315
s948210221
p04047
u879870653
1538698425
Python
Python (3.4.3)
py
Accepted
17
2940
159
N = int(input()) L = list(map(int,input().split())) L = sorted(L) 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,316