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
s474873990
p04047
u086012568
1509842503
Python
Python (2.7.6)
py
Accepted
10
2568
95
n = input() a = sorted(map(int, raw_input().split())) print sum([a[2 * i] for i in xrange(n)])
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,417
s552866528
p04047
u536081558
1509563107
Python
Python (2.7.6)
py
Accepted
11
2568
85
input() a = sorted(map(int, raw_input().split()), reverse = True) print sum(a[1::2])
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,418
s292236865
p04047
u367393577
1508979907
Python
Python (3.4.3)
py
Accepted
17
3060
137
N = int(input()) L = sorted(map(int, input().split())) 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,419
s897629416
p04047
u433184056
1508607307
Python
Python (3.4.3)
py
Accepted
20
3060
146
N = int(input()) L = list(map(int, input().split())) L.sort() sum = 0 for i in range(N): x = L.pop(0) y = L.pop(0) sum += x 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,420
s790511885
p04047
u269390702
1508390673
Python
Python (3.4.3)
py
Accepted
18
2940
122
n=int(input()) l=list(map(int,input().split())) l.sort() sum=0 for x in range(0,n*2,2): sum+=min(l[x:x+2]) print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,421
s190531483
p04047
u663710122
1507674675
Python
Python (3.4.3)
py
Accepted
17
2940
121
N = int(input()) L = sorted(map(int, input().split())) ret = 0 for i in range(0, 2 * N, 2): ret += L[i] print(ret)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,422
s902861369
p04047
u089230684
1506403445
Python
Python (2.7.6)
py
Accepted
11
2568
139
N = int(raw_input()) L = map(int, raw_input().split()) ans = 0 L = sorted(L) for i in xrange(N): ans += min(L[i*2], L[i*2+1]) print ans
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,423
s765946274
p04047
u104558333
1505612828
Python
Python (2.7.6)
py
Accepted
10
2568
239
#!/usr/bin/env python import sys import os n = int(sys.stdin.readline()) s = 0 lenlist = map(int, sys.stdin.readline().strip().split(" ")) lenlist.sort() for i in range(0,n): m = min(lenlist[2*i],lenlist[2*i+1]) s += m 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,424
s769207768
p04047
u596276291
1505421106
Python
Python (3.4.3)
py
Accepted
20
3316
482
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 INF = 10 ** 10 def main(): N = int(input()) L_list = list(sorted(list(map(int, inp...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,425
s531468434
p04047
u988832865
1504664694
Python
Python (3.4.3)
py
Accepted
17
2940
136
N = int(input()) L = sorted(map(int, input().split())) 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,426
s717117042
p04047
u998273299
1503674253
Python
Python (2.7.6)
py
Accepted
11
2692
187
#! /bin/python # coding:utf-8 N = input() L = map(int, raw_input().split()) L.sort() L.reverse() res = 0 for num in range(0, len(L)): if (num % 2 != 0): res = res + L[num] 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,427
s761626509
p04047
u207056619
1502329146
Python
Python (3.4.3)
py
Accepted
17
3060
235
#!/usr/bin/env python3 def f(xs, ys): acc = 0 for x, y in zip(xs, ys): acc += min(x, y) return acc n = int(input()) l = sorted(map(int,input().split())) ans = max(f(l[0::2], l[1::2]), f(l[1::2], l[2::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,428
s485849668
p04047
u830580569
1502317492
Python
Python (2.7.6)
py
Accepted
11
2568
179
def bbq_easy(): n = int(raw_input()) l = map(int, raw_input().split(" ")) sorted_l = sorted(l, reverse=True) print sum(sorted_l[1::2]) if __name__ == "__main__": bbq_easy()
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,429
s572712423
p04047
u348374580
1502075153
Python
Python (2.7.6)
py
Accepted
10
2568
173
#!/usr/bin/env python # -*- coding: utf-8 -*- N = int(raw_input()) L_list = map(int, raw_input().split(" ")) sorted_L = sorted(L_list) ret = sum(sorted_L[0::2]) 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,430
s254316093
p04047
u839537730
1501700301
Python
Python (3.4.3)
py
Accepted
17
2940
88
N = int(input()) L = list(map(int, input().split())) L = sorted(L) print(sum(L[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,431
s954939269
p04047
u673552944
1501693817
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,217,432
s284047146
p04047
u835482198
1500886031
Python
Python (3.4.3)
py
Accepted
20
2940
181
N = int(input()) L = list(sorted(map(int, input().split()))) # N = 5 # L = sorted([100, 1, 2, 3, 14, 15, 58, 58, 58, 29]) 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,433
s703196314
p04047
u884847580
1500462921
Python
Python (2.7.6)
py
Accepted
10
2568
113
N = input() L = map(int, raw_input().split()) L.sort() res = 0 for i in range(0, 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,434
s856262847
p04047
u089230684
1499911858
Python
Python (2.7.6)
py
Accepted
11
2692
81
n = int(raw_input()) a = sorted(map(int, raw_input().split())) print sum(a[::2])
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,435
s574032912
p04047
u375536288
1499651538
Python
Python (2.7.6)
py
Accepted
10
2568
131
N = int(raw_input()) A = map(int, raw_input().split()) sum = 0 A.sort() B = A[::2] x = 0 for i in B: x = x + i pass 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,436
s680183210
p04047
u431894900
1499026111
Python
Python (3.4.3)
py
Accepted
17
2940
126
n = 2 * int(input()) a = sorted(map(int, input().split())) ans = 0 for i in range(n - 2, -1, -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,437
s737572375
p04047
u489135217
1498248566
Python
Python (2.7.6)
py
Accepted
11
2568
83
n = input() a = map(int, raw_input().strip().split()) print(sum(sorted(a)[0:-1:2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,438
s558947305
p04047
u220248120
1498126378
Python
Python (2.7.6)
py
Accepted
10
2568
122
n = int(raw_input()) a = map(int, raw_input().split()) a.sort() ans = 0 for i in xrange(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,439
s869871714
p04047
u846552659
1497325039
Python
Python (3.4.3)
py
Accepted
17
2940
182
# -*- coding:utf-8 -*- N = int(input()) L = sorted(list(map(int, input().split())), reverse = True) ans = 0 for tmp in range(0, len(L), 2): ans += min(L[tmp],L[tmp+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,440
s300914538
p04047
u992181519
1492989686
Python
Python (3.4.3)
py
Accepted
17
2940
157
# coding: utf-8 N = int(input()) sticks = list(map(int, input().split())) sticks.sort() sum = 0 for num in range(N): sum += sticks[2 * num] 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,441
s400006382
p04047
u052746401
1492276584
Python
Python (3.4.3)
py
Accepted
17
2940
128
n = int(input()) l = list(map(int, input().split())) l.sort() ans = sum([min([l[2*i], l[2*i+1]]) for i in range(n)]) 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,442
s472747122
p04047
u989724965
1492226024
Python
Python (2.7.6)
py
Accepted
10
2568
126
N = input() L = map(int, raw_input().split(" ")) ans = 0 L.sort() for i in xrange(len(L)/2): 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,443
s713548023
p04047
u058240079
1491492928
Python
Python (2.7.6)
py
Accepted
10
2568
128
n = int(raw_input()) ls = map(int, raw_input().split()) ls.sort() al = [j for i,j in enumerate(ls) if i % 2 == 0] print sum(al)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,444
s848303633
p04047
u026450699
1491491544
Python
Python (2.7.6)
py
Accepted
11
2568
170
N = int(raw_input().strip()) L = list(map(int, raw_input().strip().split())) L.sort(reverse=True) total = 0 for i in range(1, len(L), 2): total += L[i] print total
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,445
s896456689
p04047
u107077660
1491429107
Python
Python (3.4.3)
py
Accepted
17
2940
115
N = int(input()) L = [int(i) for i in input().split()] L.sort() print(sum([L[i] for i in range(2*N) if not i % 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,446
s557920340
p04047
u515802486
1489957501
Python
Python (3.4.3)
py
Accepted
17
3064
441
import sys INF = 10**9+7 stdin = sys.stdin def na(): return map(int, stdin.readline().split()) def ns(): return stdin.readline().strip() def nsl(): return list(stdin.readline().strip()) def ni(): return int(stdin.readline()) def nil(): return list(map(int, stdin.readline().split())) n = ni() l = nil() l.sort() 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,447
s040194067
p04047
u467445481
1487394827
Python
Python (2.7.6)
py
Accepted
25
2696
1,121
n = int(raw_input()) # for 2n number of skewers skewers = [int(i) for i in raw_input().split(' ')] index_done = [] numbers = [] foodusage = 0 # do all items which have the same numbers first for i in range(len(skewers) - 1): for j in range(i + 1, len(skewers)): if( skewers[i] == skewers[j] and index_done...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,448
s928203925
p04047
u880644800
1487214175
Python
Python (3.4.3)
py
Accepted
18
3060
251
if __name__ == "__main__": import sys N = int(sys.stdin.readline().strip()) L = list(map(int, sys.stdin.readline().split())) L.sort(reverse=True) pairs = [(L[i], L[i+1]) for i in range(0, len(L), 2)] print(sum(map(min, pairs)))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,449
s010153947
p04047
u344290815
1486185993
Python
Python (3.4.3)
py
Accepted
29
3700
199
from functools import reduce N = int(input()) L = list(map(int,input().split(' '))) L.sort() y = reduce(lambda x, y: x + y, [x if i % 2 == 0 else 0 for i, x in enumerate(L)]) print("{}\n".format(y))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,450
s840839983
p04047
u043805613
1486095308
Python
Python (2.7.6)
py
Accepted
17
2696
114
N=int(input()) L=[] L=map(int,raw_input().split()) L.sort() sum=0 for i in range(0,N): sum+=L[i*2] print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,451
s178329783
p04047
u043805613
1486095265
Python
Python (2.7.6)
py
Accepted
18
2568
175
N=int(input()) L=[] L=map(int,raw_input().split()) L.sort() sum=0 for i in range(0,N): if(L[i*2]<L[(i*2)+1]): sum+=L[i*2] else: sum+=L[i*2] print(sum)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,452
s839491466
p04047
u258647915
1484776954
Python
Python (3.4.3)
py
Accepted
23
3064
66
d=input() print(sum(sorted(list(map(int, input().split())))[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,453
s672315781
p04047
u258647915
1484776705
Python
Python (3.4.3)
py
Accepted
23
3064
376
class Scanner: def readint(self): return int(input()) def readstring(self): return input().rstrip() def readline(self): return list(map(int, input().split())) def reads(self): return list(input().split()) def newmat(self, n, x): return [[x for i in range(n)] for j in range(n)] sc = Scanner() n = sc...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,454
s402669517
p04047
u834311314
1484715635
Python
Python (3.4.3)
py
Accepted
23
3064
73
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,217,455
s708183668
p04047
u834311314
1484715280
Python
Python (3.4.3)
py
Accepted
23
3064
112
N = int(input()) L = sorted(map(int, input().split())) ans = 0 for i in range(N): ans += L[i * 2] print(ans)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,456
s461915923
p04047
u854685751
1483169975
Python
Python (3.4.3)
py
Accepted
23
3064
80
n = int(input()) a = list(map(int,input().split())) a.sort() print(sum(a[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,457
s330660586
p04047
u095015466
1481041415
Python
Python (2.7.6)
py
Accepted
17
2568
130
N=int(raw_input()) L=sorted(map(int,raw_input().split()),reverse=True) a=0 for i in xrange(N): a+=min(L[i*2],L[i*2+1]) 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,458
s860596631
p04047
u227486042
1479680018
Python
PyPy2 (5.6.0)
py
Accepted
38
8944
74
N = input() L = map(int, raw_input().split()) L.sort() print sum(L[0::2])
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,459
s832507792
p04047
u491018097
1479001362
Python
Python (3.4.3)
py
Accepted
23
3064
74
input() a = [int(i) for i in input().split()] a.sort() print(sum(a[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,460
s106662397
p04047
u132291455
1478111603
Python
PyPy2 (5.6.0)
py
Accepted
40
8816
96
n=int(raw_input()) a=map(int,raw_input().split()) a.sort() print sum([a[2*i] for i in range(n)])
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,461
s911330308
p04047
u464852639
1473802393
Python
Python (3.4.3)
py
Accepted
41
3188
128
N = int(input()) L = [int(x) for x in input().split()] list.sort(L) sum = 0 for i in range(0,len(L),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,462
s158363678
p04047
u360101420
1473643932
Python
Python (2.7.6)
py
Accepted
27
2568
147
n = int(raw_input()) l = map(int, raw_input().split()) ans = 0 l = sorted(l) for i in xrange(0,len(l)-1,2): ans += min(l[i], l[i+1]) print ans
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,463
s223800705
p04047
u354504094
1473631257
Python
Python (2.7.6)
py
Accepted
28
2568
111
n = int(raw_input()) l = map(int, raw_input().split()) l.sort() sum = 0 for i in l[::2]: sum += 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,464
s761054833
p04047
u284188208
1473448622
Python
Python (2.7.6)
py
Accepted
28
2568
121
a = input() b = map(int,raw_input().split()) b.sort() c = 0 for i in range(len(b)-1): if i % 2 == 0: c += b[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,465
s840491940
p04047
u436484848
1473305360
Python
Python (3.4.3)
py
Accepted
40
3064
172
num = int(input()) str = input() Li = list(map(int,str.split(' '))) Li.sort() sum = 0 if len(Li)%2 == 1: Li = Li[1:] for i in range(0,len(Li),2): sum += Li[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,466
s096009538
p04047
u544337787
1473117334
Python
Python (2.7.6)
py
Accepted
27
2568
72
raw_input() l = map(int, raw_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,467
s659534645
p04047
u562446079
1473100525
Python
Python (3.4.3)
py
Accepted
38
3064
103
n = int(input()) L = list(map(int,input().split())) mn = 0 L.sort() #print(L[0::2]) print(sum(L[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,468
s351232295
p04047
u753871011
1472996907
Python
Python (3.4.3)
py
Accepted
41
3188
208
a = int(input()) b = input() b = b.split() b = [int(x) for x in b] b = sorted(b) b = b[::-1] def get(a,x): if a == 0: return 0 x.pop(0) add = x.pop(0) return add + get((a-1),x) print(str(get(a,b)))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,469
s093563180
p04047
u670859236
1472862645
Python
Python (2.7.6)
py
Accepted
27
2572
90
n = raw_input() l = raw_input().split() print(sum(sorted(map(int,l), reverse=True)[1::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,470
s488508931
p04047
u914627967
1472731758
Python
Python (3.4.3)
py
Accepted
39
3188
207
N = int(input()) K = input() K = "".join(K).split(" ") K = [int(s) for s in K] K.sort() ans=0 for s in range(N): if int(K[-1])> int(K[-2]): ans+=int(K[-2]) else: ans+=int(K[-1]) del K[-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,471
s350270286
p04047
u552668967
1472439627
Python
Python (2.7.6)
py
Accepted
25
2568
160
from sys import stdin n = int(stdin.readline()) a = map(int,stdin.readline().split()) ans = 0 i = 0 a.sort() while i<n*2: ans += a[i] i+=2 print ans
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,472
s917434957
p04047
u886545507
1472243748
Python
Python (2.7.6)
py
Accepted
27
2568
146
#AGC001A n=int(raw_input()) l=map(int,raw_input().split()) l.sort() l.reverse() res=0 for i in xrange(0,2*n,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,473
s361991427
p04047
u813356465
1471657901
Python
Python (3.4.3)
py
Accepted
38
3064
101
n = int(input()) l = [int(s) for s in input().split()] l.sort() print(sum(l[2*i] for i in range(n)))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,474
s028863495
p04047
u257374434
1469923197
Python
Python (3.4.3)
py
Accepted
39
3064
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,217,475
s698406028
p04047
u713368238
1469634288
Python
Python (3.4.3)
py
Accepted
39
3064
120
n = int(input()) a = list(map(int, input().split())) a.sort() s = 0 for i in range(0, len(a), 2): s += a[i] print(s)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,476
s294592397
p04047
u226155577
1469391072
Python
Python (2.7.6)
py
Accepted
27
2568
60
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,477
s855195465
p04047
u579875569
1469265642
Python
Python (3.4.3)
py
Accepted
40
3064
103
#!/usr/bin/python3 N = int(input()) L = list(map(int, input().split())) L.sort() print(sum(L[0::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,478
s375388278
p04047
u492932526
1469151090
Python
Python (2.7.6)
py
Accepted
28
2568
192
n = int(raw_input()) lis = map(int,raw_input().split(" ")) lis.sort() count = 0 for var in range(0,len(lis)): if var % 2 == 1: continue count = count + lis[var] 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,479
s063108436
p04047
u580544862
1468962668
Python
Python (3.4.3)
py
Accepted
41
3064
142
N = int(input()) L = [int(term) for term in input().split()] L.sort() x = 0 for i in range(N) : x += min(L[2 * i], L[2 * i + 1]) print(x)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,480
s203154154
p04047
u824587292
1468942466
Python
Python (2.7.6)
py
Accepted
94
5888
111
n=input() k=map(int,raw_input().split()) ans=0 for i,e in enumerate(sorted(k)): if i%2==0: ans+=e 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,481
s468349393
p04047
u949802781
1468788568
Python
Python (2.7.6)
py
Accepted
28
2692
61
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,482
s541881000
p04047
u112002050
1468776880
Python
Python (3.4.3)
py
Accepted
39
3064
340
# -*- coding: utf-8 -*- def max_ingredients(L): work_L = L ing = 0 while work_L: ing += work_L[-1] work_L = work_L[:-2] return ing def main(): N = int(input()) L = [int(l) for l in input().split(" ")] print( max_ingredients( sorted( L, reverse=True ) ) ) if __name__ == '__...
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,483
s342868220
p04047
u819161081
1468774343
Python
Python (2.7.6)
py
Accepted
29
2820
132
N = input() L = map(int,raw_input().split(' ')) count = 0 for i in xrange(N): L.sort() count += min(L.pop(0),L.pop(0)) 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,484
s225322006
p04047
u557523358
1468765746
Python
Python (3.4.3)
py
Accepted
38
3064
76
n = int(input()) *l, = 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,485
s641809306
p04047
u125680071
1468760935
Python
Python (3.4.3)
py
Accepted
40
3064
84
N = int(input()) Ls = list(map(int, input().split())) Ls.sort() print(sum(Ls[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,486
s006070399
p04047
u637175065
1468760774
Python
Python (3.4.3)
py
Accepted
91
5792
203
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time sys.setrecursionlimit(10**7) n = int(input()) a = list(map(int, input().split())) a.sort() print(sum(a[::2]))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,487
s956292853
p04047
u352021237
1468748927
Python
PyPy2 (5.6.0)
py
Accepted
73
9456
129
n=int(raw_input()) N=map(int,raw_input().split()) N.sort() count=0 for i in range(n): count+=N[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,488
s699467349
p04047
u187945597
1468734778
Python
Python (2.7.6)
py
Accepted
31
2568
124
n = int(raw_input()) a = map(int,raw_input().split()) a.sort() s_l = 0 for i in xrange(0,2*n,2) : s_l += a[i] print s_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,489
s855197182
p04047
u195451595
1468730471
Python
PyPy2 (5.6.0)
py
Accepted
62
8816
122
n = int(raw_input()) har = sorted(map(int,raw_input().split())) ans = 0 for i in xrange(0,2*n,2): ans += har[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,490
s584376600
p04047
u382423941
1468727600
Python
Python (3.4.3)
py
Accepted
42
3064
110
n = int(input()) l = sorted(map(int, input().split())) ans = sum([l[i] for i in range(0, n*2, 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,491
s965139314
p04047
u250209149
1468726782
Python
Python (2.7.6)
py
Accepted
32
2692
113
N = int(raw_input()) L_arr = [int(x) for x in raw_input().split(' ')] L_arr = sorted(L_arr) print sum(L_arr[::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,492
s277609186
p04047
u060392346
1468726217
Python
Python (2.7.6)
py
Accepted
31
2568
78
n = input() l = map(int, raw_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,217,493
s380688610
p04047
u023220201
1468720905
Python
Python (2.7.6)
py
Accepted
27
2568
101
# encoding: utf-8 n = int(raw_input()) l = map(int, raw_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,494
s515248608
p04047
u146714526
1468720810
Python
Python (2.7.6)
py
Accepted
26
2568
151
k = raw_input() n = raw_input() a = [int(i) for i in n.split()] a.sort() sum1 = 0 for i in range(int(k)): sum1 += min(a[2*i], a[2*i+1]) print sum1
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,495
s357002686
p04047
u941268675
1468720252
Python
Python (2.7.6)
py
Accepted
27
2568
112
N = input() L = sorted(map(int, raw_input().split()))[::-1] print sum(l for i, l in enumerate(L) if i % 2 != 0)
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,496
s606245144
p04047
u498467969
1468719517
Python
Python (3.4.3)
py
Accepted
37
3064
158
N = int(input()) L = list(map(int, input().split())) BBQ = [] L.sort() for x in range(0, 2 * N - 1, 2): BBQ.append(min(L[x], L[x + 1])) print(sum(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,217,497
s266961717
p04047
u626815045
1468718762
Python
Python (2.7.6)
py
Accepted
30
2568
140
N = int(raw_input()) L = raw_input() L = map(int, L.split(" ")) r = 0 L.sort() L.reverse() for i in xrange(N): r += L[i * 2 + 1] 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,217,498
s815029133
p04047
u248145581
1468718528
Python
Python (3.4.3)
py
Accepted
39
3064
237
#!/usr/bin/env python3 # -*- coding: utf-8 -*- N = int(input()) Ls = list(map(int, input().split())) sorted_ = sorted(Ls) list_ = [] for i, x in enumerate(sorted_): if i % 2 == 0: list_.append(x) sum_ = sum(list_) 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,499
s498806131
p04047
u667190633
1468718316
Python
Python (2.7.6)
py
Accepted
27
2568
131
N=raw_input() up=raw_input() up=up.split() up=map(int,up) up.sort() count=0 for i in range(int(N)): count+=up[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,500
s055825985
p04047
u724409710
1468718296
Python
Python (2.7.6)
py
Accepted
27
2568
160
N = int(raw_input()) length_list = sorted(map(int, raw_input().strip().split())) total = 0 for i in xrange(0, 2*N, 2): total += length_list[i] print total
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,501
s201927332
p04047
u216011776
1468718285
Python
Python (3.4.3)
py
Accepted
39
3188
280
#!/usr/bin/env python # -*- coding: utf-8 -*- def main(): n = int(input()) l = [int(i) for i in input().split()] sorted_l = sorted(l) counter = 0 for i in range(n): counter += sorted_l[i * 2] print(counter) 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,502
s864297302
p04047
u300538442
1468718186
Python
Python (3.4.3)
py
Accepted
39
3064
132
N = int(input()) L = list(map(int, input().split())) L = sorted(L) num=0 for i in range(0,len(L),2): num = num + L[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,503
s856734058
p04047
u566924053
1468718059
Python
Python (2.7.6)
py
Accepted
25
2568
129
n = int(raw_input()) ls = map(int, raw_input().split()) ls.sort() cnt = 0 for i in range(0, 2 * n, 2): cnt += ls[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,504
s239150113
p04047
u601018334
1468717782
Python
Python (3.4.3)
py
Accepted
50
3688
150
N = int(input()) L = list(map(int, input().split())) sort_L = sorted(L) ans = 0 for i in range(N): ans = ans + sort_L[2*i] print('%s' % str(ans))
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,505
s313903719
p04047
u066337396
1468717775
Python
Python (2.7.6)
py
Accepted
26
2568
119
N = input() l = map(int, raw_input().split()) l.sort() s = 0 for i in xrange(N): s += min(l[i*2], l[i*2+1]) print s
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,506
s880235159
p04047
u534783449
1468717771
Python
Python (2.7.6)
py
Accepted
30
2568
197
num = int(raw_input()) rods = [ int(x) for x in raw_input().split() ] rods = sorted(rods) ret = 0 for index in xrange(num): n = min(rods[2 * index], rods[2 * index+1]) ret += n 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,507
s999656734
p04047
u478015420
1468717676
Python
Python (2.7.6)
py
Accepted
27
2568
107
n = raw_input() a = map(int, raw_input().split()) a.sort() ans = 0 for x in a[::2]: ans += x 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,508
s981061198
p04047
u315078622
1468717556
Python
Python (3.4.3)
py
Accepted
90
3444
76
_ = int(input()) print(sum(sorted([int(x) for x in 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,509
s290751974
p04047
u725662235
1468717538
Python
Python (2.7.6)
py
Accepted
27
2572
103
n = input() l = sorted(map(int, raw_input().split())) s = 0 for i in xrange(n): s += l[2*i] print s
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,510
s601625509
p04047
u202619899
1468717515
Python
Python (3.4.3)
py
Accepted
40
3064
155
import sys N = int(sys.stdin.readline()) L = list(map(int, sys.stdin.readline().split())) L.sort() res = 0 for i in range(N): 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,511
s098712599
p04047
u145496715
1468717496
Python
PyPy2 (5.6.0)
py
Accepted
59
8816
143
n = int(raw_input()) values = sorted(map(int, raw_input().split())) result = 0 for i in range(0, 2 * n, 2): result += values[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,512
s140405747
p04047
u535555850
1468717489
Python
Python (2.7.6)
py
Accepted
27
2568
129
N = input() kushi = map(int,raw_input().split()) kushi.sort() answer = 0 for i in xrange(N): answer += kushi[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,217,513
s224907606
p04047
u810735437
1468717486
Python
Python (3.4.3)
py
Accepted
38
3316
168
#!/usr/bin/env python3 # -*- coding: utf-8 -*- N = int(input()) Ls = list(map(int,input().split())) Ls.sort() ans = 0 for i in range(N): ans += Ls[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,514
s222472970
p04047
u821262411
1468717479
Python
Python (3.4.3)
py
Accepted
38
3064
130
n=int(input()) a=list(map(int,input().split())) b=sorted(a) ans=0 for i in range(0,n*2,2): ans += min(b[i],b[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,515
s886640813
p04047
u776189585
1468717431
Python
Python (2.7.6)
py
Accepted
27
2568
116
#coding :utf-8 N = int(raw_input()) L = sorted(map(int, raw_input().split())) print sum([L[i*2] for i in xrange(N)])
p04047
<span class="lang-en"> <p>Score : <var>200</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>Snuke is having a barbeque party.</p> <p>At the party, he will make <var>N</var> servings of <em>Skewer Meal</em>.</p> <div style="text-align: center;"> <img src="https://agc001.contest.atcoder.jp/img/a...
2 1 3 1 2
3
1,217,516