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
s233907903
p04029
u863850961
1599706398
Python
Python (3.8.2)
py
Runtime Error
28
9060
362
s=input() list_s=list(s) element='B' l1=['0','1','B'] for i in range(0,len(list_s)-i): if(list_s[i] == element): index_element=list_s[i-1] if(index_element): list_s.remove(index_element) list_s.remove(element) print(list_s) else: list_s.append("s") list_s.remove("s") else: list_s.append("s") list_s.remove("s") print(list_s)
Traceback (most recent call last): File "/tmp/tmptwhyvjtf/tmp0knubxte.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s187621424
p04029
u048238198
1599473013
Python
Python (3.8.2)
py
Runtime Error
23
8984
96
N = ini() print(int((N*(N+1))/2)) ''' sum = 0 for i in range(N): sum += (i+1) print(sum) '''
Traceback (most recent call last): File "/tmp/tmpvb27bj06/tmpn865fq9a.py", line 1, in <module> N = ini() ^^^ NameError: name 'ini' is not defined. Did you mean: 'int'?
s145192019
p04029
u609752511
1599404911
Python
Python (3.8.2)
py
Runtime Error
28
8788
49
k=0 for i in range(N+1): k +=i print(k)
Traceback (most recent call last): File "/tmp/tmp4dc8j84k/tmptxqsz17g.py", line 3, in <module> for i in range(N+1): ^ NameError: name 'N' is not defined
s524872246
p04029
u802796197
1598647300
Python
Python (3.8.2)
py
Runtime Error
19
8940
482
AキャンディーとNにんの子供イージー # 競プロ幼稚園にはN人の子供がいます。えび先生は、子供たちを一列に並べ、一人目にはキャンディーを1個、二人目には2個,...,N人めにはN個あげることにしました。 # 必要なキャンディーの個数の合計は何個でしょう? # 1 <= N <= 100 # Nは子供の人数 N = int(input()) # print(N) # answerは合計個数 answer = (N * (N + 1) // 2) print(answer)
File "/tmp/tmpuhnqptgx/tmp8u3r1v8p.py", line 1 AキャンディーとNにんの子供イージー IndentationError: unexpected indent
s284853103
p04029
u947123009
1598586225
Python
Python (3.8.2)
py
Runtime Error
23
8968
102
x = N if x % 2 == 1: print((N + 1)*(N // 2)+(N + 1) / 2) if x % 2 == 0: print((N + 1) * N / 2)
Traceback (most recent call last): File "/tmp/tmp75w3casf/tmptlmlj90x.py", line 1, in <module> x = N ^ NameError: name 'N' is not defined
s957239434
p04029
u268314634
1598501616
Python
Python (3.8.2)
py
Runtime Error
21
8868
121
#他人のコピー n=input() n = int(input()) candy = (1 / 2) * n * (n + 1) print(int(candy)) #他人のコピー
Traceback (most recent call last): File "/tmp/tmp8hl9x3ua/tmp_u45ibal.py", line 6, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s599855302
p04029
u496280557
1598470851
Python
Python (3.8.2)
py
Runtime Error
25
9084
41
N = int(input()) Print (N * (N + 1) // 2)
Traceback (most recent call last): File "/tmp/tmpt_x484hy/tmp6k2tqbcp.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s481326681
p04029
u846155148
1598421753
Python
Python (3.8.2)
py
Runtime Error
25
9016
37
candy = N * N /2 + N /2 print(candy)
Traceback (most recent call last): File "/tmp/tmpfbbumdqr/tmp18b_ili8.py", line 1, in <module> candy = N * N /2 + N /2 ^ NameError: name 'N' is not defined
s736785073
p04029
u846155148
1598421471
Python
Python (3.8.2)
py
Runtime Error
21
8900
28
c = N * (N + 1 )/2 print(c)
Traceback (most recent call last): File "/tmp/tmpz1edvgif/tmpkr2sqmtc.py", line 1, in <module> c = N * (N + 1 )/2 ^ NameError: name 'N' is not defined
s325449265
p04029
u846155148
1598421212
Python
Python (3.8.2)
py
Runtime Error
23
9016
36
candy = N * (N + 1 )/2 print(candy)
Traceback (most recent call last): File "/tmp/tmpagq6xosm/tmpev8_i4t_.py", line 1, in <module> candy = N * (N + 1 )/2 ^ NameError: name 'N' is not defined
s822300029
p04029
u808569469
1598307301
Python
Python (3.8.2)
py
Runtime Error
23
9012
32
ame = N * (N + 1) / 2 print(ame)
Traceback (most recent call last): File "/tmp/tmpvviassg6/tmpry8xvni3.py", line 1, in <module> ame = N * (N + 1) / 2 ^ NameError: name 'N' is not defined
s080018525
p04029
u546132222
1598295739
Python
Python (3.8.2)
py
Runtime Error
21
9008
157
# 043A # N人の時のキャンディーの合計数 # 入力値 子供の人数 # 入力 = int(input()) # 処理 answer = (n + 1) * n / 2 print(answer)
File "/tmp/tmps0a_m1wp/tmpn1kkctva.py", line 6 = int(input()) IndentationError: unexpected indent
s790687625
p04029
u925353288
1598227439
Python
Python (3.8.2)
py
Runtime Error
20
8944
302
# 等差数列 N = int(input()) # 1+2+3+4+...+(N-2)+(N-1)+N # N+(N-1)+(N-2)+...+4+3+2+1 # 上と下を足し算して、2で割る a = N+1 b = N # print( a * b / 2 ) # TypeError: can only concatenate str (not "int") # Nという文字と数字を連結できない?? print(math.floor(a * b / 2 )
File "/tmp/tmp470t2bq8/tmpw48n6fei.py", line 16 print(math.floor(a * b / 2 ) ^ SyntaxError: '(' was never closed
s281970218
p04029
u252160635
1597807011
Python
Python (3.8.2)
py
Runtime Error
25
8808
200
#include <bits/stdc++.h> using namespace std; int main() { int N, sum = 0; cin >> N; for (int i = 1; i < N + 1; i++) { sum += i; } cout << sum << endl; return 0; }
File "/tmp/tmpe6sjw29j/tmp_ky38fnm.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s254822796
p04029
u779830746
1597803693
Python
Python (3.8.2)
py
Runtime Error
26
9092
120
# 1人目は1個 a = 1 # 入力 b, c = map(int, input().split()) # 処理 answer = a + b + c # 出力 print(answer)
Traceback (most recent call last): File "/tmp/tmpdv1lifkt/tmppxjdahcg.py", line 5, in <module> b, c = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s577398294
p04029
u779830746
1597803658
Python
Python (3.8.2)
py
Runtime Error
24
9088
120
# 1人目は1個 a = 1 # 入力 b, c = map(int, input().split()) # 処理 answer = a + b + c # 出力 print(answer)
Traceback (most recent call last): File "/tmp/tmpr0_t7is6/tmp565nnrss.py", line 5, in <module> b, c = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s282635466
p04029
u265118937
1597730393
Python
Python (3.8.2)
py
Runtime Error
21
9012
64
n=int(input() ans=0 for i in range(1,n+1): ans+=i print(ans)
File "/tmp/tmpfwt164ar/tmp72sjpscv.py", line 1 n=int(input() ^ SyntaxError: '(' was never closed
s635159872
p04029
u814265211
1597626059
Python
Python (3.8.2)
py
Runtime Error
24
8792
71
N = int(input()) ans = 0 for i in range(1, N+1) ans += i print(ans)
File "/tmp/tmpit97nu1b/tmpmz2jjxhe.py", line 3 for i in range(1, N+1) ^ SyntaxError: expected ':'
s375606271
p04029
u552738814
1596760966
Python
Python (3.8.2)
py
Runtime Error
24
8816
77
n = int(input() total = 0 for i in range(n+1): total += i print(total)
File "/tmp/tmpw597riyz/tmpp5ub986t.py", line 1 n = int(input() ^ SyntaxError: '(' was never closed
s486501414
p04029
u552738814
1596760731
Python
Python (3.8.2)
py
Runtime Error
22
8968
90
n = map(int,input().split()) total = 0 for i in range(n+1): total += i print(total)
Traceback (most recent call last): File "/tmp/tmptv8eh7wr/tmpcvfb14fn.py", line 1, in <module> n = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s624671450
p04029
u552738814
1596760610
Python
Python (3.8.2)
py
Runtime Error
19
8844
90
n = map(int,input().split()) total = 0 for i in range(n+1): total += i print(total)
Traceback (most recent call last): File "/tmp/tmp8e6yoxa3/tmppqv0zi3r.py", line 1, in <module> n = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s234210965
p04029
u125269142
1596507822
Python
Python (3.8.2)
py
Runtime Error
22
9148
43
n = int(input()) ans = n(1+n)/2 print(ans)
Traceback (most recent call last): File "/tmp/tmp4fk7eedd/tmp85gdrdjc.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s137303428
p04029
u123107676
1596389703
Python
Python (3.8.2)
py
Runtime Error
21
9036
42
print(sum(list(range(1, int(input()+1)))))
Traceback (most recent call last): File "/tmp/tmpqqkx45pw/tmp51f_hkwd.py", line 1, in <module> print(sum(list(range(1, int(input()+1))))) ^^^^^^^ EOFError: EOF when reading a line
s309907247
p04029
u671454079
1596389216
Python
Python (3.8.2)
py
Runtime Error
23
8976
71
N = input() sum = 0 for i in range(N): sum += i**2 print(sum)
Traceback (most recent call last): File "/tmp/tmp1uqglafj/tmprc_swo0p.py", line 1, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s190845153
p04029
u372303722
1596384869
Python
Python (3.8.2)
py
Runtime Error
25
9072
322
N = int(input()) list = [int(a) for a in input().split()] A = sum(list)//N ans = 0 for k in range(N): ans = ans + (list[j] - A) ** 2 for i in range(-100,100): sum = 0 sum_new = 0 for j in range(N): sum_new = sum_new + (list[j] - i) ** 2 if(sum > sum_new): ans = sum_new print(ans)
Traceback (most recent call last): File "/tmp/tmp4kt51h4w/tmpw3smp9fk.py", line 2, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s697116511
p04029
u105099610
1596149048
Python
Python (3.8.2)
py
Runtime Error
21
8968
29
for i in N: x += 1 print(x)
Traceback (most recent call last): File "/tmp/tmpvyeanknv/tmp6bb8q2ud.py", line 1, in <module> for i in N: ^ NameError: name 'N' is not defined
s157988179
p04029
u083184913
1595944905
Python
Python (3.8.2)
py
Runtime Error
20
8912
40
val1=int(input()) print(val1*(val1+1)/)
File "/tmp/tmpmc72uey9/tmpvcw_g3p0.py", line 3 print(val1*(val1+1)/) ^ SyntaxError: invalid syntax
s929010074
p04029
u790653524
1595821768
Python
Python (3.8.2)
py
Runtime Error
19
9084
61
n = int(input()) while n > 0: a += n n -= 1 print(a)
Traceback (most recent call last): File "/tmp/tmpftvbv0b5/tmp0wq4rxaz.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s816273227
p04029
u790653524
1595821575
Python
Python (3.8.2)
py
Runtime Error
21
9080
80
n = map(int, input().split()) a = 0 while n > 0: a += n n -= 1 print(a)
Traceback (most recent call last): File "/tmp/tmpzv9osep0/tmpocadtapk.py", line 1, in <module> n = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s073548759
p04029
u790653524
1595821432
Python
Python (3.8.2)
py
Runtime Error
23
8852
73
n = map(int, input().split()) while n > 0: a += n n -= 1 print(a)
Traceback (most recent call last): File "/tmp/tmp0pde9lev/tmp84136g83.py", line 1, in <module> n = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s421819775
p04029
u790653524
1595821385
Python
Python (3.8.2)
py
Runtime Error
29
8956
79
n = map(int, input().split()) a = 0 while n > 0: a += n n -= 1 print(a)
Traceback (most recent call last): File "/tmp/tmp9wdok9g5/tmpz9s4eygt.py", line 1, in <module> n = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s112841484
p04029
u790653524
1595821313
Python
Python (3.8.2)
py
Runtime Error
22
9092
79
n = map(int, input().split()) a = 0 while n < 0: a += n n -= 1 print(a)
Traceback (most recent call last): File "/tmp/tmp4ieypswc/tmpve6_64bh.py", line 1, in <module> n = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s960099597
p04029
u790653524
1595821224
Python
Python (3.8.2)
py
Runtime Error
23
8940
75
n = map(int, input().split()) while n < 0: a += n n -= 1 print(a)
Traceback (most recent call last): File "/tmp/tmphn2fq0q7/tmpeovohnza.py", line 1, in <module> n = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s079025248
p04029
u790653524
1595820785
Python
Python (3.8.2)
py
Runtime Error
25
9056
76
n = map(int, input().split()) while n == 0: a += n n -= 1 print(a)
Traceback (most recent call last): File "/tmp/tmpfnf_nnwo/tmpy1ohlp3o.py", line 1, in <module> n = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s343373394
p04029
u045793300
1595685117
Python
Python (3.8.2)
py
Runtime Error
27
9148
83
n = int(input()) num = 0 for num in range(n+1): total = total + num print(total)
Traceback (most recent call last): File "/tmp/tmpv9zvnjn1/tmphqpc3jsl.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s383845820
p04029
u045793300
1595685071
Python
Python (3.8.2)
py
Runtime Error
25
9064
75
n = int(input()) for num in range(n+1): total = total + num print(total)
Traceback (most recent call last): File "/tmp/tmpvd8xw6lm/tmpoajmmewz.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s205603251
p04029
u045793300
1595685030
Python
Python (3.8.2)
py
Runtime Error
22
8944
69
n = input() for num in range(n+1): total = total + num print(total)
Traceback (most recent call last): File "/tmp/tmpruhe7q2n/tmp8o5x818w.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s996022935
p04029
u045793300
1595685011
Python
Python (3.8.2)
py
Runtime Error
23
9024
82
n = int(input().split()) for num in range(n+1): total = total + num print(total)
Traceback (most recent call last): File "/tmp/tmplbr_cdm2/tmpm4_ay0hw.py", line 1, in <module> n = int(input().split()) ^^^^^^^ EOFError: EOF when reading a line
s053418562
p04029
u861421280
1595490761
Python
Python (3.8.2)
py
Runtime Error
26
8912
104
n=int(input("enter candy=")) c="" for i in range(n): if c==1: n=+1 total=n*c print(total)
Traceback (most recent call last): File "/tmp/tmp6mg07ryc/tmpo94kusf6.py", line 1, in <module> n=int(input("enter candy=")) ^^^^^^^^^^^^^^^^^^^^^ EOFError: EOF when reading a line
enter candy=
s482333135
p04029
u185806788
1594974249
Python
Python (3.8.2)
py
Runtime Error
22
9084
27
a=input() print(a*(a+1)//2)
Traceback (most recent call last): File "/tmp/tmp09lcr00g/tmpg1ohe6bh.py", line 1, in <module> a=input() ^^^^^^^ EOFError: EOF when reading a line
s053047532
p04029
u551857719
1594756136
Python
Python (3.8.2)
py
Runtime Error
24
8944
535
#!/usr/bin/python # -*- coding: UTF-8 -*- import sys def get_ints(): return map(int, sys.stdin.readline().strip().split()) def _main(): input() an = list(get_ints()) t = 0 old = 1000000000 while 1: ans = sq(t, an) g = sq(t+1, an) - ans t -= g / abs(g) if old > ans: old = ans else: break print(int(old)) def sq(t, an): ans = 0 for ai in an: ans += pow(ai - t, 2) return ans if __name__ == "__main__": _main()
Traceback (most recent call last): File "/tmp/tmpldlez5b0/tmp4ka1gsft.py", line 36, in <module> _main() File "/tmp/tmpldlez5b0/tmp4ka1gsft.py", line 12, in _main input() EOFError: EOF when reading a line
s867233127
p04029
u113255362
1594612138
Python
Python (3.8.2)
py
Runtime Error
31
8988
47
N = int(input()) res = int(N(N+1)/2) print(res)
Traceback (most recent call last): File "/tmp/tmp4se7uwve/tmpn6m68kj7.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s645019945
p04029
u316603606
1594407402
Python
Python (3.8.2)
py
Runtime Error
19
9124
37
N = int (input ()) print (N*(N+1))/2
Traceback (most recent call last): File "/tmp/tmpm25ugtgr/tmp_uik5wnc.py", line 1, in <module> N = int (input ()) ^^^^^^^^ EOFError: EOF when reading a line
s875581655
p04029
u233932118
1594352902
Python
Python (3.8.2)
py
Runtime Error
27
9128
76
N = int(input()) ans = 1 for i in range(1,N+1): ans += ans+i print(answer)
Traceback (most recent call last): File "/tmp/tmpqcl73voc/tmpg0kptcb9.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s675855535
p04029
u215376033
1594061169
Python
Python (3.8.2)
py
Runtime Error
20
8832
117
number = input() answer = 0 for i in range(number): number = number+1 answer = answer + number print(answer)
Traceback (most recent call last): File "/tmp/tmpvy583rup/tmpihw6kuxv.py", line 1, in <module> number = input() ^^^^^^^ EOFError: EOF when reading a line
s099657961
p04029
u215376033
1594061069
Python
Python (3.8.2)
py
Runtime Error
22
8844
106
number = input() for i in range(number): number = number+1 answer = answer + number print(answer)
Traceback (most recent call last): File "/tmp/tmpboi0g7ai/tmp4vnko71d.py", line 1, in <module> number = input() ^^^^^^^ EOFError: EOF when reading a line
s999105828
p04029
u215376033
1594060902
Python
Python (3.8.2)
py
Runtime Error
22
9064
76
number = input() for i in range(number): number = number+1 print(number)
Traceback (most recent call last): File "/tmp/tmpri6pyzu8/tmpx9nahkkf.py", line 1, in <module> number = input() ^^^^^^^ EOFError: EOF when reading a line
s535088438
p04029
u373181095
1593716669
Python
Python (3.8.2)
py
Runtime Error
26
8884
63
x=int(input(child:)) y=0 for i in range(0,x+1): y+=i print(x)
File "/tmp/tmpdd5ux8lq/tmpsynpave5.py", line 1 x=int(input(child:)) ^ SyntaxError: invalid syntax
s032556258
p04029
u001999168
1593716187
Python
Python (3.8.2)
py
Runtime Error
23
8984
71
N=int(input()) total=0 for i in range(1,n+1): total += i print(total)
Traceback (most recent call last): File "/tmp/tmpoao31zxs/tmpwb48q06f.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s066567141
p04029
u761062383
1593556110
Python
Python (3.8.2)
py
Runtime Error
23
8920
61
n = input() ans=0 for i in range(1, n+1): ans+=i print(ans)
Traceback (most recent call last): File "/tmp/tmpyqx498ev/tmprlnx_hyg.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s319319778
p04029
u169138653
1593224414
Python
Python (3.8.2)
py
Runtime Error
23
9120
178
n=int(input()) a=list(map(int,input().split())) ans=10**18 for num in range(-100,101): cnt=0 for i in range(n): cnt+=(num-a[i])**2 ans=min(ans,cnt) print(ans)
Traceback (most recent call last): File "/tmp/tmpjmhehjud/tmpdysa1jay.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s328270822
p04029
u697615293
1593096721
Python
Python (3.8.2)
py
Runtime Error
25
8984
190
a = list(input()) b = [] for i in a: if a.count(i) >= len(a)/2: b = [j for j ,x in enumerate(a) if x == i] else: pass if not b: print(-1,1) else: print(b[0],b[1])
Traceback (most recent call last): File "/tmp/tmp88f1ypbr/tmp69_7_0tb.py", line 1, in <module> a = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s817396442
p04029
u124063060
1592960687
Python
Python (3.8.2)
py
Runtime Error
22
8944
73
N = int(input()) ans = 0 for(i = 1; i <= N; i++): ans +=1 print(i)
File "/tmp/tmptodym0qg/tmp5hojih35.py", line 5 for(i = 1; i <= N; i++): ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s567629124
p04029
u333591669
1592797268
Python
Python (3.8.2)
py
Runtime Error
30
8840
112
def candy(): n=int(input()) a=0 for i in range (0,n) a=a+1 print(a) candy(10)
File "/tmp/tmp5jdlqlii/tmpju8zehu1.py", line 3 a=0 IndentationError: unexpected indent
s475058322
p04029
u081149041
1592444931
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
def candies(): n = int(input()) print((n * (n + 1)) / 2) candies()
File "/tmp/tmpfz5h3qin/tmpvwcwspnp.py", line 3 print((n * (n + 1)) / 2) ^ IndentationError: unindent does not match any outer indentation level
s525585893
p04029
u081149041
1592444901
Python
Python (3.4.3)
py
Runtime Error
18
3060
88
def candies(): n = int(input()) a = (n * (n + 1)) / 2 print(a) candies()
File "/tmp/tmphc5g6dlc/tmptw8cq2is.py", line 3 a = (n * (n + 1)) / 2 ^ IndentationError: unindent does not match any outer indentation level
s283176452
p04029
u081149041
1592444854
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
def candies(): n = int(input()) a = (n * (n + 1)) / 2 print(a) candies()
File "/tmp/tmprfa700jz/tmpoaust2eb.py", line 3 a = (n * (n + 1)) / 2 ^ IndentationError: unindent does not match any outer indentation level
s202095894
p04029
u081149041
1592444814
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
def candies(): n = int(input()) a = n * (n + 1) / 2 print(a) candies()
File "/tmp/tmpcagztecg/tmpa3oj1825.py", line 3 a = n * (n + 1) / 2 ^ IndentationError: unindent does not match any outer indentation level
s997318134
p04029
u081149041
1592444762
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
def candies(): n = int(input()) a = n * (n + 1) / 2 print(a)
File "/tmp/tmpbqcwmqo6/tmprrbjwu48.py", line 3 a = n * (n + 1) / 2 ^ IndentationError: unindent does not match any outer indentation level
s006461299
p04029
u100927237
1591966433
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
n = int(input()) k = int(input()) x = int(input()) y = int(input()) print(x*n-max((x-y)*(n-k),0))
Traceback (most recent call last): File "/tmp/tmppdzmlxjn/tmpx_thulds.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s863171263
p04029
u100927237
1591965480
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
n = int(input()) for i in range(1,n+1): ans += i print(ans)
Traceback (most recent call last): File "/tmp/tmpj6s6l61j/tmpbnf8r9vu.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s804174920
p04029
u100927237
1591965108
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
n = int(input()) print((n*(n+1)/2)
File "/tmp/tmpp4rdznoq/tmprtsbiuu6.py", line 2 print((n*(n+1)/2) ^ SyntaxError: '(' was never closed
s509057817
p04029
u500376440
1591896142
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
N=int(input()) print(math.factorial(N))
Traceback (most recent call last): File "/tmp/tmpilajax7t/tmp0k2nd3vq.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s353215743
p04029
u078349616
1591847298
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
print(sum[i for i in range(1, int(input())+1)]
File "/tmp/tmp5ic7alti/tmpcu6mx_dj.py", line 1 print(sum[i for i in range(1, int(input())+1)] ^ SyntaxError: '(' was never closed
s064719433
p04029
u078349616
1591847264
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
print(sum[for i in range(1, int(input())+1)]
File "/tmp/tmpmb4vgh4o/tmpjpozu2mp.py", line 1 print(sum[for i in range(1, int(input())+1)] ^^^ SyntaxError: invalid syntax
s208945891
p04029
u600261652
1590893643
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
N = int(input()) list = [] for i in range(N): list.attend(N) N -= 1 print(sum(list))
Traceback (most recent call last): File "/tmp/tmpd22l9qrl/tmpl6a_tsr8.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s421432311
p04029
u893239355
1590838289
Python
Python (3.4.3)
py
Runtime Error
17
2940
351
#include<bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define FOR(i, a, b) for (int i= (a); i < (b); ++i) typedef long long ll; typedef pair<int,int> P; const int INF = 100100100; const int MOD = (int)1e9 + 7; const double EPS = 1e-9; int main() { int N; cin >> N; cout << 0.5 * (N) * (N + 1) << endl; }
File "/tmp/tmpd8ejle0c/tmp62t_2wb4.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s929490450
p04029
u435721973
1590815454
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
a = int(input()) for i in range(a + 1): sum += i print(sum)
Traceback (most recent call last): File "/tmp/tmpz5mpdtcw/tmpjxql5lvh.py", line 1, in <module> a = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s328496599
p04029
u763396655
1590252482
Python
Python (3.4.3)
py
Runtime Error
23
3572
109
from functools import reduce from operator import mul n = int(input()) print(reduce(mul, map(range(1,n+1))))
Traceback (most recent call last): File "/tmp/tmpyfzx7xos/tmpw9f1saoo.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s843293046
p04029
u888100977
1589887968
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/tmpkhp204c9/tmpugk36gcy.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s845901259
p04029
u278855471
1589292322
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38512
61
N = int(input()) result = N * (N + 1) // 2 print(f'{result}')
Traceback (most recent call last): File "/tmp/tmp_puwbxuo/tmpc7xtf9on.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s965393674
p04029
u038956510
1589024100
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
n = input() total = 0 for candy in range(1, n+1): total += candy print(candy)
Traceback (most recent call last): File "/tmp/tmpw82yyekv/tmp9ctwknys.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s011566641
p04029
u230621983
1588881077
Python
Python (3.4.3)
py
Runtime Error
17
2940
202
function Main(input) { const n = parseInt(input); var ans = 0 for (var i = 1; i <= n ; i++) { ans += i } console.log(ans); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
File "/tmp/tmp5_jxbdox/tmpvt9en9r2.py", line 1 function Main(input) { ^^^^ SyntaxError: invalid syntax
s694364618
p04029
u441320782
1588731013
Python
Python (3.4.3)
py
Runtime Error
16
2940
43
x=[i for i in range(1,input()+1)] print(x)
Traceback (most recent call last): File "/tmp/tmpki05jzu9/tmpanmhk1_m.py", line 1, in <module> x=[i for i in range(1,input()+1)] ^^^^^^^ EOFError: EOF when reading a line
s729605372
p04029
u441320782
1588730956
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
x=[i for i in range(input())] print(sum(x))
Traceback (most recent call last): File "/tmp/tmpiimba1g5/tmp4weuuah5.py", line 1, in <module> x=[i for i in range(input())] ^^^^^^^ EOFError: EOF when reading a line
s460960371
p04029
u730150255
1588699583
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n = int(input()) print(int(n*(n+1)/2)
File "/tmp/tmpkudin776/tmpbuuyepng.py", line 2 print(int(n*(n+1)/2) ^ SyntaxError: '(' was never closed
s322877821
p04029
u943057856
1588360947
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
n,k,x,y=[int(input()) for _ in range(4)] print(k*x+(n-k)*y if n>k else n*x)
Traceback (most recent call last): File "/tmp/tmpah_j0omz/tmpl_urdyv9.py", line 1, in <module> n,k,x,y=[int(input()) for _ in range(4)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/tmpah_j0omz/tmpl_urdyv9.py", line 1, in <listcomp> n,k,x,y=[int(input()) for _ in range(4)] ^^^^^^^ EOFError: EOF when reading a line
s046814029
p04029
u417959834
1588355533
Python
Python (3.4.3)
py
Runtime Error
17
2940
116
#! python3 def main(): N = input() ans = 0 for i in range(1,N+1): ans += i print(ans) main()
Traceback (most recent call last): File "/tmp/tmp2jivqzwx/tmp4vliajy9.py", line 8, in <module> main() File "/tmp/tmp2jivqzwx/tmp4vliajy9.py", line 3, in main N = input() ^^^^^^^ EOFError: EOF when reading a line
s971052712
p04029
u586206420
1588302964
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
import ita s=int(input()) n=0 while(s>0): n=n+s s=s-1 print(n)
Traceback (most recent call last): File "/tmp/tmp93_ilxy4/tmpib7fog9i.py", line 1, in <module> import ita ModuleNotFoundError: No module named 'ita'
s015373469
p04029
u586206420
1588302447
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
s=print(int(input())) n=0 while(s>0): n=n+1 s=s-1 return(n)
File "/tmp/tmpl4ee5ws6/tmpah6hnt6o.py", line 6 return(n) ^^^^^^^^^ SyntaxError: 'return' outside function
s534042969
p04029
u586206420
1588302288
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
s = print(int(input())) n = 0 for i in range(0, s): n = n + 1 return(n)
File "/tmp/tmpgd4ujcrh/tmplomf60og.py", line 5 return(n) ^^^^^^^^^ SyntaxError: 'return' outside function
s629463107
p04029
u586206420
1588302066
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
s = print(int(input())) n = 0 for i in range(1, s): n = n + 1 return(n)
File "/tmp/tmpp8hz3kcc/tmp6m3abi9w.py", line 5 return(n) ^^^^^^^^^ SyntaxError: 'return' outside function
s738263962
p04029
u431068320
1588260924
Python
Python (3.4.3)
py
Runtime Error
17
2940
259
if __name__ == '__main__': n = int(input()) lst = list(map(int, input().split())) ans = (50*101)*(50*101) for i in range(-100,101): mn = 0 for c in lst: mn += (i-c)*(i-c) ans = min(ans,mn) print(ans)
Traceback (most recent call last): File "/tmp/tmpwut35j2s/tmpi37cm7xg.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s486449451
p04029
u578323547
1588188454
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38512
33
n = int(input()) print (n+1)*n/2
Traceback (most recent call last): File "/tmp/tmpa3rlz76m/tmp2fgxtl5b.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s958882367
p04029
u239653493
1588123692
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
n=input() print(n*(n+1)//2)
Traceback (most recent call last): File "/tmp/tmp5kmnhmrj/tmpcg23q4xv.py", line 1, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s491530182
p04029
u103178403
1588101046
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
print(sum([int(i)for i in range(1,int(input()+1))]))
Traceback (most recent call last): File "/tmp/tmpaise9x5k/tmpiwh24k85.py", line 1, in <module> print(sum([int(i)for i in range(1,int(input()+1))])) ^^^^^^^ EOFError: EOF when reading a line
s483796450
p04029
u691446391
1588062322
Python
Python (3.4.3)
py
Runtime Error
17
3060
178
import math n = int(input()) arr = list(map(int,input().split())) add = sum(arr) x = math.ceil(add/n) ans = 0 for i in range(len(arr)): ans += ((x-arr[i])*(x-arr[i])) print(ans)
Traceback (most recent call last): File "/tmp/tmpnazvvj6g/tmpzo5mze1m.py", line 2, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s290821818
p04029
u199459731
1588052257
Python
Python (3.4.3)
py
Runtime Error
17
3060
238
stay = int(input()) change_day = int(input()) first_cost = int(input()) change_cost = int(input()) total_cost = 0 for i in range(stay): if(i < change_day): total_cost += first_cost else: total_cost += change_cost print(total_cost)
Traceback (most recent call last): File "/tmp/tmp5qjijotb/tmps3vpdrfn.py", line 1, in <module> stay = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s576335777
p04029
u024782094
1587765869
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
n=int(imput()) print(n*(n+1)//2)
Traceback (most recent call last): File "/tmp/tmpjwa8cami/tmp9seucnvf.py", line 1, in <module> n=int(imput()) ^^^^^ NameError: name 'imput' is not defined. Did you mean: 'input'?
s361625822
p04029
u235066013
1587612250
Python
Python (3.4.3)
py
Runtime Error
17
2940
15
return N(N+1)/2
File "/tmp/tmplsq12q45/tmp8yhaz7u5.py", line 1 return N(N+1)/2 ^^^^^^^^^^^^^^^ SyntaxError: 'return' outside function
s931991640
p04029
u507116804
1587419371
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
a = input(int()) print(int(a*(a+1)/2))
Traceback (most recent call last): File "/tmp/tmpekp81ldg/tmpznyfjm5x.py", line 1, in <module> a = input(int()) ^^^^^^^^^^^^ EOFError: EOF when reading a line
0
s412799608
p04029
u507116804
1587419125
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
a = input(int()) print(a*(a+1)/2)
Traceback (most recent call last): File "/tmp/tmpkt6o4bk3/tmplrzxakmk.py", line 1, in <module> a = input(int()) ^^^^^^^^^^^^ EOFError: EOF when reading a line
0
s813721987
p04029
u559200744
1587183367
Python
PyPy3 (2.4.0)
py
Runtime Error
178
38512
54
N = int(input()) print(sum([i for i in range(1, N+1)])
File "/tmp/tmp5v7txj5n/tmp_f2h8i52.py", line 2 print(sum([i for i in range(1, N+1)]) ^ SyntaxError: '(' was never closed
s700263911
p04029
u566321790
1586979698
Python
Python (3.4.3)
py
Runtime Error
18
2940
63
n = input() x = 0 for i in range(n): x += (i+1) print(x)
Traceback (most recent call last): File "/tmp/tmpsxqomhme/tmp5pwpjpoz.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s304217852
p04029
u217303170
1586827573
Python
Python (3.4.3)
py
Runtime Error
17
2940
58
s = int(input()) for x in range(0,51): s += x print s
File "/tmp/tmpe88pzyyr/tmpu4blchr8.py", line 4 print s ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s778636097
p04029
u217303170
1586827482
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
s = int(input()) for x in range(1,51): s += x print s
File "/tmp/tmpbxjfa07u/tmptelss3jw.py", line 4 print s ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s609981649
p04029
u197029318
1586824419
Python
Python (3.4.3)
py
Runtime Error
16
2940
186
n,k,x,y = map(lnt(input().split()) int ans int kouhan == n - k if( n > k): ans == (k * x) * (kouhan*y) else: ans == n * x; print(ans)
File "/tmp/tmpv74rgu8i/tmpzb7qaxyx.py", line 1 n,k,x,y = map(lnt(input().split()) ^ SyntaxError: '(' was never closed
s107582140
p04029
u381712637
1586752882
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
n = int (input()) resilt =0 for i in range(1,n): result =result +i print (result)
Traceback (most recent call last): File "/tmp/tmpoo_53y7s/tmpwrqcc9c3.py", line 1, in <module> n = int (input()) ^^^^^^^ EOFError: EOF when reading a line
s298460705
p04029
u381712637
1586752786
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
n = int (input()) resilt =0 for i in range(1,n): result =result +i print result
File "/tmp/tmpslbjfxlp/tmpzppaddcc.py", line 5 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s012625226
p04029
u381712637
1586752715
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
n = int (input()) for i in range(1,n): result =result + i print result
File "/tmp/tmptyb8x0u0/tmp_nqso9qb.py", line 4 print result ^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?