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
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s422647474
p04029
u435084726
1571810800
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38384
59
asum = 1 for x in range(2,100) asum += x print(asum)
s049569271
p04029
u435084726
1571810648
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38256
43
import numpy as np np.arange(1, 100, N)
s809793948
p04029
u435084726
1571810294
Python
PyPy3 (2.4.0)
py
Runtime Error
182
39280
42
import numpy as np np.arange(1, 100, 1)
s782496819
p04029
u556589653
1571773322
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
N = int(input()) print(0.5*n*(n+1))
s772802982
p04029
u799978560
1571369033
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
x = 0 for i in (input()+1): x += i print(x)
s556121619
p04029
u799978560
1571368931
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
for i in (input()+1): x += i print(x)
s778950578
p04029
u045953894
1571161210
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
result = 0; for i in range(1,N+1): result += i print(result)
s926988036
p04029
u045953894
1571161174
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
result = 0; for i in range(1,N+1): result += i print(result)
s181020381
p04029
u045953894
1571160421
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
for i in range(N): print(i)
s393858601
p04029
u045953894
1571160240
Python
Python (3.4.3)
py
Runtime Error
17
2940
24
S=sum(N/2(N+1)) print(S)
s084090645
p04029
u045953894
1571160074
Python
Python (3.4.3)
py
Runtime Error
17
2940
24
S=sum(N/2(N-1)) print(S)
s203351331
p04029
u545368057
1570554703
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
N = int(input()) return(N*(N+1)//2)
s463554533
p04029
u674064321
1570304099
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
count = 0 for i range(int(input()) + 1): if i == 0: continue count += i print(count)
s929051240
p04029
u194496802
1570212894
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
n = input() result = 0 for i in range(n): result += i print(result)
s657755416
p04029
u194496802
1570212738
Python
Python (3.4.3)
py
Runtime Error
17
3064
63
n = input() result = 0 for i in n: result += i print result
s682012935
p04029
u873059840
1570126707
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
N = int(input()) for i in range(1,N): tmp += i print(tmp)
s288634751
p04029
u747602774
1569644818
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
a=int(input()) S=(N+1)*N/2 print(S)
s549377117
p04029
u470359972
1569422976
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
num=input() candy=0 ans=0 for i in range(num): candy+=1 ans+=candy print(ans)
s435962247
p04029
u707690642
1569086148
Python
Python (3.4.3)
py
Runtime Error
17
3060
176
input_ = [input() for i in range(4)] N, K, X, Y = input_ acc = 0 if N > K: acc = int(K) * int(X) + (int(N) - int(K)) * int(Y) else: acc = int(N) * int(X) print(acc)
s319533284
p04029
u131264627
1568777746
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
n = int(input()) ans = 0 for i in range(1, n+1) ans += i print(ans)
s349030398
p04029
u131264627
1568777718
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
n = int(input()) ans = 0 for i in range(1, n) ans += 1 print(ans)
s864583974
p04029
u131264627
1568777643
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
n = int(input()) ans = 0 for i in range(1, n+1) ans += 1 print(ans)
s078377597
p04029
u735233212
1568677012
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
#ABC043A N = int(input()) if(q==1): print("1") else: q, mod = divmod(N, 2) if (mod > 0): q += 1 print((N+1)*q)
s436117410
p04029
u575560095
1568480033
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
=int(input()) sum=0 for i in range(n): sum+=(i+1) print(sum)
s996019790
p04029
u536177854
1568425812
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
n=int(input()) sum=0 for i in range(1:n+1): sum+=i print(sum)
s241532935
p04029
u970082363
1568232922
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
N = int(input()) print(N*(N+1)//2
s917780926
p04029
u993161647
1568054996
Python
Python (3.4.3)
py
Runtime Error
18
2940
252
N = input() a = list(map(int,input().split())) cost_sum = 0 print_cost = 20000 for a_i in range(min(a), max(a)+1): for a_j in a: cost_sum += ((a_j - a_i) ** 2) if print_cost > cost_sum: print_cost = cost_sum print(print_cost)
s007632751
p04029
u380914158
1567753589
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38256
36
N = int(input()) print((N*(N+1)//2)
s472214471
p04029
u361841553
1567687255
Python
Python (3.4.3)
py
Runtime Error
18
2940
94
def main(): n = input() print((n * (n + 1)) / 2) if __name__ == '__main__': main()
s049529008
p04029
u756569003
1567551961
Python
Python (3.4.3)
py
Runtime Error
17
2940
189
N = int(input()) a = list(map(int,input().split())) ans = [] for i in range(-100, 101): total = 0 for ai in a: total += (ai - i)**2 ans.append(total) print(min(ans))
s372068060
p04029
u920438243
1567023952
Python
Python (3.4.3)
py
Runtime Error
18
2940
211
lines = list(input()) answers = [] out = "" for line in lines: if line == "0" or line == "1": answers.append(line) else: answers.pop() for answer in answers: out += answer print(out)
s194584767
p04029
u328364772
1566859206
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
#include <iostream> using namespace std; int main() { int n; cin >> n; cout << n * (n + 1) / 2 << endl; }
s486799933
p04029
u901447859
1566819135
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
print((int(input())+1)*n//2)
s749777703
p04029
u488934106
1566355386
Python
Python (3.4.3)
py
Runtime Error
17
2940
249
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int ans = 0; for(int i = 0;i <= N; i++) { ans += i; } System.out.println(ans); } }
s810108623
p04029
u248670337
1566018369
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
print(sum(range(int(input())+1))
s079039912
p04029
u248670337
1566018351
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
print(sum(range(1,int(input())+1))
s975560658
p04029
u842689614
1565926902
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
N=int(input()) out=0 for i in range(N): out+=i+1 return out
s157548262
p04029
u966508131
1565751071
Python
PyPy3 (2.4.0)
py
Runtime Error
163
38256
1159
#include <algorithm> #include <iostream> //入出力 #include <stdio.h> #include <map> #include <set> #include <string> #include <math.h> //算術演算子 #include <vector> #include <cstdlib> #include <queue> #include <stack> #include <list> #include <iomanip> //小数点以下を表示させる(setprecision()) // #include <bits/stdc++.h> using namespace std; typedef long long ll; //64bit型 #define rep(i, n) for (int i = 0; i < (n); i++) #define all(a) (a).begin(), (a).end() #define debug(x) cerr << x << " " \ << "(L:" << __LINE__ << ")" << '\n' #define PRINT(V) \ { \ for (int i = 0; i < V.size(); i++) \ { \ cout << V[i] << " "; \ } \ cout << endl; \ } int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } int main() //input->compute->output { int N, K; cin >> N; cout << N * (N +1) / 2 << endl; return 0; }
s463670176
p04029
u966508131
1565751041
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38256
1162
#include <algorithm> #include <iostream> //入出力 #include <stdio.h> #include <map> #include <set> #include <string> #include <math.h> //算術演算子 #include <vector> #include <cstdlib> #include <queue> #include <stack> #include <list> #include <iomanip> //小数点以下を表示させる(setprecision()) // #include <bits/stdc++.h> using namespace std; typedef long long ll; //64bit型 #define rep(i, n) for (int i = 0; i < (n); i++) #define all(a) (a).begin(), (a).end() #define debug(x) cerr << x << " " \ << "(L:" << __LINE__ << ")" << '\n' #define PRINT(V) \ { \ for (int i = 0; i < V.size(); i++) \ { \ cout << V[i] << " "; \ } \ cout << endl; \ } int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } int main() //input->compute->output { int N, K; cin >> N; cout << N*(N-1)/2 << endl; return 0; }
s396188274
p04029
u740047492
1565383695
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
N = int(input) for total in N: print(N * (N + 1)/2)
s785682568
p04029
u740047492
1565383486
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = int(input()) for total in N: (N += 1) print(N + (N + 1))
s034190992
p04029
u276785896
1565243220
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
N = int(input()) sum = 0 for i in range(0,N+1): sum + i = sum print(sum)
s599754557
p04029
u276785896
1565243031
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
N = int(input()) sum = 0 for i in range(0,N): sum + i = sum print(sum)
s407508182
p04029
u276785896
1565242531
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = int(input()) sum = 0 for i in N: sum + i = sum print(sum)
s338029621
p04029
u514894322
1564325559
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
n = int().input() print (str(int(n*(n+1)/2)))
s242482530
p04029
u144969476
1564242948
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
x=input() candies=0 for y in x: candies+=(y+1) print(candies)
s717744403
p04029
u144969476
1564242046
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
x=input() candies=0 for y in x: candies+=(y+1) print(candies)
s724397670
p04029
u408620326
1564014459
Python
Python (3.4.3)
py
Runtime Error
20
3060
56
print(sum([x for x in range(1,int(input().split())+1)]))
s333952003
p04029
u921773161
1563976335
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
n = int(input()) s = 0 for i in range(N+1): s += i print(s)
s424953207
p04029
u921773161
1563976317
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
n = int(input() s = 0 for i in range(N+1): s += i print(s)
s731582579
p04029
u277448038
1563660372
Python
Python (3.4.3)
py
Runtime Error
18
2940
54
n= int(input()) print(int((n*(n+1))/2)) print(1+n)*n/2
s118380161
p04029
u602677143
1563484515
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
n = int(input()) ans = 0 for i in range(a,n): ans += i print(ans)
s593969011
p04029
u797016134
1563426514
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
n = int(input()) print(n(n+1)/2)
s489260498
p04029
u282657760
1563412429
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
N = int(imput()) print(N*(N+1)/2)
s514094190
p04029
u856947606
1563402838
Python
Python (3.4.3)
py
Runtime Error
18
2940
60
N = int(input()) for i in range(1,N): sum += i print(sum)
s506223951
p04029
u103341055
1563249672
Python
Python (3.4.3)
py
Runtime Error
75
3892
71
N = int(input()) def Couter(n): return n + Couter(n-1) Couter(N)
s339924613
p04029
u675073679
1562795268
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
N = int(input()) n = 0 for i in range(1,N+1,1) n += i print(n)
s006335855
p04029
u675073679
1562795056
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
N = int(input()) while n <= N: n += 1 print(str(n))
s150520610
p04029
u093500767
1562124332
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
n = input().int() x = 1 + n y = n / 2 z = x * y print(z)
s882577734
p04029
u560988566
1560389128
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
n = int(input()) for i in range(n): ans += (i+1) print(ans)
s837737353
p04029
u172111219
1560111510
Python
PyPy3 (2.4.0)
py
Runtime Error
177
38256
62
n = int(input()) c = 0 for i in range(n+1) c +=i print(c)
s500396411
p04029
u442068463
1559616052
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
a=int(input()) s=o for i in range(1,a+1,1): s+=i print(s)
s486390701
p04029
u442068463
1559615993
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
a=int(input()) s=o for i in range(1,a+1,1): s+=i print(s)
s622612620
p04029
u117579775
1559157845
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
a = input() print(a * (a + 1)/2)
s221619364
p04029
u449473917
1559138366
Python
Python (3.4.3)
py
Runtime Error
17
3060
174
a=int(input()) b=list(map(int,input().split())) cost=999999 for i in range(-100,1,101): c=0 for j in b: c=c+(i-j)**2 if c<cost: cost=c print(cost)
s086737925
p04029
u449473917
1559138291
Python
Python (3.4.3)
py
Runtime Error
17
3060
172
a=int(input()) b=list(map(int,input().split())) cost=999999 for i in range(-100,101): c=0 for j in b: c=c+(i-j)**2 if c<cost: cost=c print(cost)
s347649637
p04029
u495863042
1558971501
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
N=int(input()) print(n*(n+1)/2)
s596938479
p04029
u663014688
1558486131
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
a = int(input()) sum = 0 for i in range(i+1): sum += i print(sum)
s161911840
p04029
u663014688
1558485871
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
a = input() sum = 0 for a in range(a): sum += a print(sum)
s618156329
p04029
u495863042
1558045043
Python
Python (3.4.3)
py
Runtime Error
17
2940
18
print(0.5*N*(N+1))
s735983999
p04029
u495863042
1558044934
Python
Python (3.4.3)
py
Runtime Error
18
2940
17
print(0.5(N+1)^2)
s531582467
p04029
u961916328
1557869110
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
r = int(input()) sum = 0 for i in range(n): sum += i+1 print(sum)
s138610384
p04029
u701318346
1557830778
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
N = int(input()) print(int((1 + N) * N / 2)
s108677969
p04029
u977193988
1557114605
Python
Python (3.4.3)
py
Runtime Error
18
3060
217
s=input() S=list(s) L=len(S) A=[] for i in range(L): if S[i]=='0' or S[i]=='1': A.append(S[i]) elif S[i]=='B' and len(A)==0: A.append('') else: A.remove(A[-1]) a=''.join(A) print(a)
s792514241
p04029
u977193988
1557114583
Python
Python (3.4.3)
py
Runtime Error
17
3060
217
s=input() S=list(s) L=len(S) A=[] for i in range(L): if S[i]=='0' or S[i]=='1': A.append(S[i]) elif S[i]=='B' and len(A)==0: A.append('') else: A.remove(A[-1]) a=''.join(A) print(a)
s266354451
p04029
u367130284
1556841392
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
print(sum(range(int(input()+1))))
s288678572
p04029
u507116804
1556719110
Python
Python (3.4.3)
py
Runtime Error
18
2940
37
n=input(int()) print(int(n*(n+1)/2))
s928577803
p04029
u507116804
1556639668
Python
Python (3.4.3)
py
Runtime Error
18
2940
16
print(N*(N+1)/2)
s776039143
p04029
u363438602
1555108773
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
n=input() a=0 for i in range(1,n+1): a=a+1 print(a)
s342658621
p04029
u387456967
1555016339
Python
Python (3.4.3)
py
Runtime Error
18
2940
37
print(map(lambda x:x*(x+1)/2,input())
s366176559
p04029
u288040231
1554668808
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
N = int(input()) result = 0 for i in (N+1): result += i print(result)
s812056072
p04029
u288040231
1554668654
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
n = int(input()) for i in range(n+1): num += i print(num)
s079486517
p04029
u288040231
1554668447
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
n = int(input()) for n in range(n+1): num += n print(num)
s459830008
p04029
u297756089
1554658754
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
n=input() ans=n*(n+1)/2 print(ans)
s995882239
p04029
u225415456
1554251464
Python
Python (3.4.3)
py
Runtime Error
18
2940
44
a = int(input()) b = N*(N+1)/2 print(int(b))
s463353909
p04029
u259053514
1554087278
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
# -*- coding: utf-8 -*- N: int = int(input()) sum = 0 for x in range(1, N + 1): sum += x print(sum)
s562129258
p04029
u748311048
1554067408
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
N=input() ans=0 for i in range(N): ans+=N print(ans)
s705638994
p04029
u020604402
1553919980
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
N = int(input()) print((1+N)(N)//2)
s897296086
p04029
u020604402
1553919870
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
N = input() ans = 0 for i in range(N+1): ans += i print(ans)
s761145246
p04029
u465669072
1552931259
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
n = int(input()) a = [i for in range(1, n+1)] b = sum(a) print(a)
s757590492
p04029
u282228874
1552877353
Python
Python (3.4.3)
py
Runtime Error
17
3060
172
n = int(input()) A = list(map(int,input().split())) ans = [] for i in range(-100,101): c = 0 for a in A: c += abs((i-a)**2) ans.append(c) print(min(c))
s461862920
p04029
u878138257
1552460365
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
n = int(input()) k = 0 for i range(:n+1): k += i
s466722195
p04029
u403984573
1551300503
Python
Python (3.4.3)
py
Runtime Error
18
2940
46
Sum=0 for i in range(N): Sum+=i+1 print(Sum)
s590641023
p04029
u483645888
1549384687
Python
Python (3.4.3)
py
Runtime Error
18
3064
461
N = int(input()) ai_list = list(map(int, input().split())) import math from statistics import mean, median mean_ai = mean(ai_list) median_ai = median(ai_list) mean_lo = math.floor(mean_ai) mean_high = math.ceil(mean_ai) ans_list = [] cost1 = 0 cost2 = 0 cost3 = 0 for n in ai_list: cost1 += (n - mean_lo)**2 cost2 += (n - mean_high)**2 cost3 += (n - median_ai)**2 ans_list.append(cost1) ans_list.append(cost2) ans_list.append(cost3) print(min(ans_list))
s621174077
p04029
u505420467
1548092172
Python
Python (3.4.3)
py
Runtime Error
18
3064
32
print(sum(range(int(input())+1))
s030828436
p04029
u816631826
1547601481
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
while True: n = int(input()) sum = int(0) for i in range(1,n+1): sum += i print(sum)
s307321522
p04029
u239342230
1546255506
Python
Python (3.4.3)
py
Runtime Error
18
2940
34
print(sum(range(1,int(input())+1))
s123736533
p04029
u439392790
1545233267
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
n=int(input()) print(int (n(n+1)/2))
s516303006
p04029
u371467115
1544670480
Python
Python (3.4.3)
py
Runtime Error
18
2940
55
N=input() i=1 while i<N: s+=i i+=1 print(s)
s945143517
p04029
u371467115
1544661531
Python
Python (3.4.3)
py
Runtime Error
18
2940
31
N=input() S=N(N+1)//2 print(S)