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
s742758348
p04047
u896741788
1576797153
Python
Python (3.4.3)
py
Accepted
17
2940
68
n=int(input()) l=sorted(map(int,input().split())) print(sum(l[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,917
s071244986
p04047
u598229387
1576560502
Python
Python (3.4.3)
py
Accepted
17
2940
116
n=int(input()) li=[int(i) for i in input().split()] li=sorted(li) ans=0 for i in range(n): ans+=li[i*2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,918
s716563268
p04047
u905582793
1576549482
Python
Python (3.4.3)
py
Accepted
18
3064
75
n=int(input()) a=list(map(int,input().split())) a.sort() print(sum(a[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,919
s468127495
p04047
u475503988
1576276713
Python
Python (3.4.3)
py
Accepted
17
2940
133
N = int(input()) L = list(map(int, input().split())) L.sort(reverse=True) ans = 0 for i in range(N): ans += L[2*i+1] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,920
s189330727
p04047
u815878613
1576179099
Python
Python (3.4.3)
py
Accepted
17
2940
127
N = int(input()) L = sorted(list(map(int, input().split()))) ans = 0 for i in range(0, N * 2, 2): ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,921
s037082302
p04047
u183896397
1576034813
Python
Python (3.4.3)
py
Accepted
18
2940
125
n = int(input()) l = [int(i) for i in input().split()] l.sort() ans = 0 for i in range(0,2*n,2): ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,922
s689749053
p04047
u989345508
1575987884
Python
Python (3.4.3)
py
Accepted
17
2940
105
n=int(input()) l=sorted([int(i) for i in 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,216,923
s961492494
p04047
u728615412
1575925513
Python
Python (3.4.3)
py
Accepted
17
2940
118
N = int(input()) L = list(map(int,input().split())) L.sort() Sum = 0 for i in range(0,N*2,2): Sum += L[i] print(Sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,924
s489807336
p04047
u252828980
1575602290
Python
Python (3.4.3)
py
Accepted
17
2940
151
n = int(input()) L = list(map(int,input().split())) L.sort(reverse = True) cnt = 0 for i in range(n): cnt += min(L[2*i],L[2*i+1]) print(cnt)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,925
s722742810
p04047
u824237520
1575556553
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(n): ans += a[i*2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,926
s758541808
p04047
u754022296
1575170962
Python
Python (3.4.3)
py
Accepted
17
2940
79
n = int(input()) L = sorted(list(map(int, input().split()))) print(sum(L[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,927
s040785125
p04047
u488127128
1575149724
Python
Python (3.4.3)
py
Accepted
17
2940
153
# coding: utf-8 def main(): n = int(input()) l = sorted(map(int, input().split())) print(sum(l[::2])) if __name__ == '__main__': main()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,928
s731496909
p04047
u936985471
1574982812
Python
Python (3.4.3)
py
Accepted
17
2940
110
n=int(input()) L=sorted(list(map(int,input().split()))) ans=0 for i in range(0,n*2,2): ans+=L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,929
s353302893
p04047
u032468447
1574968277
Python
Python (3.4.3)
py
Accepted
17
2940
172
N = int(input()) x = list(map(int,input().split())) x = sorted(x,reverse = True) ans = 0 for i in range(len(x)): if i % 2 == 0: ans += min(x[i],x[i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,930
s309642182
p04047
u073852194
1574890741
Python
Python (3.4.3)
py
Accepted
17
2940
124
N = int(input()) L = list(map(int,input().split())) L.sort() ans = 0 for i in range(N): ans += L[i*2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,931
s340044318
p04047
u386819480
1574573984
Python
Python (3.4.3)
py
Accepted
17
3064
526
#!/usr/bin/env python3 import sys sys.setrecursionlimit(10000000) INF = 1<<32 def solve(N: int, L: "List[int]"): L.sort() print(sum([L[i] for i in range(2*N) if i%2 == 0])) return def main(): def iterate_tokens(): for line in sys.stdin: for word in line.split(): ...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,932
s590794616
p04047
u995109095
1574565714
Python
Python (3.4.3)
py
Accepted
17
2940
220
n=int(input()) a=sorted(list(map(int,input().split())),reverse=True) ans=0 c=0 for i in range(0,len(a),2): if c>n: break #print(a[i],a[i+1],min(a[i],a[i+1])) ans+=min(a[i],a[i+1]) c+=1 print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,933
s814817528
p04047
u511379665
1574315124
Python
Python (3.4.3)
py
Accepted
17
2940
161
n=int(input()) l=list(map(int,input().split())) l.sort(reverse=True) ans=0 for i in range(0,len(l)-1): if i%2==0: ans+=min(l[i],l[i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,934
s179882102
p04047
u276115223
1574282173
Python
Python (3.4.3)
py
Accepted
18
2940
183
# AGC 001: A – BBQ Easy n = int(input()) l = [int(s) for s in input().split()] l.sort() total_number = 0 for i in range(0, n * 2, 2): total_number += l[i] print(total_number)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,935
s259017753
p04047
u094191970
1574212183
Python
Python (3.4.3)
py
Accepted
17
2940
126
n=int(input()) l=sorted(list(map(int,input().split())),reverse=True) cnt=0 for i in range(0,2*n,2): cnt+=l[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,216,936
s743878633
p04047
u782098901
1574198069
Python
Python (3.4.3)
py
Accepted
17
2940
74
N = int(input()) print(sum(sorted(list(map(int, input().split())))[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,937
s930263323
p04047
u695197008
1574183777
Python
Python (2.7.6)
py
Accepted
10
2568
103
N = int(raw_input()) L = sorted(map(int, raw_input().strip().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,216,938
s653452262
p04047
u495699318
1573864180
Python
Python (3.4.3)
py
Accepted
17
2940
109
n=int(input()) l=list(map(int,input().split())) l.sort() ans =0 for i in range(n): ans+=l[i*2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,939
s239132076
p04047
u326661089
1573785065
Python
Python (3.4.3)
py
Accepted
17
2940
198
import sys if __name__ == "__main__": N = sys.stdin.readline() L_list = list(map(int, sys.stdin.readline().split())) L_list.sort() total_bbq = sum(L_list[::2]) print(total_bbq)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,940
s948629431
p04047
u377989038
1573576953
Python
Python (3.4.3)
py
Accepted
17
2940
116
n = int(input()) l = sorted(list(map(int, input().split()))) cnt = 0 for i in range(n): cnt += l[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,216,941
s382897542
p04047
u674086791
1573539458
Python
Python (3.4.3)
py
Accepted
17
3060
312
#!/usr/bin/python import sys kusi = int(input()) kusi_len = input().rstrip().split(" ") cnt = 0 ans = 0 for line in sorted(kusi_len, key=int): cnt += 1 if cnt == 1: a = int(line) elif cnt == 2: b = int(line) if a <= b: ans = ans + a else: ans = ans + b cnt = 0 print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,942
s201625585
p04047
u674086791
1573539449
Python
Python (3.4.3)
py
Accepted
17
3060
312
#!/usr/bin/python import sys kusi = int(input()) kusi_len = input().rstrip().split(" ") cnt = 0 ans = 0 for line in sorted(kusi_len, key=int): cnt += 1 if cnt == 1: a = int(line) elif cnt == 2: b = int(line) if a <= b: ans = ans + a else: ans = ans + b cnt = 0 print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,943
s050581115
p04047
u940831163
1573197731
Python
Python (3.4.3)
py
Accepted
17
2940
115
n = int(input()) l = list(map(int, input().split())) l.sort() ans = 0 for i in range(n): ans += l[2*i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,944
s068203502
p04047
u455533363
1572885582
Python
Python (3.4.3)
py
Accepted
19
2940
139
n = int(input()) li = sorted(list(map(int,input().split()))) k=0 count =0 for i in range(n): count += li[k] k += 2 print(count)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,945
s731391176
p04047
u032468447
1572583183
Python
Python (3.4.3)
py
Accepted
17
2940
128
N = int(input()) L = list(map(int,input().split())) L.sort() answer = 0 for i in range(N): answer += L[2*i] print(answer)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,946
s062514591
p04047
u374531474
1572321266
Python
Python (3.4.3)
py
Accepted
17
2940
83
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,216,947
s580946841
p04047
u347640436
1572062532
Python
Python (3.4.3)
py
Accepted
17
2940
82
N = int(input()) L = list(map(int, input().split())) L.sort() print(sum(L[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,948
s822237147
p04047
u183840468
1571955045
Python
Python (3.4.3)
py
Accepted
17
2940
128
n = int(input()) l = sorted([int(i) for i in input().split()]) l2 = [min(l[i],l[i-1]) for i in range(1,2*n,2)] print(sum(l2))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,949
s310555241
p04047
u945181840
1571595881
Python
Python (3.4.3)
py
Accepted
17
2940
82
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,216,950
s923599449
p04047
u912115033
1571524759
Python
Python (3.4.3)
py
Accepted
18
2940
124
n = int(input()) L = sorted([int(i) for i in input().split()]) count = 0 for i in range(n): 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,216,951
s614616694
p04047
u644360640
1571343530
Python
Python (3.4.3)
py
Accepted
17
2940
123
n = int(input()) l = list(map(int,input().split())) l.sort() ans = [j for i,j in enumerate(l) if i%2 == 0] print(sum(ans))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,952
s603678950
p04047
u392319141
1570792830
Python
Python (3.4.3)
py
Accepted
17
2940
154
N = int(input()) L = list(map(int, input().split())) L.sort(reverse=True) ans = 0 for i in range(0, 2 * N, 2): ans += min(L[i], L[i + 1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,953
s640754101
p04047
u556371693
1570731923
Python
Python (3.4.3)
py
Accepted
17
2940
106
n=int(input()) l=list(map(int,input().split())) l.sort() ans=0 for _ in range(n): ans+=l[2*_] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,954
s747630957
p04047
u105124953
1570670852
Python
Python (3.4.3)
py
Accepted
18
3060
239
import heapq n = int(input()) src = list(map(int, input().split())) sorted_src = sorted(src) heapq.heapify(sorted_src) count = 0 for i in range(n): a = heapq.heappop(sorted_src) heapq.heappop(sorted_src) count += a print(count)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,955
s749805459
p04047
u042802884
1570669624
Python
Python (3.4.3)
py
Accepted
18
2940
122
N=int(input()) L=list(map(int,input().split())) L.sort() ans=0 for i in range(N): ans+=min(L[2*i],L[2*i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,956
s539888649
p04047
u937642029
1570541697
Python
Python (3.4.3)
py
Accepted
17
2940
111
n=int(input()) l=list(map(int,input().split())) l.sort() ans=0 for i in range(n): ans+=l[i*2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,957
s253469967
p04047
u879309973
1570495160
Python
Python (3.4.3)
py
Accepted
17
2940
120
def solve(n, l): return sum(sorted(l)[::2]) n = int(input()) l = list(map(int, input().split())) print(solve(n, l))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,958
s881073730
p04047
u928254435
1570331048
Python
Python (3.4.3)
py
Accepted
17
2940
175
#!/usr/bin/env python3 # -*- coding: utf-8 -*- n = input() l = sorted(list(map(int, input().split()))) i = 0 sum = 0 while (i < len(l) - 1): sum += l[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,216,959
s054005849
p04047
u197955752
1570311002
Python
Python (3.4.3)
py
Accepted
18
3188
200
import heapq N = int(input()) L = input().split() L = [int(a) for a in L] heapq.heapify(L) sum = 0 for i in range(N): k1 = heapq.heappop(L) k2 = heapq.heappop(L) sum += k1 print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,960
s411009522
p04047
u027929618
1570242709
Python
Python (3.4.3)
py
Accepted
18
2940
123
n=int(input()) L=list(map(int,input().split())) L.sort() ans=0 for i in range(0,2*n,2): ans+=min(L[i], L[i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,961
s479283524
p04047
u625963200
1570234649
Python
Python (3.4.3)
py
Accepted
17
2940
123
n=int(input()) L=list(map(int,input().split())) L.sort() ans=0 for i in range(0,2*n,2): ans+=min(L[i],L[i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,962
s595384518
p04047
u879870653
1570154331
Python
Python (3.4.3)
py
Accepted
17
2940
122
N = int(input()) L = list(map(int,input().split())) L.sort() ans = 0 for i in range(0,2*N,2) : ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,963
s195010718
p04047
u396495667
1569944991
Python
Python (3.4.3)
py
Accepted
17
2940
88
n = int(input()) l = [int(_) for _ in input().split()] l.sort() m = l[::2] print(sum(m))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,964
s161942030
p04047
u161318582
1569884746
Python
Python (3.4.3)
py
Accepted
18
2940
111
a = int(input()) x = sorted(list(map(int,input().split()))) cnt=0 for i in range(a): cnt += x[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,216,965
s354089044
p04047
u463775490
1569883878
Python
Python (3.4.3)
py
Accepted
17
2940
120
n = int(input()) l = list(map(int,input().split())) l.sort() ans = 0 for i in range(0,2*n,2): ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,966
s997988250
p04047
u892445454
1569705168
Python
Python (3.4.3)
py
Accepted
18
2940
175
N = int(input()) list = list(map(int, input().split())) list.sort(reverse = True) result = 0 for i in range(N): result += min(list[2 * i], list[2 * i + 1]) 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,216,967
s145779747
p04047
u120691615
1569629716
Python
Python (3.4.3)
py
Accepted
18
2940
148
N = int(input()) L = list(map(int,input().split())) L.sort(reverse=True) #print(L) cnt = 0 for l in L[1::2]: #print(l) cnt += l 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,216,968
s132670247
p04047
u649172849
1569567248
Python
Python (3.4.3)
py
Accepted
17
2940
60
input() print(sum(sorted(map(int, input().split()))[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,969
s240636288
p04047
u649172849
1569566617
Python
Python (3.4.3)
py
Accepted
18
2940
81
n = int(input()) l = tuple(sorted(map(int, input().split()))) print(sum(l[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,970
s110887475
p04047
u714378447
1569353711
Python
Python (3.4.3)
py
Accepted
16
2940
111
N=int(input()) A=[int(x) for x in input().split()] A.sort() print(sum([A[i] for i in range(len(A)) 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,216,971
s461286723
p04047
u077291787
1569148232
Python
Python (3.4.3)
py
Accepted
18
2940
167
# AGC001A - BBQ Easy def main(): N, *L = map(int, open(0).read().split()) L.sort() ans = sum(L[::2]) print(ans) if __name__ == "__main__": main()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,972
s557762554
p04047
u322354465
1569096852
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]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,973
s575510263
p04047
u941438707
1568680323
Python
Python (3.4.3)
py
Accepted
17
2940
102
n=int(input()) a=[int(i) for i in input().split()] a.sort() print(sum([a[i] for i in range(0,2*n,2)]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,974
s608129758
p04047
u233747425
1568678620
Python
Python (3.4.3)
py
Accepted
17
2940
140
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,216,975
s957998858
p04047
u792670114
1568659521
Python
Python (3.4.3)
py
Accepted
17
3064
91
N = int(input()) Ls = list(map(int, input().split())) Ls.sort() r = sum(Ls[0::2]) print(r)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,976
s563143371
p04047
u787059958
1568580305
Python
Python (3.4.3)
py
Accepted
17
3060
166
n = int(input()) li = list(map(int, input().split())) l = sorted(li) lis = [] for i in range(2*n): if (i%2 == 0): lis.append(l[i]) a = sum(lis) 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,216,977
s535109526
p04047
u787456042
1568471600
Python
Python (3.4.3)
py
Accepted
17
2940
96
N,*L=map(int,open(0).read().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,216,978
s293155771
p04047
u879870653
1568226948
Python
Python (3.4.3)
py
Accepted
17
2940
158
"#!/usr/bin/env python3" N = int(input()) L = list(map(int,input().split())) L = sorted(L) ans = 0 for i in range(0, 2*N, 2) : ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,979
s477633399
p04047
u879870653
1568225235
Python
Python (3.4.3)
py
Accepted
17
2940
158
"#!/usr/bin/env python3" N = int(input()) L = list(map(int,input().split())) L = sorted(L) ans = 0 for i in range(0, 2*N, 2) : ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,980
s047909879
p04047
u879870653
1568225039
Python
Python (3.4.3)
py
Accepted
18
2940
158
"#!/usr/bin/env python3" N = int(input()) L = list(map(int,input().split())) L = sorted(L) ans = 0 for i in range(0, 2*N, 2) : ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,981
s292690081
p04047
u879870653
1568224369
Python
Python (3.4.3)
py
Accepted
17
2940
132
N = int(input()) L = list(map(int,input().split())) L = sorted(L) ans = 0 for i in range(0, 2*N, 2) : ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,982
s549987392
p04047
u802963389
1568110488
Python
Python (3.4.3)
py
Accepted
17
2940
107
input() l = list(map(int, input().split())) l.sort() print(sum([v for i, v in enumerate(l) if i % 2 == 0]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,983
s062447698
p04047
u396495667
1568041313
Python
Python (3.4.3)
py
Accepted
17
3060
163
n = int(input()) l = list(map(int, input().split())) kumi = sorted(l,reverse=True) ans = 0 for i in range(0, n*2, 2): ans += min(kumi[i], kumi[i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,984
s359082201
p04047
u480138356
1568004317
Python
Python (3.4.3)
py
Accepted
17
3060
265
import sys input = sys.stdin.readline def main(): N = int(input()) l = sorted(list(map(int, input().split())), reverse=True) ans = 0 for i in range(0, N*2, 2): ans += min(l[i], l[i+1]) print(ans) if __name__ == "__main__": main()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,985
s437877465
p04047
u777283665
1567961462
Python
Python (3.4.3)
py
Accepted
17
2940
125
n = int(input()) l = sorted(list(map(int, input().split()))) ans = 0 for i in range(0, 2 * n, 2): ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,986
s649871940
p04047
u410118019
1567655009
Python
Python (3.4.3)
py
Accepted
17
2940
74
n = input() l = list(map(int,input().split())) l.sort() print(sum(l[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,987
s185878365
p04047
u374802266
1567636723
Python
Python (3.4.3)
py
Accepted
19
3060
71
n=int(input()) print(sum(sorted(list(map(int,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,216,988
s611017991
p04047
u245788181
1567584844
Python
Python (3.4.3)
py
Accepted
17
2940
128
n = int(input()) l = list(map(int,input().split(" "))) l.sort() ans = int(0) for i in range(0,2*n,2): ans += l[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,989
s967749220
p04047
u131634965
1567580108
Python
Python (3.4.3)
py
Accepted
17
2940
125
n=int(input()) L=sorted(list(map(int, input().split()))) all_sum=0 for i in range(0,2*n,2): all_sum+=L[i] print(all_sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,990
s214212918
p04047
u396391104
1567541023
Python
Python (3.4.3)
py
Accepted
17
2940
81
n = int(input()) l = list(map(int,input().split())) l.sort() print(sum(l[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,991
s480172327
p04047
u155594782
1567458402
Python
Python (3.4.3)
py
Accepted
20
3064
315
N=input() L=list(map(int,input().split())) items=0 while(L): if L[0]<L[1] : s_lg=L[0] lg=L[1] else: s_lg=L[1] lg=L[0] if len(L)>2: for i in range(2,len(L)) : if L[i]>=lg: s_lg=lg lg=L[i] elif L[i]>=s_lg : s_lg=L[i] items=items+s_lg L.remove(s_lg) L.remove(lg) print(items)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,992
s405474082
p04047
u874303957
1567275020
Python
Python (3.4.3)
py
Accepted
17
2940
126
N = int(input()) L = list(map(int, input().split())) L.sort() s = 0 for i in range(len(L) // 2): s += L[i * 2] print(s)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,993
s295743412
p04047
u993622994
1567193929
Python
Python (3.4.3)
py
Accepted
18
3060
146
n = int(input()) l = list(map(int, input().split())) l.sort(reverse=True) ans = 0 for i in range(0, n*2, 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,216,994
s278943383
p04047
u116002573
1567108208
Python
Python (3.4.3)
py
Accepted
19
3060
219
def main(): N = int(input()) L = list(map(int, input().split())) L.sort(reverse = True) ans = 0 for i in range(N): ans += L[2*i+1] return ans if __name__ == '__main__': print(main())
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,995
s753477457
p04047
u395202850
1567043886
Python
Python (3.4.3)
py
Accepted
17
2940
147
n = int(input()) l = list(map(int, input().split())) l = sorted(l) lSum = 0 for i in range(n): lSum += min(l[2 * i], l[2 * i + 1]) print(lSum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,996
s920935769
p04047
u753803401
1566583172
Python
Python (3.4.3)
py
Accepted
17
2940
146
n = int(input()) l = sorted(list(map(int, input().split())), reverse=True) t = 0 for i in range(1, n * 2, 2): t += min(l[i], l[i-1]) print(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,216,997
s454520092
p04047
u266874640
1566311899
Python
Python (3.4.3)
py
Accepted
17
2940
166
N = int(input()) L = sorted(list(map(int,input().split()))) ans = 0 for i in range(2*N): if i % 2 == 1: continue else: ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,998
s675908498
p04047
u265768297
1566169910
Python
Python (3.4.3)
py
Accepted
17
2940
108
n=int(input()) l=list(map(int,input().split())) l.sort() ans=0 for i in range(n): ans+=l[2*i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,216,999
s990053014
p04047
u256868077
1566145452
Python
Python (3.4.3)
py
Accepted
17
2940
124
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,000
s467278053
p04047
u154775085
1566094290
Python
Python (3.4.3)
py
Accepted
17
3064
131
n = int(input()) a = list(map(int, input().split())) a.sort() ans = 0 for i in range(2*n): if not i&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,001
s714719754
p04047
u503228842
1566073938
Python
Python (3.4.3)
py
Accepted
17
2940
131
N = int(input()) L = list(map(int,input().split())) L.sort() #print(L) ans = 0 for i in range(0,2*N,2): ans += L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,002
s977326568
p04047
u459798349
1566073387
Python
Python (3.4.3)
py
Accepted
17
2940
123
n=int(input()) L=[int(i) for i in input().split()] L.sort() ans=0 for i in range(0,2*n,2): ans+=L[i] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,003
s019655695
p04047
u076917070
1566016574
Python
Python (3.4.3)
py
Accepted
17
2940
174
import sys input=sys.stdin.readline N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(0, 2*N, 2): ans += min(L[i],L[i+1]) print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,004
s008885008
p04047
u328364772
1565990852
Python
Python (3.4.3)
py
Accepted
17
2940
145
n = int(input()) L = list(map(int, input().split())) L = sorted(L) 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,005
s323642640
p04047
u982594421
1565981820
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,006
s105052539
p04047
u670180528
1565967679
Python
Python (3.4.3)
py
Accepted
17
2940
55
_,a=open(0);print(sum(sorted(map(int,a.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,007
s970290919
p04047
u999669171
1565918013
Python
Python (3.4.3)
py
Accepted
18
2940
135
n = int( input() ) l = list( map( int, input().split() ) ) l.sort() sum = 0 for i in range( 0, 2*n, 2 ) : 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,008
s321365190
p04047
u919633157
1565905761
Python
Python (3.4.3)
py
Accepted
19
2940
138
# 2019/08/15 n=2*int(input()) l=sorted(list(map(int,input().split()))) cnt=0 for i in range(0,n,2): cnt+=min(l[i],l[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,009
s378750090
p04047
u933750963
1565838239
Python
Python (3.4.3)
py
Accepted
18
2940
129
x=input() y = sorted(list(map(int, input().split()))) i=1 z=0 for i in range(int(len(y)/2)): z+=y[-2*i] i+=1 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,010
s203597616
p04047
u333190709
1565820840
Python
Python (3.4.3)
py
Accepted
43
5176
712
#!/usr/bin/env python3 import sys, math, fractions, itertools def solve(N: int, L: "List[int]"): L = sorted(L) res = 0 for i in range(N): res += min(L[2*i], L[2*i+1]) print(res) return # Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default templat...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,011
s081595892
p04047
u993493158
1565797578
Python
Python (3.4.3)
py
Accepted
24
2940
161
n = int(input()) L = list(map(int, input().split())) L.sort() array_L = [] for m in [i * 2 for i in range(n)]: array_L.append(L[m]) print(sum(array_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,012
s565344467
p04047
u948524308
1565727385
Python
Python (3.4.3)
py
Accepted
18
2940
119
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,013
s370094681
p04047
u753803401
1565711281
Python
Python (3.4.3)
py
Accepted
18
2940
152
n = int(input()) l = list(map(int, input().split())) l = sorted(l, reverse=True) t = 0 for i in range(1, n * 2, 2): t += min(l[i], l[i-1]) print(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,014
s094761049
p04047
u223447847
1565687032
Python
Python (3.4.3)
py
Accepted
17
2940
138
n = int(input()) a = list(map(int, input().split())) ans = 0 a.sort(reverse=True) for i in range(1,n+1): ans += a[2*i-1] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,015
s271970493
p04047
u227412361
1565341757
Python
Python (3.4.3)
py
Accepted
17
2940
93
n = int(input()) lst = list(map(int,input().split())) lst.sort() s = sum(lst[0::2]) 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,016