s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
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)
File "/tmp/tmp9uzgiav0/tmp9p7778cr.py", line 3 for x in range(2,100) ^ SyntaxError: expected ':'
s049569271
p04029
u435084726
1571810648
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38256
43
import numpy as np np.arange(1, 100, N)
Traceback (most recent call last): File "/tmp/tmp_1l98xsb/tmp93ggfiki.py", line 3, in <module> np.arange(1, 100, N) ^ NameError: name 'N' is not defined
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))
Traceback (most recent call last): File "/tmp/tmp94llw7qu/tmprq_ewnet.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpav41zdr4/tmpulsrb7nb.py", line 2, in <module> for i in (input()+1): ^^^^^^^ EOFError: EOF when reading a line
s556121619
p04029
u799978560
1571368931
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
for i in (input()+1): x += i print(x)
Traceback (most recent call last): File "/tmp/tmpa1hsbuh1/tmpye3845c_.py", line 1, in <module> for i in (input()+1): ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp0w75ox17/tmppnrdqzel.py", line 2, in <module> for i in range(1,N+1): ^ NameError: name 'N' is not defined
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)
File "/tmp/tmpp_s7mk5b/tmpvm62c_f6.py", line 2 for i in range(1,N+1): IndentationError: unexpected indent
s181020381
p04029
u045953894
1571160421
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
for i in range(N): print(i)
Traceback (most recent call last): File "/tmp/tmpf6uiztc7/tmpkmvdxvwk.py", line 1, in <module> for i in range(N): ^ NameError: name 'N' is not defined
s393858601
p04029
u045953894
1571160240
Python
Python (3.4.3)
py
Runtime Error
17
2940
24
S=sum(N/2(N+1)) print(S)
/tmp/tmpr7t9mda7/tmppk9uimfq.py:1: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma? S=sum(N/2(N+1)) Traceback (most recent call last): File "/tmp/tmpr7t9mda7/tmppk9uimfq.py", line 1, in <module> S=sum(N/2(N+1)) ^ NameError: name 'N' is not defined
s084090645
p04029
u045953894
1571160074
Python
Python (3.4.3)
py
Runtime Error
17
2940
24
S=sum(N/2(N-1)) print(S)
/tmp/tmp8fevu6gj/tmpfvuggcn4.py:1: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma? S=sum(N/2(N-1)) Traceback (most recent call last): File "/tmp/tmp8fevu6gj/tmpfvuggcn4.py", line 1, in <module> S=sum(N/2(N-1)) ^ NameError: name 'N' is not defined
s203351331
p04029
u545368057
1570554703
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
N = int(input()) return(N*(N+1)//2)
File "/tmp/tmpot95d9ee/tmpv7_lr6i4.py", line 2 return(N*(N+1)//2) ^^^^^^^^^^^^^^^^^^ SyntaxError: 'return' outside function
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)
File "/tmp/tmpn2hc9lmi/tmpq4kyd7m9.py", line 2 for i range(int(input()) + 1): ^^^^^ SyntaxError: invalid syntax
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)
Traceback (most recent call last): File "/tmp/tmpolp1thfg/tmpd2pqri99.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
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
File "/tmp/tmp7oznd47a/tmp6ntu3jld.py", line 7 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
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)
Traceback (most recent call last): File "/tmp/tmps8nf0faf/tmpjg6ii2q8.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp8bvyi1o_/tmp9nx_3akn.py", line 1, in <module> a=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpw05lc78f/tmplkfn8aqm.py", line 1, in <module> num=input() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpu4x4xcuz/tmp9m6d8eyh.py", line 1, in <module> input_ = [input() for i in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpu4x4xcuz/tmp9m6d8eyh.py", line 1, in <listcomp> input_ = [input() for i in range(4)] ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmpk6unht1a/tmp0kk7g6g7.py", line 3 for i in range(1, n+1) ^ SyntaxError: expected ':'
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)
File "/tmp/tmp0cl8hkc6/tmptbgatj7n.py", line 3 for i in range(1, n) ^ SyntaxError: expected ':'
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)
File "/tmp/tmpzw_vl0ig/tmpd4crrk4d.py", line 3 for i in range(1, n+1) ^ SyntaxError: expected ':'
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)
Traceback (most recent call last): File "/tmp/tmpcnw5o_b3/tmp3pos87ri.py", line 2, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmp6hublkdy/tmp9mdjshu4.py", line 1 =int(input()) ^ SyntaxError: invalid syntax
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)
File "/tmp/tmp4nfaykug/tmpt5tentvy.py", line 3 for i in range(1:n+1): ^ SyntaxError: invalid syntax
s241532935
p04029
u970082363
1568232922
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
N = int(input()) print(N*(N+1)//2
File "/tmp/tmprocmik3k/tmp4z0crg5l.py", line 2 print(N*(N+1)//2 ^ SyntaxError: '(' was never closed
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)
Traceback (most recent call last): File "/tmp/tmp3_k65uc3/tmp70s5191v.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s007632751
p04029
u380914158
1567753589
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38256
36
N = int(input()) print((N*(N+1)//2)
File "/tmp/tmpb1km6xv8/tmpq2n5ag4d.py", line 3 print((N*(N+1)//2) ^ SyntaxError: '(' was never closed
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()
Traceback (most recent call last): File "/tmp/tmpg3105tng/tmpr41ag2xp.py", line 5, in <module> main() File "/tmp/tmpg3105tng/tmpr41ag2xp.py", line 2, in main n = input() ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmpc8ww_g5a/tmp6o1boltu.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp2408cio2/tmp6f4692q8.py", line 1, in <module> lines = list(input()) ^^^^^^^ EOFError: EOF when reading a line
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; }
File "/tmp/tmpg0e1kenp/tmpnrcefrd1.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s486799933
p04029
u901447859
1566819135
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
print((int(input())+1)*n//2)
Traceback (most recent call last): File "/tmp/tmpeo9q7fs9/tmpj56dzh9q.py", line 1, in <module> print((int(input())+1)*n//2) ^^^^^^^ EOFError: EOF when reading a line
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); } }
File "/tmp/tmp5ul54ubb/tmptutd1nw_.py", line 1 import java.util.*; ^ SyntaxError: invalid syntax
s810108623
p04029
u248670337
1566018369
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
print(sum(range(int(input())+1))
File "/tmp/tmpb65m8pah/tmp2pdrifgg.py", line 1 print(sum(range(int(input())+1)) ^ SyntaxError: '(' was never closed
s079039912
p04029
u248670337
1566018351
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
print(sum(range(1,int(input())+1))
File "/tmp/tmpw71jsprq/tmpd_k0x48l.py", line 1 print(sum(range(1,int(input())+1)) ^ SyntaxError: '(' was never closed
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
File "/tmp/tmp6xxbaum6/tmpl66i8vjc.py", line 6 return out ^^^^^^^^^^ SyntaxError: 'return' outside function
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; }
File "/tmp/tmpakdg3pw9/tmpk7vp1kf5.py", line 16 typedef long long ll; //64bit型 ^ SyntaxError: invalid decimal literal
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; }
File "/tmp/tmpn0jz6taf/tmpws2mvxht.py", line 16 typedef long long ll; //64bit型 ^ SyntaxError: invalid decimal literal
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)
Traceback (most recent call last): File "/tmp/tmpkxskvqz1/tmp6_vjq8ug.py", line 1, in <module> N = int(input) ^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
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))
File "/tmp/tmptol_efvl/tmp86xdi_ol.py", line 3 (N += 1) ^^ SyntaxError: invalid syntax
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)
File "/tmp/tmpretac6v8/tmporfhcy3y.py", line 4 sum + i = sum ^^^^^^^ SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
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)
File "/tmp/tmpzb4ynfdh/tmpgvj007u9.py", line 4 sum + i = sum ^^^^^^^ SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
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)
File "/tmp/tmpd72qnr8w/tmprkb3pqkl.py", line 4 sum + i = sum ^^^^^^^ SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
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)))
Traceback (most recent call last): File "/tmp/tmp1e0cjw0w/tmp9pjr3zxe.py", line 1, in <module> n = int().input() ^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'input'
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)
Traceback (most recent call last): File "/tmp/tmp7007_ghq/tmpo7ufkcxu.py", line 1, in <module> x=input() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp67ohcx2b/tmpwfkppqtl.py", line 1, in <module> x=input() ^^^^^^^ EOFError: EOF when reading a line
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)]))
Traceback (most recent call last): File "/tmp/tmphqbb_95r/tmpx9f90_wi.py", line 1, in <module> print(sum([x for x in range(1,int(input().split())+1)])) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp85fjj0ms/tmp9btt92wc.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmpzz5ncg54/tmp9q2ifrr5.py", line 1 n = int(input() ^ SyntaxError: '(' was never closed
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
Traceback (most recent call last): File "/tmp/tmpzr6h_76b/tmp70ay410e.py", line 1, in <module> n= int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpomzmxnxh/tmpw9k3aq2w.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s593969011
p04029
u797016134
1563426514
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
n = int(input()) print(n(n+1)/2)
Traceback (most recent call last): File "/tmp/tmp_mz5712f/tmpq918zz9f.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s489260498
p04029
u282657760
1563412429
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
N = int(imput()) print(N*(N+1)/2)
Traceback (most recent call last): File "/tmp/tmpt6f0z200/tmpva25ozdo.py", line 1, in <module> N = int(imput()) ^^^^^ NameError: name 'imput' is not defined. Did you mean: 'input'?
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)
Traceback (most recent call last): File "/tmp/tmpg_iwj8t5/tmpfquviklj.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpt9zlje2c/tmpv69wpsot.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmpg5pu9vcq/tmpbnmyw2r9.py", line 4 for i in range(1,N+1,1) ^ SyntaxError: expected ':'
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))
Traceback (most recent call last): File "/tmp/tmpcu4kycv3/tmphjiekeh6.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpyt2s0_1k/tmp4sfbouy5.py", line 1, in <module> n = input().int() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp0nd1c71h/tmp2d_qd8pw.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmpsrqjdlqv/tmpp694nt8z.py", line 4 for i in range(n+1) ^ SyntaxError: expected ':'
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)
Traceback (most recent call last): File "/tmp/tmp_g_kax6l/tmptbp53sua.py", line 1, in <module> a=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmph2ubzgj3/tmpltd5r8a3.py", line 1, in <module> a=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s622612620
p04029
u117579775
1559157845
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
a = input() print(a * (a + 1)/2)
Traceback (most recent call last): File "/tmp/tmpwxrqfc09/tmpajqcn30j.py", line 1, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp26m088hy/tmpkcwnmbln.py", line 1, in <module> a=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpd6i9_m6f/tmpn4lukjgn.py", line 1, in <module> a=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s347649637
p04029
u495863042
1558971501
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
N=int(input()) print(n*(n+1)/2)
Traceback (most recent call last): File "/tmp/tmpa2wkgbyi/tmpstezehqs.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmphrkxmyq4/tmpsuw_227j.py", line 1, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpt2v0m8vd/tmpyw489gvy.py", line 1, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s618156329
p04029
u495863042
1558045043
Python
Python (3.4.3)
py
Runtime Error
17
2940
18
print(0.5*N*(N+1))
Traceback (most recent call last): File "/tmp/tmpxjl9pbvh/tmpp35x9idg.py", line 1, in <module> print(0.5*N*(N+1)) ^ NameError: name 'N' is not defined
s735983999
p04029
u495863042
1558044934
Python
Python (3.4.3)
py
Runtime Error
18
2940
17
print(0.5(N+1)^2)
/tmp/tmp_5h9vpdt/tmpobrb7yd7.py:1: SyntaxWarning: 'float' object is not callable; perhaps you missed a comma? print(0.5(N+1)^2) Traceback (most recent call last): File "/tmp/tmp_5h9vpdt/tmpobrb7yd7.py", line 1, in <module> print(0.5(N+1)^2) ^ NameError: name 'N' is not defined
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)
Traceback (most recent call last): File "/tmp/tmp_vtodj_u/tmp3umitae2.py", line 1, in <module> r = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s138610384
p04029
u701318346
1557830778
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
N = int(input()) print(int((1 + N) * N / 2)
File "/tmp/tmpc4pc1k33/tmp5a6kxzbs.py", line 3 print(int((1 + N) * N / 2) ^ SyntaxError: '(' was never closed
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)
Traceback (most recent call last): File "/tmp/tmpd17hfuxq/tmpywfcko7g.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp11c5_1aa/tmpfx2x5ohl.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s266354451
p04029
u367130284
1556841392
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
print(sum(range(int(input()+1))))
Traceback (most recent call last): File "/tmp/tmprtmvhv9y/tmpxrbw2hkg.py", line 1, in <module> print(sum(range(int(input()+1)))) ^^^^^^^ EOFError: EOF when reading a line
s288678572
p04029
u507116804
1556719110
Python
Python (3.4.3)
py
Runtime Error
18
2940
37
n=input(int()) print(int(n*(n+1)/2))
Traceback (most recent call last): File "/tmp/tmpdboyrzbe/tmpgrpv3hpd.py", line 1, in <module> n=input(int()) ^^^^^^^^^^^^ EOFError: EOF when reading a line
0
s928577803
p04029
u507116804
1556639668
Python
Python (3.4.3)
py
Runtime Error
18
2940
16
print(N*(N+1)/2)
Traceback (most recent call last): File "/tmp/tmptcxqhokk/tmp23xw907a.py", line 1, in <module> print(N*(N+1)/2) ^ NameError: name 'N' is not defined
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)
Traceback (most recent call last): File "/tmp/tmp7yjh_2z1/tmpr087_fs5.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s342658621
p04029
u387456967
1555016339
Python
Python (3.4.3)
py
Runtime Error
18
2940
37
print(map(lambda x:x*(x+1)/2,input())
File "/tmp/tmphoqn5nl0/tmpvihswpsf.py", line 1 print(map(lambda x:x*(x+1)/2,input()) ^ SyntaxError: '(' was never closed
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)
Traceback (most recent call last): File "/tmp/tmp1j5ojvig/tmpzoif4_xx.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp8vcd8n62/tmpaqfoisis.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpzovspzp4/tmp70ugumiv.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s459830008
p04029
u297756089
1554658754
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
n=input() ans=n*(n+1)/2 print(ans)
Traceback (most recent call last): File "/tmp/tmpzb6uwe1h/tmp9dses2ma.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
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))
Traceback (most recent call last): File "/tmp/tmp7kh36v2h/tmp22cdaqxh.py", line 1, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmps17xai5i/tmpfbq8ti4v.py", line 3, in <module> N: int = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp251d492a/tmpn0b5_61u.py", line 1, in <module> N=input() ^^^^^^^ EOFError: EOF when reading a line
s705638994
p04029
u020604402
1553919980
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
N = int(input()) print((1+N)(N)//2)
Traceback (most recent call last): File "/tmp/tmp1qyev92a/tmpp2xv5zjp.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmp2y9u7_ij/tmpajbin062.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
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)
File "/tmp/tmp5w0gok57/tmpf14iubjx.py", line 3 a = [i for in range(1, n+1)] ^^ SyntaxError: invalid syntax
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))
Traceback (most recent call last): File "/tmp/tmpyz9c2y6t/tmpdhxeka7r.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
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
File "/tmp/tmp15pm2p1v/tmpb01yd03r.py", line 3 for i range(:n+1): ^^^^^ SyntaxError: invalid syntax
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)
Traceback (most recent call last): File "/tmp/tmp05tnr2d8/tmpar68mbd2.py", line 2, in <module> for i in range(N): ^ NameError: name 'N' is not defined
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))
Traceback (most recent call last): File "/tmp/tmpleulolwu/tmptrucwa_1.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s621174077
p04029
u505420467
1548092172
Python
Python (3.4.3)
py
Runtime Error
18
3064
32
print(sum(range(int(input())+1))
File "/tmp/tmpzpsdkpqt/tmp799dy45p.py", line 1 print(sum(range(int(input())+1)) ^ SyntaxError: '(' was never closed
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)
Traceback (most recent call last): File "/tmp/tmpoevamkxu/tmpmqm6mx0u.py", line 3, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s307321522
p04029
u239342230
1546255506
Python
Python (3.4.3)
py
Runtime Error
18
2940
34
print(sum(range(1,int(input())+1))
File "/tmp/tmpp8xkt5h5/tmpdesf4o7s.py", line 1 print(sum(range(1,int(input())+1)) ^ SyntaxError: '(' was never closed
s123736533
p04029
u439392790
1545233267
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
n=int(input()) print(int (n(n+1)/2))
Traceback (most recent call last): File "/tmp/tmpga975lx1/tmpxvai5mtj.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
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)
Traceback (most recent call last): File "/tmp/tmpi_4qtgj4/tmpyfzen0_0.py", line 1, in <module> N=input() ^^^^^^^ EOFError: EOF when reading a line
s945143517
p04029
u371467115
1544661531
Python
Python (3.4.3)
py
Runtime Error
18
2940
31
N=input() S=N(N+1)//2 print(S)
Traceback (most recent call last): File "/tmp/tmpweirt30r/tmp150i2oaw.py", line 1, in <module> N=input() ^^^^^^^ EOFError: EOF when reading a line