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
s649734510
p02416
u629874472
1559134878
Python
Python3
py
Runtime Error
0
0
107
while True: n = list(map(int,input())) if n[0] ==0: break else: print(n.sum())
Traceback (most recent call last): File "/tmp/tmphi0jssii/tmp3819ezqn.py", line 2, in <module> n = list(map(int,input())) ^^^^^^^ EOFError: EOF when reading a line
s083869736
p02416
u966110132
1559204423
Python
Python3
py
Runtime Error
0
0
208
go = 1 while go == 1: a = str(input()) alist = list(a) if a ==0: go = 0 exit sum = 0 for i in alist: i = int(i) sum += i if go == 1: print(sum)
Traceback (most recent call last): File "/tmp/tmp0nzv5xvi/tmp6of7svp3.py", line 3, in <module> a = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s406786349
p02416
u535719732
1559290465
Python
Python3
py
Runtime Error
0
0
94
while True: num = input() ret = 0 for i in num: ret += num print(num)
Traceback (most recent call last): File "/tmp/tmpryt430gr/tmpme6h_bb3.py", line 2, in <module> num = input() ^^^^^^^ EOFError: EOF when reading a line
s617528859
p02416
u535719732
1559290487
Python
Python3
py
Runtime Error
0
0
97
while True: num = input() ret = 0 for i in num: ret += int(i) print(num)
Traceback (most recent call last): File "/tmp/tmpky4mo4hh/tmpkix6f8xx.py", line 2, in <module> num = input() ^^^^^^^ EOFError: EOF when reading a line
s758425392
p02416
u535719732
1559290572
Python
Python3
py
Runtime Error
0
0
121
while True: num = input() if(num == 0): break ret = 0 for i in num: ret += int(i) print(ret)
Traceback (most recent call last): File "/tmp/tmpahd8akbx/tmp5_gcrjry.py", line 2, in <module> num = input() ^^^^^^^ EOFError: EOF when reading a line
s949963478
p02416
u535719732
1559290593
Python
Python3
py
Runtime Error
0
0
126
while True: num = str(input()) if(num == 0): break ret = 0 for i in num: ret += int(i) print(ret)
Traceback (most recent call last): File "/tmp/tmpt24uf8tg/tmpkxfj024e.py", line 2, in <module> num = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s746277289
p02416
u017764209
1420630598
Python
Python
py
Runtime Error
0
0
72
x = map(input(int,list(x)) if 0 != x[0]: print sum(map(int,list(x)))
File "/tmp/tmphkc54l6c/tmp0qwsrln1.py", line 1 x = map(input(int,list(x)) ^ SyntaxError: '(' was never closed
s133183378
p02416
u017764209
1420630615
Python
Python
py
Runtime Error
0
0
57
x = map(input(int,list(x)) if 0 != x[0]: print sum(x)
File "/tmp/tmpekm71ble/tmpef5gtjel.py", line 1 x = map(input(int,list(x)) ^ SyntaxError: '(' was never closed
s825217964
p02416
u971748390
1431078996
Python
Python3
py
Runtime Error
0
0
256
import math while True : x = int(input()) if x == 0 : break else : sum = 0 n=floor(log(x,10)) sum = floor(x/pow(10,n)) for i in reversed(xrange(n+1)) sum = sum + floor((x%pow(10,i))/pow(10,i-1)) print(sum)
File "/tmp/tmprdiuhvse/tmpobm5_v15.py", line 5 x = int(input()) ^ IndentationError: expected an indented block after 'while' statement on line 3
s601660863
p02416
u971748390
1431079058
Python
Python3
py
Runtime Error
0
0
255
import math while True : x = int(input()) if x == 0 : break else : sum = 0 n=floor(log(x,10)) sum = floor(x/pow(10,n)) for i in reversed(range(n+1)) sum = sum + floor((x%pow(10,i))/pow(10,i-1)) print(sum)
File "/tmp/tmp3jxwths1/tmp92h_4itt.py", line 5 x = int(input()) ^ IndentationError: expected an indented block after 'while' statement on line 3
s222290542
p02416
u971748390
1431079580
Python
Python3
py
Runtime Error
0
0
246
import math while True : x = int(input()) if x == 0 : break else : sum = 0 n=floor(log(x,10)) sum = floor(x/pow(10,n)) for i in reversed(xrange(n+1)): sum = sum + floor((x%pow(10,i))/pow(10,i-1)) print(sum)
File "/tmp/tmpaeyqy9ew/tmps8yyi34h.py", line 5 x = int(input()) ^ IndentationError: expected an indented block after 'while' statement on line 3
s024306062
p02416
u971748390
1431079723
Python
Python3
py
Runtime Error
0
0
121
while True x = input() if x == 0 : break else: sum = 0 for i in range(len(x)) : sum += int(x[i])
File "/tmp/tmp7ec_gvou/tmpd97bweso.py", line 1 while True ^ SyntaxError: expected ':'
s154911851
p02416
u971748390
1431080351
Python
Python3
py
Runtime Error
0
0
140
while True : x = input() if x == '0' : break else: sum = 0 for i in range(len(x)) : sum += int(x[i]) print(sum)
File "/tmp/tmpr5yg1ngl/tmpxss5vzll.py", line 9 sum += int(x[i]) ^ IndentationError: expected an indented block after 'for' statement on line 8
s775340890
p02416
u971748390
1431080535
Python
Python3
py
Runtime Error
0
0
151
import sys while True : x = input() if x == '0' : break else: sum = 0 for i in range(len(x)) : sum += int(x[i]) print(sum)
File "/tmp/tmpfjf7_xgi/tmpd_0eyddd.py", line 10 sum += int(x[i]) ^ IndentationError: expected an indented block after 'for' statement on line 9
s063393866
p02416
u997158994
1441606189
Python
Python
py
Runtime Error
0
0
207
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { string s; while(cin>>s,s!="0"){ int sum=0; for(int i=0;i<s.size();i++) sum+=s[i]-'0'; cout<<sum<<endl; } return 0; }
File "/tmp/tmpb2bzmb1b/tmpzmst214b.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s406637803
p02416
u994049982
1458691067
Python
Python
py
Runtime Error
0
0
73
while True: a=input() if a==0: break sum([int(i) for i in a])
Traceback (most recent call last): File "/tmp/tmpfy8_dmi0/tmp7xhb9ni8.py", line 2, in <module> a=input() ^^^^^^^ EOFError: EOF when reading a line
s923159155
p02416
u994049982
1458691079
Python
Python
py
Runtime Error
0
0
77
while True: a=raw_input() if a==0: break sum([int(i) for i in a])
Traceback (most recent call last): File "/tmp/tmp27qpy4j0/tmp2tj12yds.py", line 2, in <module> a=raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s555049037
p02416
u869301406
1459256954
Python
Python
py
Runtime Error
0
0
102
while True: num = input() print = sum(map(int,list(str(num)))) if num == 0: break
Traceback (most recent call last): File "/tmp/tmp4n75mmty/tmp6n7owgf2.py", line 2, in <module> num = input() ^^^^^^^ EOFError: EOF when reading a line
s624197008
p02416
u656153606
1463720841
Python
Python3
py
Runtime Error
0
0
144
while True: x = list(input()) if x == "0": break sum = 0 for i in range(len(x)): sum += int(x[i]) print(sum)
Traceback (most recent call last): File "/tmp/tmp28o618mk/tmpol3fnezy.py", line 2, in <module> x = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s964830202
p02416
u656153606
1463721062
Python
Python3
py
Runtime Error
0
0
142
while True: x = list(input()) if x == 0: break sum = 0 for i in range(len(x)): sum += int(x[i]) print(sum)
Traceback (most recent call last): File "/tmp/tmppzt1q5ct/tmpv6bheacz.py", line 2, in <module> x = list(input()) ^^^^^^^ EOFError: EOF when reading a line
s416281242
p02416
u196669489
1465280528
Python
Python
py
Runtime Error
0
0
62
while 1: x=input() if x=='0': break print sum(map(int,x))
File "/tmp/tmp9tri2ila/tmpy60vqml7.py", line 5 print sum(map(int,x)) ^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s892231869
p02416
u498041957
1470207907
Python
Python3
py
Runtime Error
0
0
171
while True: data = input() if data[0] == '0': break print(sum([int(i) for i in data])) for str in iter(input, "0"): print(sum(int(c) for c in str))
Traceback (most recent call last): File "/tmp/tmp2qj7fdv1/tmpql4oboh5.py", line 2, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s445873776
p02416
u498041957
1470207926
Python
Python3
py
Runtime Error
0
0
171
while True: data = input() if data[0] == '0': break print(sum([int(i) for i in data])) for str in iter(input, "0"): print(sum(int(c) for c in str))
Traceback (most recent call last): File "/tmp/tmp0hg1_q15/tmpulcg67pk.py", line 2, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s347763996
p02416
u671553883
1470207968
Python
Python3
py
Runtime Error
0
0
109
while True: data = int(input()) if data == '0': break print(sum([str(i) for i in data]))
Traceback (most recent call last): File "/tmp/tmp3uta6y5l/tmp1reyk6yr.py", line 2, in <module> data = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s955105183
p02416
u671553883
1470208044
Python
Python3
py
Runtime Error
0
0
104
while True: data = int(input()) if data == '0': break print([str[i] for i in data])
Traceback (most recent call last): File "/tmp/tmpee8he5ca/tmp6_ryaigj.py", line 2, in <module> data = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s862184997
p02416
u382316013
1470208094
Python
Python3
py
Runtime Error
0
0
115
while True: data = int(input()) if data == 0: break print(sum([int(i) for i in data]))
Traceback (most recent call last): File "/tmp/tmpgw08p242/tmp3xsn3lt2.py", line 2, in <module> data = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s920147000
p02416
u671553883
1470208185
Python
Python3
py
Runtime Error
0
0
92
while True: data = int(input()) if data == 0: break sum == 0 while
File "/tmp/tmpanvlzb0c/tmpyz5mq22y.py", line 7 while ^ SyntaxError: invalid syntax
s737574615
p02416
u600195957
1470285050
Python
Python3
py
Runtime Error
0
0
95
while True: a = 0 data = input() if data == 0: break a += data print(a)
Traceback (most recent call last): File "/tmp/tmpsqtscjpz/tmppfp38l_o.py", line 3, in <module> data = input() ^^^^^^^ EOFError: EOF when reading a line
s064944405
p02416
u514745787
1471338095
Python
Python3
py
Runtime Error
0
0
233
n = int(input()) tarou == 0 hanako == 0 for x in range(n): if hanako > tarou: hanako += 3 elif tarou > hanako: tarou += 3 else: tarou += 0 hanako += 0 print("{0} {1}".format(tarou, hanako))
Traceback (most recent call last): File "/tmp/tmp_q35umy_/tmpj1dpaz4h.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s184421677
p02416
u514745787
1471338146
Python
Python3
py
Runtime Error
0
0
233
n = int(input()) tarou == 0 hanako == 0 for x in range(n): if hanako > tarou: hanako += 3 elif tarou > hanako: tarou += 3 else: tarou += 1 hanako += 1 print("{0} {1}".format(tarou, hanako))
Traceback (most recent call last): File "/tmp/tmpodiwwxb6/tmpfqz5sff4.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s004914772
p02416
u979507074
1476177558
Python
Python
py
Runtime Error
0
0
240
while 1: input = raw_input() num = len(input) input = int(input) count = 0 for i in range(num, 0, -1): value = int(input / 10**(i-1)) input -= value * 10 ** (i-1) count += value print(count)
Traceback (most recent call last): File "/tmp/tmp8va1dxh6/tmpbbnqmd_a.py", line 2, in <module> input = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s294225452
p02416
u801346721
1477059899
Python
Python3
py
Runtime Error
0
0
106
while 1: n = input() if int(n) == 0: break sum = 0 for i in range(n): sum += int(n[i]) print(sum)
Traceback (most recent call last): File "/tmp/tmpv2wu538y/tmplotz39e4.py", line 2, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s397729341
p02416
u801346721
1477059958
Python
Python3
py
Runtime Error
0
0
103
while 1: n = input() if int(n) == 0: break sum = 0 for i in range(n): sum += int(i) print(sum)
Traceback (most recent call last): File "/tmp/tmpt_442xi4/tmp8m9n1jxy.py", line 2, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s759640542
p02416
u941509088
1478445407
Python
Python3
py
Runtime Error
0
0
99
while True: a = input() if a == "0": break print(sum([int(b) for b in list(a)])
File "/tmp/tmpahb_hi9o/tmpeqz33bgm.py", line 5 print(sum([int(b) for b in list(a)]) ^ SyntaxError: '(' was never closed
s872701089
p02416
u086566114
1479481966
Python
Python
py
Runtime Error
0
0
116
while True: value = [int(x) for x in raw_input().split()] if value == 0: break print(sum(value))
Traceback (most recent call last): File "/tmp/tmp14ypaspa/tmpvgrxj5ug.py", line 2, in <module> value = [int(x) for x in raw_input().split()] ^^^^^^^^^ NameError: name 'raw_input' is not defined
s303254453
p02416
u216804574
1480516258
Python
Python3
py
Runtime Error
0
0
89
while True: x = input() if x == 0: quit() print(sum([int(_) for _ in str(x)]))
Traceback (most recent call last): File "/tmp/tmp046nrtsr/tmpieoqqo3l.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s894249083
p02416
u144068724
1486306157
Python
Python3
py
Runtime Error
0
0
95
while 1: x = input() if x[0] == 0: break print (sum(int(i)for i in x ))
Traceback (most recent call last): File "/tmp/tmpaixhw6hm/tmp8x_4g08l.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s035406831
p02416
u144068724
1486306180
Python
Python3
py
Runtime Error
0
0
90
while 1: x = input() if x[0] == 0: break print (sum(int(i)for i in x))
Traceback (most recent call last): File "/tmp/tmp0gysqfni/tmpkpkgtkg8.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s121662413
p02416
u639421643
1488281722
Python
Python3
py
Runtime Error
0
0
149
while(1): word = input() if (word = "0"): break result = 0 for i in word: result += int(i) print(result)
File "/tmp/tmpj0jx4w5p/tmpmb5ufje4.py", line 3 if (word = "0"): ^^^^^^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s889389503
p02416
u213265973
1494337300
Python
Python3
py
Runtime Error
0
0
165
while True: count = 0 num = [int(i) for i in input().split("")] if num[0] == 0: break for n in num: count += n print(count)
Traceback (most recent call last): File "/tmp/tmp6lfzhq4r/tmpeucccuq9.py", line 3, in <module> num = [int(i) for i in input().split("")] ^^^^^^^ EOFError: EOF when reading a line
s124169836
p02416
u213265973
1494337358
Python
Python3
py
Runtime Error
0
0
172
while True: count = 0 num = [int(i) for i in input().split("")] if num[0] == 0: break for n in num: count += n print(count + "\n")
Traceback (most recent call last): File "/tmp/tmpdxklv3vs/tmpb1v7yz1r.py", line 3, in <module> num = [int(i) for i in input().split("")] ^^^^^^^ EOFError: EOF when reading a line
s335452355
p02416
u213265973
1494337444
Python
Python3
py
Runtime Error
0
0
176
while True: count = 0 num = [int(i) for i in input().split("")] if num[0] == 0: break for n in num: count += n print(count, end ="\n")
Traceback (most recent call last): File "/tmp/tmpcxxjwlq4/tmpza_0t_b3.py", line 3, in <module> num = [int(i) for i in input().split("")] ^^^^^^^ EOFError: EOF when reading a line
s820788057
p02416
u213265973
1494337521
Python
Python3
py
Runtime Error
0
0
180
while True: count = 0 num = [int(i) for i in input().split("")] if num[0] == 0: break for n in num: count += n print(count, end ="\n")
Traceback (most recent call last): File "/tmp/tmprzlo79o5/tmpwqlbvtwn.py", line 3, in <module> num = [int(i) for i in input().split("")] ^^^^^^^ EOFError: EOF when reading a line
s338276329
p02416
u213265973
1494337689
Python
Python3
py
Runtime Error
0
0
122
while True: num = [int(i) for i in input().split("")] if num[0] == 0: break print(sum(num))
Traceback (most recent call last): File "/tmp/tmpph8357tk/tmpc88fo48c.py", line 2, in <module> num = [int(i) for i in input().split("")] ^^^^^^^ EOFError: EOF when reading a line
s794549547
p02416
u213265973
1494337707
Python
Python3
py
Runtime Error
0
0
134
while True: num = [int(i) for i in input().split("")] if num[0] == 0: break print(sum(num), end = "\n")
Traceback (most recent call last): File "/tmp/tmprgdnm7hs/tmpg6fzj4rr.py", line 2, in <module> num = [int(i) for i in input().split("")] ^^^^^^^ EOFError: EOF when reading a line
s306891721
p02416
u213265973
1494337880
Python
Python3
py
Runtime Error
0
0
122
while True: num = [int(i) for i in input().split("")] if num[0] == 0: break print(sum(num))
Traceback (most recent call last): File "/tmp/tmphur4c8hf/tmpbcfkidy7.py", line 2, in <module> num = [int(i) for i in input().split("")] ^^^^^^^ EOFError: EOF when reading a line
s526138719
p02416
u213265973
1494338028
Python
Python3
py
Runtime Error
0
0
106
while True: x = input() if x == "0": break num = x.split("") print(sum(num))
Traceback (most recent call last): File "/tmp/tmpube3tfj2/tmp7il7utux.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s507625809
p02416
u213265973
1494338089
Python
Python3
py
Runtime Error
0
0
129
while True: x = input() if x == "0": break num = [int(i) for i in x.split("")] print(str(sum(num)))
Traceback (most recent call last): File "/tmp/tmpe5baauta/tmpa76dyni8.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s585160590
p02416
u213265973
1494338104
Python
Python3
py
Runtime Error
0
0
124
while True: x = input() if x == "0": break num = [int(i) for i in x.split("")] print(sum(num))
Traceback (most recent call last): File "/tmp/tmprbdi3zbf/tmpd3g6h788.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s413781137
p02416
u213265973
1494338123
Python
Python3
py
Runtime Error
0
0
136
while True: x = input() if x == "0": break num = [int(i) for i in x.split("")] print(sum(num), end = "\n")
Traceback (most recent call last): File "/tmp/tmphn10a60p/tmp1s00lsn5.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s140761106
p02416
u213265973
1494338201
Python
Python3
py
Runtime Error
0
0
124
while True: x = input() if x == "0": break num = [int(i) for i in x.split("")] print(sum(num))
Traceback (most recent call last): File "/tmp/tmpcumyoa38/tmp19lzi9ji.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s317043088
p02416
u213265973
1494338323
Python
Python3
py
Runtime Error
0
0
124
while True: x = input() if x == "0": break num = [int(i) for i in x.split("")] print(sum(num))
Traceback (most recent call last): File "/tmp/tmpy25103h4/tmpqha8bj5o.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s792958970
p02416
u213265973
1494338354
Python
Python3
py
Runtime Error
0
0
118
while True: x = input() if x == "0": break num = [int(i) for i in x.split("")] print(sum(num))
Traceback (most recent call last): File "/tmp/tmpw27n6ebx/tmp60q_pfm8.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s783573263
p02416
u213265973
1494338989
Python
Python3
py
Runtime Error
0
0
133
while True: x = input() if x == "0": break ns = [] for n in x: ns.append(int(n)) print(sum(ns))
File "/tmp/tmp34mprdh6/tmp4mty4zn6.py", line 7 ns.append(int(n)) ^ IndentationError: expected an indented block after 'for' statement on line 6
s868958656
p02416
u213265973
1494339099
Python
Python3
py
Runtime Error
0
0
127
while True: x = input() if x == "0": break ns = [] for n in x: ns.append(int(n)) print(sum(ns))
File "/tmp/tmp80skpjzz/tmp3fvfr3uu.py", line 7 ns.append(int(n)) ^ IndentationError: expected an indented block after 'for' statement on line 6
s137432875
p02416
u299798926
1499243061
Python
Python3
py
Runtime Error
0
0
92
while 1: x=[ int(i) for i in input()] if x==0: break print(sum(list(x)))
Traceback (most recent call last): File "/tmp/tmp2p_i0mxq/tmpx3a5kzvo.py", line 2, in <module> x=[ int(i) for i in input()] ^^^^^^^ EOFError: EOF when reading a line
s515477498
p02416
u498511622
1500800836
Python
Python3
py
Runtime Error
0
0
75
while True: x=input() if x==0: break print(sum(int(z) for z in x))
Traceback (most recent call last): File "/tmp/tmpp3h8t9qc/tmpwslk229g.py", line 2, in <module> x=input() ^^^^^^^ EOFError: EOF when reading a line
s092556015
p02416
u350064373
1501135683
Python
Python3
py
Runtime Error
0
0
180
list1 = [] while True: x = str(input()) if x == '0': break else: for i in x: result += int(x[i]) list1.append(result) sum(list1)
Traceback (most recent call last): File "/tmp/tmp6qpi43ke/tmpvevdlc2x.py", line 3, in <module> x = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s057608722
p02416
u350064373
1501135795
Python
Python3
py
Runtime Error
0
0
177
list1 = [] while True: x = str(input()) if x == '0': break else: for i in x: result += int(i) list1.append(result) sum(list1)
Traceback (most recent call last): File "/tmp/tmpxdosmoa3/tmpux33hb24.py", line 3, in <module> x = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s001298528
p02416
u853619096
1501979471
Python
Python3
py
Runtime Error
0
0
134
a=0 while True: z=str(input()) for i in z: k=int(i) a+=k print(a) a=0 if z == 0 : break
Traceback (most recent call last): File "/tmp/tmpu23dlhfg/tmpq4rsbqvf.py", line 4, in <module> z=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s817857721
p02416
u853619096
1501979529
Python
Python3
py
Runtime Error
0
0
134
a=0 while True: z=str(input()) for i in z: k=int(i) a+=k print(a) a=0 if z == 0 : break
Traceback (most recent call last): File "/tmp/tmpvbtc6f0_/tmpq0t_7uc4.py", line 4, in <module> z=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s550930560
p02416
u853619096
1501980819
Python
Python3
py
Runtime Error
0
0
134
a=0 while True: z=str(input()) for i in z: k=int(i) a+=k print(a) a=0 if z == 0 : break
Traceback (most recent call last): File "/tmp/tmpwjru0zu_/tmpv0xoyoyf.py", line 4, in <module> z=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s293549318
p02416
u853619096
1501980838
Python
Python3
py
Runtime Error
0
0
105
a=0 while True: z=str(input()) for i in z: k=int(i) a+=k print(a) a=0
Traceback (most recent call last): File "/tmp/tmpaiycoz_6/tmpgwzzkd6y.py", line 4, in <module> z=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s380993572
p02416
u853619096
1501980963
Python
Python3
py
Runtime Error
0
0
132
a=0 while True: z=str(input()) if z == 0 : break for i in z: k=int(i) a+=k print(a) a=0
Traceback (most recent call last): File "/tmp/tmp84fey0lv/tmpqnadhpdm.py", line 4, in <module> z=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s998089732
p02416
u117053676
1503137182
Python
Python3
py
Runtime Error
0
0
123
while True: input = list(map(int,list(input()))) if input == [0]: break else: print(sum(input))
Traceback (most recent call last): File "/tmp/tmp12bpr1__/tmpvkysji71.py", line 2, in <module> input = list(map(int,list(input()))) ^^^^^^^ EOFError: EOF when reading a line
s704596760
p02416
u283452598
1503195781
Python
Python3
py
Runtime Error
0
0
128
while True: x=input() if x="0": break cnt = 0 for i in x: num = int(i) cnt += num print(cnt)
File "/tmp/tmp4okmk3vh/tmpx7of0i0p.py", line 3 if x="0": ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s763506747
p02416
u933096856
1505443468
Python
Python3
py
Runtime Error
0
0
87
while True: n=sum(map(int, list(input())) if n == 0: break print(n)
File "/tmp/tmp_i8e8q8s/tmpycbyltxj.py", line 2 n=sum(map(int, list(input())) ^ SyntaxError: '(' was never closed
s171753274
p02416
u933096856
1505443483
Python
Python3
py
Runtime Error
0
0
93
while True: n=sum(list(map(int, list(input()))) if n == 0: break print(n)
File "/tmp/tmp3s1cb32y/tmpkqpxz4jx.py", line 2 n=sum(list(map(int, list(input()))) ^ SyntaxError: '(' was never closed
s989467468
p02416
u688488162
1506066667
Python
Python3
py
Runtime Error
0
0
140
while True: x = input() if x == 0: break sum = 0 while x != 0: sum += x%10 x = x//10 print(sum)
Traceback (most recent call last): File "/tmp/tmp6qb0m8j6/tmp162na2lq.py", line 2, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s581184572
p02416
u692415695
1510622046
Python
Python3
py
Runtime Error
0
0
148
# Belongs to : midandfeed aka asilentvoice while(1): n = str(input()) if n: ans = 0 for x in n: ans += int(x) print(ans) else: break
Traceback (most recent call last): File "/tmp/tmpzuizjifz/tmpp_4yinye.py", line 3, in <module> n = str(input()) ^^^^^^^ EOFError: EOF when reading a line
s910323815
p02416
u150984829
1513532467
Python
Python3
py
Runtime Error
0
0
105
while 1: x=sum(map(int,list(input()))) if x==0:break print(x)
File "/tmp/tmp1c4sfn05/tmp2b72eolr.py", line 1 while 1: IndentationError: unexpected indent
s153954685
p02416
u406002631
1513998841
Python
Python3
py
Runtime Error
0
0
200
a = [] while True: n = int(input()) if n == 0: break a.append(n) for i in range(len(a)): b = list(str(a[i])) sum = 0 for j in b: sum += int(j) print(sum)))
File "/tmp/tmptydo3w97/tmp_el61cxs.py", line 13 print(sum))) ^ SyntaxError: unmatched ')'
s086917298
p02416
u210512327
1516179564
Python
Python3
py
Runtime Error
0
0
168
while True: x = input() if x == 0: break length = len(x) tot = 0 for i in range(length): tot += int(x[i:i + 1]) print(tot)
Traceback (most recent call last): File "/tmp/tmpiihnz974/tmpavbe2n0_.py", line 3, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s745703390
p02416
u210512327
1516179602
Python
Python3
py
Runtime Error
0
0
167
while True: x = input() if x == 0: break length = len(x) tot = 0 for i in range(length): tot += int(x[i:i + 1]) print(tot)
Traceback (most recent call last): File "/tmp/tmpwlypszm6/tmpv514bcvp.py", line 3, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s895272015
p02416
u954858867
1519291135
Python
Python
py
Runtime Error
0
0
88
True: input = raw_input() if input == '0': break print sum(map(int, input))
File "/tmp/tmprour5nih/tmp5345kvse.py", line 1 True: ^ SyntaxError: invalid syntax
s014990594
p02416
u613534067
1520322341
Python
Python3
py
Runtime Error
0
0
68
while(True): for i in input(): x += int(i) print(x)
Traceback (most recent call last): File "/tmp/tmpqb4rw1j8/tmp_9vc56af.py", line 2, in <module> for i in input(): ^^^^^^^ EOFError: EOF when reading a line
s292776751
p02416
u613534067
1520322355
Python
Python3
py
Runtime Error
0
0
78
while(True): x = 0 for i in input(): x += int(i) print(x)
Traceback (most recent call last): File "/tmp/tmpymcx8el_/tmp00uqkemr.py", line 3, in <module> for i in input(): ^^^^^^^ EOFError: EOF when reading a line
s400454150
p02416
u017435045
1523503787
Python
Python3
py
Runtime Error
0
0
131
while 1: a = int(input()) if a ==0: break a = str(a) if a = print([a[i] for i in range(len(a))])
File "/tmp/tmp5m8a8gp7/tmpc02023u_.py", line 4 break ^ IndentationError: expected an indented block after 'if' statement on line 3
s803352856
p02416
u017435045
1523503805
Python
Python3
py
Runtime Error
0
0
120
while 1: a = int(input()) if a ==0: break a = str(a) print([a[i] for i in range(len(a))])
File "/tmp/tmp96tlthw2/tmpy_ypvuaz.py", line 4 break ^ IndentationError: expected an indented block after 'if' statement on line 3
s692275764
p02416
u017435045
1523503815
Python
Python3
py
Runtime Error
0
0
120
while 1: a = int(input()) if a ==0: break a = str(a) print([a[i] for i in range(len(a))])
File "/tmp/tmp27yg02l4/tmpwq1kxao8.py", line 4 break ^ IndentationError: expected an indented block after 'if' statement on line 3
s147035861
p02416
u017435045
1523503834
Python
Python3
py
Runtime Error
0
0
120
while 1: a = int(input()) if a ==0: break a = str(a) print([a[i] for i in range(len(a))])
File "/tmp/tmpb_0l9jva/tmpn92rrucp.py", line 4 break ^ IndentationError: expected an indented block after 'if' statement on line 3
s337904921
p02416
u017435045
1523503864
Python
Python3
py
Runtime Error
0
0
110
while 1: a = int(input()) if a ==0: break a = str(a) print([a[i] for i in range(len(a))])
File "/tmp/tmpdtvqd950/tmpzgliqynw.py", line 4 break ^ IndentationError: expected an indented block after 'if' statement on line 3
s145490372
p02416
u908651435
1525714420
Python
Python3
py
Runtime Error
0
0
95
while True: x=input() if x==0: break print(sum(int(s) for s in range(x)))
Traceback (most recent call last): File "/tmp/tmpkluys5r3/tmpcnzdhjah.py", line 2, in <module> x=input() ^^^^^^^ EOFError: EOF when reading a line
s373067859
p02416
u908651435
1525714484
Python
Python3
py
Runtime Error
0
0
87
while True: x=input() if x==0: break print(sum(int(s) for s in x))
Traceback (most recent call last): File "/tmp/tmp2_tpqn57/tmpg1k6thj3.py", line 2, in <module> x=input() ^^^^^^^ EOFError: EOF when reading a line
s038015218
p02416
u908651435
1525714527
Python
Python3
py
Runtime Error
0
0
87
while True: x=input() if x==0: break print(sum(int(s) for s in x))
Traceback (most recent call last): File "/tmp/tmp1270gqw7/tmp5n1l0ds9.py", line 2, in <module> x=input() ^^^^^^^ EOFError: EOF when reading a line
s405208143
p02416
u908651435
1525850924
Python
Python3
py
Runtime Error
0
0
111
while True: n=input() if n==0: break s=list(n) a=[int(i) for i in s] print(sum(a))
Traceback (most recent call last): File "/tmp/tmppwyv4cr0/tmp564whcnf.py", line 2, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s438601199
p02416
u327546577
1528143627
Python
Python3
py
Runtime Error
0
0
48
print(sum([int(x[i]) for i in range(len(x))]))
Traceback (most recent call last): File "/tmp/tmpsbcv5yo_/tmph5p85qig.py", line 1, in <module> print(sum([int(x[i]) for i in range(len(x))])) ^ NameError: name 'x' is not defined
s890551055
p02416
u633068244
1393329933
Python
Python
py
Runtime Error
0
0
134
while True: x = int(input()) if x == 0: break sum = 0 for i in range(len(x)) sum += x[i] print sum
File "/tmp/tmpwtb0uf_n/tmpgeh00k0g.py", line 6 for i in range(len(x)) ^ SyntaxError: expected ':'
s347342625
p02416
u633068244
1393329946
Python
Python
py
Runtime Error
0
0
135
while True: x = int(input()) if x == 0: break sum = 0 for i in range(len(x)): sum += x[i] print sum
File "/tmp/tmpa_ro853g/tmprt3hj5oc.py", line 8 print sum ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s554027894
p02416
u633068244
1393329973
Python
Python
py
Runtime Error
0
0
139
while True: x = int(raw_input()) if x == 0: break sum = 0 for i in range(len(x)): sum += x[i] print sum
File "/tmp/tmpbfvrtkkx/tmp9f5lbwm1.py", line 8 print sum ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s825039429
p02416
u633068244
1393330003
Python
Python
py
Runtime Error
0
0
144
while True: x = str(raw_input()) if x == 0: break sum = 0 for i in range(len(x)): sum += int(x[i]) print sum
File "/tmp/tmp9t957prj/tmpj5a63lor.py", line 8 print sum ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s547421029
p02416
u633068244
1393330073
Python
Python
py
Runtime Error
0
0
139
while True: x = int(raw_input()) if x == 0: break sum = 0 for i in range(len(x)): sum += x[i] print sum
File "/tmp/tmpwfsiby0z/tmpyagq2i02.py", line 8 print sum ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s520536819
p02416
u703196441
1399558054
Python
Python
py
Runtime Error
0
0
97
while 1: n = raw_input() if x == '0': break; print reduce(lambda x,y: x+int(y), n, 0)
File "/tmp/tmpkfshkjbn/tmp4w4yj6xd.py", line 4 print reduce(lambda x,y: x+int(y), n, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s642652942
p02417
u539753516
1531424922
Python
Python3
py
Runtime Error
0
0
153
import sys s = [] for line in sys.stdin: s.append(line) s.lower() for str in list("abcdefghijklmnopqrstuvwxyz"): print(*[str,":",s.count(str)])
Traceback (most recent call last): File "/tmp/tmp5y7cefoe/tmp3q5iihq7.py", line 6, in <module> s.lower() ^^^^^^^ AttributeError: 'list' object has no attribute 'lower'
s238811716
p02417
u539753516
1531424958
Python
Python3
py
Runtime Error
0
0
153
import sys s = "" for line in sys.stdin: s.append(line) s.lower() for str in list("abcdefghijklmnopqrstuvwxyz"): print(*[str,":",s.count(str)])
a : 0 b : 0 c : 0 d : 0 e : 0 f : 0 g : 0 h : 0 i : 0 j : 0 k : 0 l : 0 m : 0 n : 0 o : 0 p : 0 q : 0 r : 0 s : 0 t : 0 u : 0 v : 0 w : 0 x : 0 y : 0 z : 0
s696797907
p02417
u138628845
1531454112
Python
Python3
py
Runtime Error
0
0
486
# -*- coding: utf-8 -*- bigALlist = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ') smoALlist = list('abcdefghijklmnopqrstuvwxyz') cnt = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] while True: try: text = list(input()) for j in range(len(bigALlist)): for i in text: if (bigAL...
s263832795
p02417
u222716853
1532174178
Python
Python3
py
Runtime Error
20
5556
345
alpha = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] C = [] b = "" while True: a = input() a = a.lower() b += a if "." in a : break for i in range(len(alpha)): k = b.count(alpha[i]) C.append(k) for i in range(len(alpha)): p...
Traceback (most recent call last): File "/tmp/tmpn6hqhccp/tmp09b6g8jt.py", line 5, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s636371575
p02417
u222716853
1532174305
Python
Python3
py
Runtime Error
0
0
344
alpha = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] C = [] b = "" while True: a = input() a = a.lower() b += a if a == "" : break for i in range(len(alpha)): k = b.count(alpha[i]) C.append(k) for i in range(len(alpha)): pr...
Traceback (most recent call last): File "/tmp/tmppigw2o1g/tmpqqzb6jxl.py", line 5, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s964573269
p02417
u222716853
1532174558
Python
Python3
py
Runtime Error
0
0
354
alpha = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] C = [] b = "" while True: a = input() a = a.lower() b += a if a == 'END_OF_TEXT': break for i in range(len(alpha)): k = b.count(alpha[i]) C.append(k) for i in range(len(alpha...
Traceback (most recent call last): File "/tmp/tmpen4jg13y/tmp5ly2aab4.py", line 5, in <module> a = input() ^^^^^^^ EOFError: EOF when reading a line
s035033534
p02417
u677096240
1535679790
Python
Python3
py
Runtime Error
0
0
246
from string import ascii_lowercase table = dict(zip(ascii_lowercase, [0 for _ in range(len(ascii_lowercase))])) for s in input().split(): for c in s: table[c.lower()] += 1 for k, v in table.items(): print("{} : {}".format(k, v))
Traceback (most recent call last): File "/tmp/tmpudso3ycd/tmpsfd0zrl_.py", line 3, in <module> for s in input().split(): ^^^^^^^ EOFError: EOF when reading a line