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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s495236392 | p02401 | u756958775 | 1490019704 | Python | Python3 | py | Runtime Error | 0 | 0 | 360 | sols = []
while True:
x = list(input().split())
a = int(x[0])
b = int(x[2])
oprnd = x[1]
if oprnd=="+":
sols.append(a+b)
elif oprnd=="-":
sols.append(a-b)
elif oprnd=="*":
sols.append(a*b)
elif oprnd=="/":
sols.append(a/b)
elif oprnd=="?":
brea... | Traceback (most recent call last):
File "/tmp/tmpsh_lone9/tmp3fy9_n1y.py", line 3, in <module>
x = list(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s303896238 | p02401 | u756958775 | 1490019798 | Python | Python3 | py | Runtime Error | 0 | 0 | 407 | sols = []
while True:
x = list(input().split())
a = int(x[0])
b = int(x[2])
oprnd = x[1]
if oprnd=="+":
sols.append(a+b)
elif oprnd=="-":
sols.append(a-b)
elif oprnd=="*":
sols.append(a*b)
elif oprnd=="/":
sols.append(a/b)
elif oprnd=="?":
brea... | Traceback (most recent call last):
File "/tmp/tmpraxzgr6p/tmp9tyc16zl.py", line 3, in <module>
x = list(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s198883434 | p02401 | u645985665 | 1493605644 | Python | Python3 | py | Runtime Error | 20 | 7344 | 108 | while True:
calc = input()
if calc == '0 ? 0':
break
print(eval(calc.replace("/","//"))) | Traceback (most recent call last):
File "/tmp/tmprcwlxgt4/tmp_mc2ev8g.py", line 2, in <module>
calc = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s385222457 | p02401 | u213265973 | 1494256962 | Python | Python3 | py | Runtime Error | 0 | 0 | 161 | While True:
array = input().split(" ")
a = int(array[0])
op = array[1]
b = int(input())
if op == "?":
break
print(a, op, b)
| File "/tmp/tmpfdzpy0x_/tmp2cqzvib3.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s974590138 | p02401 | u213265973 | 1494257126 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | While True:
array = input().split(" ")
a = int(array[0])
op = array[1]
b = int(input())
if op == "?":
break
elif op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/"
print(a / b)
| File "/tmp/tmpf__17dxh/tmpo5lau2ke.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s447696905 | p02401 | u213265973 | 1494257176 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | While True:
array = input().split(" ")
a = int(array[0])
op = array[1]
b = int(input())
if op == "?":
break
elif op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/"
print(a / /b)
| File "/tmp/tmpozs7aq2r/tmp5m72lmje.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s035870954 | p02401 | u213265973 | 1494257185 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | While True:
array = input().split(" ")
a = int(array[0])
op = array[1]
b = int(input())
if op == "?":
break
elif op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / /b)
| File "/tmp/tmppise1jao/tmp7mzmrmno.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s828286348 | p02401 | u213265973 | 1494257233 | Python | Python3 | py | Runtime Error | 0 | 0 | 307 | While True:
array = input().split(" ")
a = int(array[0])
op = array[1]
b = int(array[2])
if op == "?":
break
elif op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / /b)
| File "/tmp/tmpnxivfx4l/tmp0n9f141u.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s129313602 | p02401 | u213265973 | 1494257279 | Python | Python3 | py | Runtime Error | 0 | 0 | 306 | While True:
array = input().split(" ")
a = int(array[0])
op = array[1]
b = int(array[2])
if op == "?":
break
elif op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / /b)
| File "/tmp/tmpa1i6t7wz/tmpe4ob2vau.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s143166007 | p02401 | u213265973 | 1494257360 | Python | Python3 | py | Runtime Error | 0 | 0 | 285 | While True:
a,op,b = input().split(" ")
if op == "?":
break
elif op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) -int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
print(int(a) / / int(b))
| File "/tmp/tmpisv_nc2s/tmp_g9kpslv.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s926928465 | p02401 | u213265973 | 1494257384 | Python | Python3 | py | Runtime Error | 0 | 0 | 285 | while True:
a,op,b = input().split(" ")
if op == "?":
break
elif op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) -int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
print(int(a) / / int(b))
| File "/tmp/tmp89jmt7tx/tmpjx2ehmos.py", line 12
print(int(a) / / int(b))
^
SyntaxError: invalid syntax
| |
s821795868 | p02401 | u213265973 | 1494257416 | Python | Python3 | py | Runtime Error | 0 | 0 | 286 | while True:
a,op,b = input().split(" ")
if op == "?":
break
elif op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) - int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
print(int(a) / / int(b))
| File "/tmp/tmpeoo9q9nv/tmp_xvzgf8h.py", line 12
print(int(a) / / int(b))
^
SyntaxError: invalid syntax
| |
s021784128 | p02401 | u213265973 | 1494257548 | Python | Python3 | py | Runtime Error | 0 | 0 | 286 | while True:
a,op,b = input().split(" ")
if op == "?":
break
elif op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) - int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
print(int(a) / / int(b))
| File "/tmp/tmp76ntoqey/tmpdp2hnhc4.py", line 12
print(int(a) / / int(b))
^
SyntaxError: invalid syntax
| |
s616591525 | p02401 | u962381052 | 1496582845 | Python | Python3 | py | Runtime Error | 0 | 0 | 253 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
if op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*'
print(a * b)
elif op = '/':
print(a // b)
else
break | File "/tmp/tmp3sxb9bta/tmpujx49e6b.py", line 5
if op = '+':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s056665667 | p02401 | u962381052 | 1496582884 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
if op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*'
print(a * b)
elif op = '/':
print(a // b)
else:
break | File "/tmp/tmpupvm5vc_/tmph9si3q2q.py", line 5
if op = '+':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s278596655 | p02401 | u962381052 | 1496582952 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
if op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a // b)
else:
break | File "/tmp/tmpai96f8a0/tmpu8d8d8uh.py", line 5
if op = '+':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s819956152 | p02401 | u569585396 | 1498722078 | Python | Python3 | py | Runtime Error | 0 | 0 | 95 | while True:
C == input()
if '?' in C:
break
print(eval(C.replace('/','//'))) | Traceback (most recent call last):
File "/tmp/tmp89xn1lh3/tmpihddcqng.py", line 2, in <module>
C == input()
^
NameError: name 'C' is not defined
| |
s982261920 | p02401 | u569585396 | 1498722256 | Python | Python3 | py | Runtime Error | 0 | 0 | 107 | N = input().split()
a = int(N[0])
op = N[1]
b = int(N[2])
if op == '?':
break
else:
print(a op b) | File "/tmp/tmpcmghednh/tmp5org78e1.py", line 10
print(a op b)
^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s744823597 | p02401 | u340500592 | 1498976985 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | while op != "?":
a, op, b = map(str, input().split())
a, b = int(a), int(b)
if op == "+":
output = a + b
elif op == "-":
output = a - b
elif op == "*":
output = a * b
elif op == "/":
output = a // b
print(output) | Traceback (most recent call last):
File "/tmp/tmpi6agj3xh/tmphhd_9l3s.py", line 1, in <module>
while op != "?":
^^
NameError: name 'op' is not defined
| |
s700873972 | p02401 | u569585396 | 1499912760 | Python | Python3 | py | Runtime Error | 0 | 0 | 158 | a, b = map(int, input(), split())
op = ["+", "-", "*", "/", "?"]
for i in range(20000):
if op == "?":
break
else:
print(a op b) | File "/tmp/tmp9v90lih2/tmpovkj_m0k.py", line 8
print(a op b)
^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s462570201 | p02401 | u569585396 | 1499912992 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
op = int(op)
if op == ?:
break
else:
print(a op b) | File "/tmp/tmpi0w1gjvp/tmpinmdrp0r.py", line 6
if op == ?:
^
SyntaxError: invalid syntax
| |
s773559407 | p02401 | u569585396 | 1499913036 | Python | Python3 | py | Runtime Error | 0 | 0 | 132 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
if op == "?":
break
else:
print(a op b) | File "/tmp/tmp9v_uu2ko/tmpm6qyefhf.py", line 8
print(a op b)
^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s566121637 | p02401 | u248424983 | 1499923528 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | import sys
a,op,c=sys.stdin.readline().split()
def ope(a,op,b):
if op == '+': ret = a + b
if op == "-": ret = a - b
if op == "*": ret = a * b
if op == "/": ret = a / b
return ret
print(ope(a,op,b)) | Traceback (most recent call last):
File "/tmp/tmpw_lg7chx/tmp53j7z6ex.py", line 2, in <module>
a,op,c=sys.stdin.readline().split()
^^^^^^
ValueError: not enough values to unpack (expected 3, got 0)
| |
s120714351 | p02401 | u853619096 | 1500364021 | Python | Python3 | py | Runtime Error | 0 | 0 | 189 | import sys
a,b,c =sys.stdin.realine.split()
if b == "+":
d = a+c
print(d)
if b=="-":
d = a-c
print(d)
if b=="*":
d = a*c
print(d)
if b=="/":
d=a//c
print(d) | Traceback (most recent call last):
File "/tmp/tmpajuz8ik0/tmp3hk0nqwm.py", line 3, in <module>
a,b,c =sys.stdin.realine.split()
^^^^^^^^^^^^^^^^^
AttributeError: '_io.TextIOWrapper' object has no attribute 'realine'. Did you mean: 'readline'?
| |
s520192103 | p02401 | u350064373 | 1500471963 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | a, op, b = map(int, input().split())
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
else:
print(a / b) | Traceback (most recent call last):
File "/tmp/tmpfrb4dz_y/tmp9cdtgfs8.py", line 1, in <module>
a, op, b = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s023077395 | p02401 | u350064373 | 1500472028 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | a, op, b = map(int, input().split())
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
else:
print(a / b) | Traceback (most recent call last):
File "/tmp/tmpieysdd60/tmp8jn5_qt0.py", line 1, in <module>
a, op, b = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s277522071 | p02401 | u350064373 | 1500472085 | Python | Python3 | py | Runtime Error | 0 | 0 | 224 | a, op, b = map(int, input().split())
while True:
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif:
print(a / b)
else:
break | File "/tmp/tmpluoq3s7_/tmpq1m5qsle.py", line 9
elif:
^
SyntaxError: invalid syntax
| |
s758141857 | p02401 | u350064373 | 1500472164 | Python | Python3 | py | Runtime Error | 0 | 0 | 228 | while True:
a, op, b = map(int, input().split())
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif:
print(a / b)
else:
break | File "/tmp/tmpl_voqqsc/tmp_bdfp5u0.py", line 9
elif:
^
SyntaxError: invalid syntax
| |
s870423105 | p02401 | u350064373 | 1500472697 | Python | Python3 | py | Runtime Error | 0 | 0 | 250 | while True:
a, op, b =input().split())
int(a)
int(b)
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / b)
else:
break | File "/tmp/tmpf0b9okwh/tmphv4qwcul.py", line 2
a, op, b =input().split())
^
SyntaxError: unmatched ')'
| |
s387606733 | p02401 | u350064373 | 1500472781 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | while True:
a, op, b =input().split())
int(a)
int(b)
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / b)
elif op == "?":
break | File "/tmp/tmpmsde8u3k/tmpuu0urfs0.py", line 2
a, op, b =input().split())
^
SyntaxError: unmatched ')'
| |
s445077262 | p02401 | u888737393 | 1500701274 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | while:
a, op, b = list(map, input().split())
if op == '?':
break
a = int(a)
b = int(b)
if op == '+':
print(a+b)
elif op == '-':
print(a-b)
elif op == '*':
print(a*b)
elif op == '/':
print(a/b) | File "/tmp/tmpydit80u0/tmpdhjyoyl7.py", line 1
while:
^
SyntaxError: invalid syntax
| |
s368294483 | p02401 | u467070262 | 1501602997 | Python | Python3 | py | Runtime Error | 0 | 0 | 359 | inport sys
str = []
for line in sys.stdin.readlines()
str.append(line.rstrip())
num = len(str)
for i in range(num)
s = str.split(" ")
a = int(s[0])
b = s[1]
c = s[2]
if b =="?":
break
if b == "+":
print(a+c)
if b == "-":
print(a-c)
if b == "*":
print(a... | File "/tmp/tmp2w0q7rk6/tmpb5hx5h9n.py", line 1
inport sys
^^^
SyntaxError: invalid syntax
| |
s477503685 | p02401 | u467070262 | 1501603026 | Python | Python3 | py | Runtime Error | 0 | 0 | 363 | inport sys
str = []
for line in sys.stdin.readlines()
str.append(line.rstrip())
num = len(str)
for i in range(num)
s = str.split(" ")
a = int(s[0])
b = s[1]
c = s[2]
if b =="?":
break
if b == "+":
print(a+c)
if b == "-":
print(a-c)
if b == "*":
print(a... | File "/tmp/tmptngrfqge/tmpf4m1k90s.py", line 1
inport sys
^^^
SyntaxError: invalid syntax
| |
s050400275 | p02401 | u283452598 | 1503045650 | Python | Python3 | py | Runtime Error | 0 | 0 | 74 | while True:
if input()=="0 ? 0":
break
print(eval(input()) | File "/tmp/tmpgl1hhmjt/tmp34e6vdnw.py", line 4
print(eval(input())
^
SyntaxError: '(' was never closed
| |
s604661738 | p02401 | u283452598 | 1503045726 | Python | Python3 | py | Runtime Error | 0 | 0 | 75 | while True:
if input()=="0 ? 0":
break
print(eval(input())) | Traceback (most recent call last):
File "/tmp/tmpqvpi9ub4/tmp6z2tb8i6.py", line 2, in <module>
if input()=="0 ? 0":
^^^^^^^
EOFError: EOF when reading a line
| |
s530858735 | p02401 | u283452598 | 1503045876 | Python | Python3 | py | Runtime Error | 20 | 7320 | 82 | while True:
x=input()
if x=="0 ? 0":
break
print(int(eval(x))) | Traceback (most recent call last):
File "/tmp/tmpn5jiill6/tmpga2e6scb.py", line 2, in <module>
x=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s009315086 | p02401 | u283452598 | 1503046053 | Python | Python3 | py | Runtime Error | 30 | 7420 | 82 | while True:
x=input()
if x=="0 ? 0":
break
print(int(eval(x))) | Traceback (most recent call last):
File "/tmp/tmpdi756qt2/tmp1vifm4om.py", line 2, in <module>
x=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s029325285 | p02401 | u283452598 | 1503046172 | Python | Python3 | py | Runtime Error | 0 | 0 | 95 | while True:
x=input()
if x=="0 ? 0":
break
print(int(eval(x.replace(/,//))) | File "/tmp/tmp26pfkqb2/tmp680ui5tg.py", line 5
print(int(eval(x.replace(/,//)))
^
SyntaxError: invalid syntax
| |
s363115352 | p02401 | u283452598 | 1503046219 | Python | Python3 | py | Runtime Error | 0 | 0 | 99 | while True:
x=input()
if x=="0 ? 0":
break
print(int(eval(x.replace("/","//"))) | File "/tmp/tmplraxcryh/tmprvmts2tl.py", line 5
print(int(eval(x.replace("/","//")))
^
SyntaxError: '(' was never closed
| |
s082668437 | p02401 | u283452598 | 1503046242 | Python | Python3 | py | Runtime Error | 20 | 7344 | 100 | while True:
x=input()
if x=="0 ? 0":
break
print(int(eval(x.replace("/","//")))) | Traceback (most recent call last):
File "/tmp/tmpkhndur4q/tmp22ya779p.py", line 2, in <module>
x=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s428483330 | p02401 | u283452598 | 1503046260 | Python | Python3 | py | Runtime Error | 20 | 7336 | 95 | while True:
x=input()
if x=="0 ? 0":
break
print(eval(x.replace("/","//"))) | Traceback (most recent call last):
File "/tmp/tmpsw4llni3/tmpsm77z7ki.py", line 2, in <module>
x=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s564500650 | p02401 | u316697096 | 1503151085 | Python | Python | py | Runtime Error | 0 | 0 | 173 |
while 1:
a,"op",b= map(int,raw_input().split())
if op==+:
x=a+b
elif op==-:
x=a-b
elif op==*:
x=a*b
elif op==/:
x=a/b
elif op=="?":
break
print "%d" %(x) | File "/tmp/tmpghkchp05/tmpwh208jag.py", line 3
a,"op",b= map(int,raw_input().split())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s655631891 | p02401 | u316697096 | 1503151241 | Python | Python | py | Runtime Error | 0 | 0 | 181 |
while 1:
a,"op",b= map(int,raw_input().split())
if op=="+":
x=a+b
elif op=="-":
x=a-b
elif op=="*":
x=a*b
elif op=="/":
x=a/b
elif op=="?":
break
print "%d" %(x) | File "/tmp/tmp7j7ugobq/tmp2hwscswc.py", line 3
a,"op",b= map(int,raw_input().split())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s519828091 | p02401 | u316697096 | 1503151541 | Python | Python | py | Runtime Error | 0 | 0 | 213 | while 1:
x=raw_input().split()
op= x[1]
a = int(x[0])
b = int(x[2])
if op=="+":
x=a+b
elif op=="-":
x=a-b
elif op=="*":
x=a*b
elif op=="/":
x=a/b
elif op=="?":
break
print "%d" %(x) | File "/tmp/tmp3yzqsfkf/tmp9r_j6b_7.py", line 3
op= x[1]
^
IndentationError: unindent does not match any outer indentation level
| |
s883013095 | p02401 | u316697096 | 1503151601 | Python | Python | py | Runtime Error | 0 | 0 | 210 |
while 1:
a,op,b= map(str,raw_input().split())
a = int(a)
b = int(b)
if op=="+":
x=a+b
elif op=="-":
x=a-b
elif op=="*":
x=a*b
elif op=="/":
x=a/b
elif op=="?":
break
print "%d" %(x) | File "/tmp/tmp5pia8rna/tmpydvnmc7f.py", line 4
a = int(a)
^
IndentationError: unindent does not match any outer indentation level
| |
s886987067 | p02401 | u043639882 | 1503456150 | Python | Python3 | py | Runtime Error | 0 | 0 | 340 | a,op,b=input().split()
while True:
if op == "?":
break
else:
if op == "+":
print int(a)+int(b)
elif op == "-":
print int(a)-ing(b)
elif op == "*":
print int(a)*int(b)
elif op == "/":
print int(a)//int(b)
else:
... | File "/tmp/tmp4gyvurib/tmpbh_5ial7.py", line 8
print int(a)+int(b)
^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s001451593 | p02401 | u043639882 | 1503459740 | Python | Python3 | py | Runtime Error | 20 | 7544 | 352 | while True:
a,op,b=input().split()
if op == "?":
break
else:
if op == "+":
print(int(a)+int(b))
elif op == "-":
print(int(a)-ing(b))
elif op == "*":
print(int(a)*int(b))
elif op == "/":
Print (int (a) //int (b))
... | Traceback (most recent call last):
File "/tmp/tmpsbyj4ni8/tmp2nxg7vyb.py", line 2, in <module>
a,op,b=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s232036379 | p02401 | u043639882 | 1503459840 | Python | Python3 | py | Runtime Error | 20 | 7532 | 353 | while True:
a,op,b=input().split()
if op == "?":
break
else:
if op == "+":
print(int(a)+int(b))
elif op == "-":
print(int(a)-int(b))
elif op == "*":
print(int(a)*int(b))
elif op == "/":
Print (int (a) //int (b))
... | Traceback (most recent call last):
File "/tmp/tmpie8hmjod/tmpmamjom2_.py", line 2, in <module>
a,op,b=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s247620330 | p02401 | u043639882 | 1503459932 | Python | Python3 | py | Runtime Error | 20 | 7652 | 360 | while True:
a,op,b=input().split()
if op == "?":
break
else:
if op == "+":
print(int(a) + int(b))
elif op == "-":
print(int(a) - int(b))
elif op == "*":
print(int(a) * int(b))
elif op == "/":
Print (int (a) // int (b))
... | Traceback (most recent call last):
File "/tmp/tmpu82o9_7z/tmptv8regtd.py", line 2, in <module>
a,op,b=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s735278272 | p02401 | u043639882 | 1503460116 | Python | Python3 | py | Runtime Error | 0 | 0 | 358 | while True:
a, op, b = raw_input().split()
if op == "?":
break
else:
if op == '+':
print int(a) + int(b)
elif op == '-':
print int(a) - int(b)
elif op == '*':
print int(a) * int(b)
elif op == '/':
print int(a) / int(b)
... | File "/tmp/tmpdnfoa5rd/tmp6_vg4ypx.py", line 7
print int(a) + int(b)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s979291263 | p02401 | u450020188 | 1503638865 | Python | Python3 | py | Runtime Error | 0 | 0 | 271 |
while True:
a, op, b = (input().split())
a = int(a)
b = int(b)
if op == "+":
print(a +b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / b)
else op == "?":
break | File "/tmp/tmp1c7muq45/tmp37x9jylo.py", line 15
else op == "?":
^^
SyntaxError: expected ':'
| |
s918842686 | p02401 | u450020188 | 1503638887 | Python | Python3 | py | Runtime Error | 0 | 0 | 276 |
while True:
a, op, b = (str, input().split())
a = int(a)
b = int(b)
if op == "+":
print(a +b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / b)
else op == "?":
break | File "/tmp/tmpx06zgwny/tmpwg2dnfv6.py", line 15
else op == "?":
^^
SyntaxError: expected ':'
| |
s066091342 | p02401 | u450020188 | 1503639077 | Python | Python3 | py | Runtime Error | 0 | 0 | 281 |
while True:
a, op, b = (str, input().split())
a = int(a)
b = int(b)
if op == "+":
print(a +b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / b)
elif op == "?":
break
| Traceback (most recent call last):
File "/tmp/tmptpzpxuhn/tmpnpbm1b7v.py", line 3, in <module>
a, op, b = (str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s060984908 | p02401 | u450020188 | 1503639200 | Python | Python3 | py | Runtime Error | 0 | 0 | 282 |
while True:
a, op, b = (str, input().split())
a = int(a)
b = int(b)
if op == "+":
print(a +b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a // b)
elif op == "?":
break
| Traceback (most recent call last):
File "/tmp/tmp0w85nmv7/tmp3wfg8gs0.py", line 3, in <module>
a, op, b = (str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s078471010 | p02401 | u450020188 | 1503639344 | Python | Python3 | py | Runtime Error | 0 | 0 | 280 | while True:
a, op, b = (str, input().split())
a = int(a)
b = int(b)
if op == "+":
print(a +b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / b)
elif op == "?":
break
| Traceback (most recent call last):
File "/tmp/tmp57pvd_ha/tmpct8iad6t.py", line 2, in <module>
a, op, b = (str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s349311881 | p02401 | u617778316 | 1503646133 | Python | Python | py | Runtime Error | 0 | 0 | 224 | while True:
a,op,b=map(str,raw_input().split())
a=int(a)
b=int(b)
if op=='+':
print a+b
elif op=='?':
break
elif op=='-':
print a-b
elif op=='/':
print a//b
elif op=='*':
ptint a*b
| File "/tmp/tmpr035dvr7/tmpykmt3gai.py", line 7
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s828129346 | p02401 | u617778316 | 1503646145 | Python | Python | py | Runtime Error | 0 | 0 | 223 | while True:
a,op,b=map(str,raw_input().split())
a=int(a)
b=int(b)
if op=='+':
print a+b
elif op=='?':
break
elif op=='-':
print a-b
elif op=='/':
print a/b
elif op=='*':
ptint a*b
| File "/tmp/tmpl1iz26w7/tmpwtn4fwql.py", line 7
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s986652054 | p02401 | u628840297 | 1503646189 | Python | Python | py | Runtime Error | 0 | 0 | 286 | x = raw_input().split()
a = x[0]
op = x[1]
b = x[2]
a, op, b = map(str,raw_input().split()
a = int(a)
b = int(b)
while True:
if op == "+":
print a+b
elif op == "-"
print a-b
elif op == "*"
print a*b
elif op == "/"
print a/b
if op = ?:
break | File "/tmp/tmpg8sltoii/tmpmzj_4bly.py", line 6
a, op, b = map(str,raw_input().split()
^
SyntaxError: '(' was never closed
| |
s810452543 | p02401 | u628840297 | 1503646241 | Python | Python | py | Runtime Error | 0 | 0 | 284 | x = raw_input().split()
a = x[0]
op = x[1]
b = x[2]
a, op, b = map(str,raw_input().split()
a = int(a)
b = int(b)
while True:
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
else:
break | File "/tmp/tmp0igbge22/tmp4uk804gh.py", line 6
a, op, b = map(str,raw_input().split()
^
SyntaxError: '(' was never closed
| |
s331687747 | p02401 | u628840297 | 1503646338 | Python | Python | py | Runtime Error | 0 | 0 | 284 | x = raw_input().split()
a = x[0]
op = x[1]
b = x[2]
a, op, b = map(str,raw_input().split()
a = int(a)
b = int(b)
while True:
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
else:
break | File "/tmp/tmpnz34d5bm/tmpliwrl4j4.py", line 6
a, op, b = map(str,raw_input().split()
^
SyntaxError: '(' was never closed
| |
s984780576 | p02401 | u544943822 | 1503646375 | Python | Python | py | Runtime Error | 0 | 0 | 241 | while True:
a, op, b = map(str, raw_input().split())
a = int(a)
b = int(b)
if op =='+':
print a+b
elif op == '-':
print a-b
elif op == '*':
print a*b
elif op == '/':
print a/b
elif op == '?'???
???break
| File "/tmp/tmp_kkpz66w/tmpr4t3frdc.py", line 7
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s035416287 | p02401 | u628840297 | 1503646710 | Python | Python | py | Runtime Error | 0 | 0 | 241 | x, op, y = map(str,raw_input().split()
a = int(x)
b = int(y)
while True:
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
elif op == "?":
break | File "/tmp/tmppg7l_3ss/tmp8ligbjjv.py", line 1
x, op, y = map(str,raw_input().split()
^
SyntaxError: '(' was never closed
| |
s115754219 | p02401 | u544943822 | 1503746623 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a, op, b = map(int. raw_input().split())
if a + b:
print(a+b)
elif a - b:
print(a-b)
elif a * b:
print(a*b)
elif a / b:
print(a/b)
elif a ? b:
break
| File "/tmp/tmp4ubicqkn/tmp6sjrgy4t.py", line 11
elif a ? b:
^
SyntaxError: invalid syntax
| |
s405459453 | p02401 | u544943822 | 1503747412 | Python | Python | py | Runtime Error | 0 | 0 | 206 | while True:
a, op, b = map(int. raw_input().split())
if op == +:
print(a + b)
elif op == -:
print(a - b)
elif op == *:
print(a * b)
elif op == /:
print(a // b)
else:
break
| File "/tmp/tmpl_vhp03k/tmpb4f6kvum.py", line 3
if op == +:
^
SyntaxError: invalid syntax
| |
s202761529 | p02401 | u544943822 | 1503747774 | Python | Python | py | Runtime Error | 0 | 0 | 214 | while True:
a, op, b = map(int. raw_input().split())
if op == +:
print(a + b)
elif op == -:
print(a - b)
elif op == *:
print(a * b)
elif op == /:
print(a // b)
else op == ?:
break
| File "/tmp/tmpskj30d5f/tmpbziybzr1.py", line 3
if op == +:
^
SyntaxError: invalid syntax
| |
s540692101 | p02401 | u544943822 | 1503748158 | Python | Python | py | Runtime Error | 0 | 0 | 212 | while True:
a, op, b = map(int. raw_input().split())
if op == +:
print(a + b)
elif op == -:
print(a - b)
elif op == *:
print(a * b)
elif op == /:
print(a // b)
elif op == '?':
break | File "/tmp/tmp0i81mghr/tmplrbkrzl4.py", line 3
if op == +:
^
SyntaxError: invalid syntax
| |
s081761980 | p02401 | u544943822 | 1503749562 | Python | Python | py | Runtime Error | 0 | 0 | 217 | while True:
a, op, b = map(int. raw_input().split())
if op == '?':
break
elif op == -:
print(a - b)
elif op == *:
print(a * b)
elif op == /:
print(a // b)
elif op == +:
print(a + b)
| File "/tmp/tmpcrm62y7m/tmpn_57p5ob.py", line 5
elif op == -:
^
SyntaxError: invalid syntax
| |
s188252358 | p02401 | u544943822 | 1503749924 | Python | Python | py | Runtime Error | 0 | 0 | 236 | while True:
a,op,b=input().split()
if op=='?': break
elif op=='+': print( int(a) + int(b) )
elif op=='-': print( int(a) - int(b) )
elif op=='*': print( int(a) * int(b) )
elif op=='/': print( int(a) // int(b) ) | Traceback (most recent call last):
File "/tmp/tmppg9l21vi/tmpy_htk1tf.py", line 2, in <module>
a,op,b=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s723506291 | p02401 | u544943822 | 1503750980 | Python | Python | py | Runtime Error | 0 | 0 | 218 | a, op, b = map(int. raw_input().split())
while True:
if op == '?' : break
elif op == '-' : print(a - b)
elif op == '*' : print(a * b)
elif op == '/' : print(a // b)
elif op == '+' : print(a + b)
| Traceback (most recent call last):
File "/tmp/tmpk4skdj8e/tmpa5wkj1vz.py", line 1, in <module>
a, op, b = map(int. raw_input().split())
^^^^^^^^^^^^^^
AttributeError: type object 'int' has no attribute 'raw_input'
| |
s738270022 | p02401 | u362494298 | 1505216789 | Python | Python3 | py | Runtime Error | 0 | 0 | 88 | while True:
if o==?:break
a,o,b=map(input().split())
int(a,b)
print(aob) | File "/tmp/tmptv4_5twg/tmpd8737vyd.py", line 2
if o==?:break
^
SyntaxError: invalid syntax
| |
s454124319 | p02401 | u362494298 | 1505217215 | Python | Python3 | py | Runtime Error | 0 | 0 | 121 | while True:
a,o,b=map(input().split())
int(a,b)
if o==?:break
else:
if o==/:o=//
print(a,o,b) | File "/tmp/tmp4hfpk4oi/tmpwuu6cger.py", line 4
if o==?:break
^
SyntaxError: invalid syntax
| |
s331085532 | p02401 | u362494298 | 1505218237 | Python | Python3 | py | Runtime Error | 0 | 0 | 80 | while True:
a=input()
if '?' in a:break
if '/' in a:/=//
eval(a) | File "/tmp/tmpcn2sv350/tmp6hpdvouv.py", line 4
if '/' in a:/=//
^^
SyntaxError: invalid syntax
| |
s658737784 | p02401 | u186282999 | 1506146238 | Python | Python3 | py | Runtime Error | 0 | 0 | 585 |
my_value_list = []
while True:
try:
my_value_list.append(input().split())
except EOFError:
break
for i in my_value_list:
if my_value_list[i][2] == "+":
print(int(my_value_list[i][]) + int(my_value_list[i][2]))
elif my_value_list[i][2] == "-":
print(int(my_value_list[i]... | File "/tmp/tmpw7dk2_9x/tmpauzawjb3.py", line 12
print(int(my_value_list[i][]) + int(my_value_list[i][2]))
^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s380217240 | p02401 | u664228906 | 1506388236 | Python | Python3 | py | Runtime Error | 0 | 0 | 212 | x, op, y = map(string, input().split())
while not (x == 0 and y == 0 and op == "?") :
if op == "+" :
print(x + y)
elif op == "-":
print(x - y)
elif op == "*":
print(x * y)
elif op == "/":
print(x / y) | Traceback (most recent call last):
File "/tmp/tmpwdh38yvt/tmpaz55pson.py", line 1, in <module>
x, op, y = map(string, input().split())
^^^^^^
NameError: name 'string' is not defined
| |
s073169460 | p02401 | u664228906 | 1506388268 | Python | Python3 | py | Runtime Error | 0 | 0 | 234 | x, op, y = map(string, input().split())
x = int(x)
y = int(y)
while not (x == 0 and y == 0 and op == "?") :
if op == "+" :
print(x + y)
elif op == "-":
print(x - y)
elif op == "*":
print(x * y)
elif op == "/":
print(x / y) | Traceback (most recent call last):
File "/tmp/tmphmhr2sk0/tmpwsvixhwb.py", line 1, in <module>
x, op, y = map(string, input().split())
^^^^^^
NameError: name 'string' is not defined
| |
s964576748 | p02401 | u664228906 | 1506388429 | Python | Python3 | py | Runtime Error | 0 | 0 | 251 | x, op, y = input().split()
x = int(x)
y = int(y)
while not (x == 0 and y == 0 and op == "?") :
if op == "+" :
print(x + y)
elif op == "-":
print(x - y)
elif op == "*":
print(x * y)
elif op == "/":
print(x // y)
x, op, y = input().split() | Traceback (most recent call last):
File "/tmp/tmp1u43joar/tmpwwr_szjf.py", line 1, in <module>
x, op, y = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s314427415 | p02401 | u664228906 | 1506388477 | Python | Python3 | py | Runtime Error | 30 | 7652 | 274 | x, op, y = input().split()
x = int(x)
y = int(y)
while not (x == 0 and y == 0 and op == "?") :
if op == "+" :
print(x + y)
elif op == "-":
print(x - y)
elif op == "*":
print(x * y)
elif op == "/":
print(x // y)
x, op, y = input().split()
x = int(x)
y = int(y) | Traceback (most recent call last):
File "/tmp/tmp2_0cmhov/tmpytqhlelq.py", line 1, in <module>
x, op, y = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s671675978 | p02401 | u043968625 | 1509456923 | Python | Python3 | py | Runtime Error | 0 | 0 | 289 |
flag =0
while flag==0:
a,b,c=[ i for i in input().split()])
if b=="?":
flag=1
break
elif b=="+":
n=int(a)+int(c)
elif b=="-":
n=int(a)-int(c)
elif b=="*":
n=int(a)*int(c)
elif b=="/":
n=int(a)/int(c)
print(int(b) | File "/tmp/tmpf7ugslf5/tmp4vifsf17.py", line 4
a,b,c=[ i for i in input().split()])
^
SyntaxError: unmatched ')'
| |
s082060699 | p02401 | u846136461 | 1509524505 | Python | Python | py | Runtime Error | 0 | 0 | 236 | data = raw_input().split(" ")
a = int(data[0])
op = data[1]
b = int(data[2])
while True:
if op = "?":
break
elif op == "+":
ans = a + b
elif op == "-":
ans = a - b
elif op == "*":
ans = a * b
else:
ans = a / b
print ans | File "/tmp/tmpc_2t2m4l/tmp3p4_z771.py", line 7
if op = "?":
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s777063857 | p02401 | u846136461 | 1509524618 | Python | Python | py | Runtime Error | 0 | 0 | 241 | while True:
data = raw_input().split(" ")
a = int(data[0])
op = data[1]
b = int(data[2])
if op = "?":
break
elif op == "+":
ans = a + b
elif op == "-":
ans = a - b
elif op == "*":
ans = a * b
else:
ans = a / b
print ans | File "/tmp/tmp65zo5rv9/tmpa5uje9om.py", line 7
if op = "?":
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s541793805 | p02401 | u776758454 | 1510065147 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | While True:
a, op, b = input().split()
a,b = int(a), int(b)
op_dict = {'+': (lambda x,y: x + y),
'-': (lambda x,y: x - y),
'*': (lambda x,y: x * y),
'/': (lambda x,y: x // y),
'?': '?'}
func = op_dict[op]
if func != '?': break
print('%... | File "/tmp/tmpf9s5uc8q/tmp9kseqlgy.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s533502863 | p02401 | u776758454 | 1510065192 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | While True:
a, op, b = input().split()
a,b = int(a), int(b)
op_dict = {'+': (lambda x,y: x + y),
'-': (lambda x,y: x - y),
'*': (lambda x,y: x * y),
'/': (lambda x,y: x // y),
'?': '?'}
func = op_dict[op]
if func == '?': break
print('%... | File "/tmp/tmpwb7xxqdf/tmp1pwfgjxq.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s066399624 | p02401 | u725391514 | 1510711617 | Python | Python3 | py | Runtime Error | 0 | 0 | 238 | while True:
a, op, b=map(int, input().split())
if op=='+':
result=a+b
if op=='-':
result=a-b
if op=='*':
result=a*b
if op=='/':
result=a/b
if op=='?':
break
print(result) | Traceback (most recent call last):
File "/tmp/tmpo4lv04rb/tmph1ged7dk.py", line 2, in <module>
a, op, b=map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s349758046 | p02401 | u298999032 | 1511162124 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | while True:
a,op,b=input().split()
a,b=map(int,(a,b))
if op=='?':
None
elif op=='+':
print(str(int(a+b)))
elif op=='-':
print(str(int(a-b)))
elif op=='*':
print(str(int(a*b)))
else:
print(str(int(a//b))) | Traceback (most recent call last):
File "/tmp/tmp9i95j9ht/tmpqibcndph.py", line 2, in <module>
a,op,b=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s558891102 | p02401 | u239524997 | 1511224545 | Python | Python3 | py | Runtime Error | 0 | 0 | 258 | a_op_b = input()
a_op_b_2 = a_op_b.split()
a = int(a_op_b_2[0])
b = int(a_op_b_2[2])
op = a_op_b_2[1]
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a / b)
elif op == "?":
break | File "/tmp/tmptdejg1v8/tmpfsijkcnc.py", line 16
break
^^^^^
SyntaxError: 'break' outside loop
| |
s737898835 | p02401 | u744506422 | 1511866433 | Python | Python3 | py | Runtime Error | 20 | 5600 | 419 | def calc(s):
t=s.split()
a=int(t[0])
b=int(t[2])
op=t[1]
if op=="+":
return ("{0}".format(a+b))
if op == "-":
return ("{0}".format(a - b))
if op == "*":
return ("{0}".format(a * b))
if op == "/":
return ("{0}".format(a // b))
w="yjsnpi"
a=[]
while(w!="0 ? ... | Traceback (most recent call last):
File "/tmp/tmpurzvpvcg/tmpvllh1_a3.py", line 17, in <module>
w=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s373036344 | p02401 | u744506422 | 1511866533 | Python | Python3 | py | Runtime Error | 20 | 5596 | 428 | def calc(s):
t=s.split()
a=int(t[0])
b=int(t[2])
op=t[1]
if op=="+":
return ("{0}".format(a+b))
if op == "-":
return ("{0}".format(a - b))
if op == "*":
return ("{0}".format(a * b))
if op == "/":
return ("{0}".format(a // b))
w="yj s npi"
a=[]
while(w.spli... | Traceback (most recent call last):
File "/tmp/tmpo51s4evm/tmp5a_ti98a.py", line 17, in <module>
w=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s927147667 | p02401 | u744506422 | 1511866578 | Python | Python3 | py | Runtime Error | 20 | 5596 | 428 | def calc(s):
t=s.split()
a=int(t[0])
b=int(t[2])
op=t[1]
if op=="+":
return ("{0}".format(a+b))
if op == "-":
return ("{0}".format(a - b))
if op == "*":
return ("{0}".format(a * b))
if op == "/":
return ("{0}".format(a // b))
w="yj s npi"
a=[]
while(w.spli... | Traceback (most recent call last):
File "/tmp/tmp90un8hl7/tmpqvwl_ytw.py", line 17, in <module>
w=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s712722158 | p02401 | u150984829 | 1513067334 | Python | Python3 | py | Runtime Error | 0 | 0 | 109 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
b=eval(s.split().join())
print(b) | Traceback (most recent call last):
File "/tmp/tmpe58q3w0u/tmp66vma3l6.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s038553533 | p02401 | u150984829 | 1513067489 | Python | Python3 | py | Runtime Error | 0 | 0 | 109 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
b=al(''.join(s.split()))
print(b) | Traceback (most recent call last):
File "/tmp/tmp6kguk4h4/tmphhexi_69.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s848668781 | p02401 | u150984829 | 1513067769 | Python | Python3 | py | Runtime Error | 0 | 0 | 158 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
t=s.split()
if t[1]="/":
print(t[0]//[1])
else:
b=eval(''.join(t))
print(b) | File "/tmp/tmpd_ma63mb/tmptqzx6n10.py", line 8
if t[1]="/":
^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s074961833 | p02401 | u150984829 | 1513067786 | Python | Python3 | py | Runtime Error | 30 | 5564 | 159 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
t=s.split()
if t[1]=="/":
print(t[0]//[1])
else:
b=eval(''.join(t))
print(b) | Traceback (most recent call last):
File "/tmp/tmpo_nzkman/tmp9bveulzv.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s243643680 | p02401 | u150984829 | 1513067812 | Python | Python3 | py | Runtime Error | 20 | 5568 | 154 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
t=s.split()
if t[1]=="/":
print(t[0]//t[1])
else:
print(eval(''.join(t))) | Traceback (most recent call last):
File "/tmp/tmp03ijlmf3/tmpcunmsnjk.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s564040914 | p02401 | u150984829 | 1513067829 | Python | Python3 | py | Runtime Error | 20 | 5568 | 154 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
t=s.split()
if t[1]=="/":
print(t[0]//t[2])
else:
print(eval(''.join(t))) | Traceback (most recent call last):
File "/tmp/tmpm_w8f7c8/tmpacmiaiw7.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s053028552 | p02401 | u150984829 | 1513067884 | Python | Python3 | py | Runtime Error | 20 | 5572 | 157 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
t=s.split(' ')
if t[1]=='/':
print(t[0]//t[2])
else:
print(eval(''.join(t))) | Traceback (most recent call last):
File "/tmp/tmpfgyfcrup/tmp0upm613l.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s805941213 | p02401 | u150984829 | 1513067923 | Python | Python3 | py | Runtime Error | 20 | 5568 | 160 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
t=s.split()
if t[1]=='/':
print(t[0]//t[2])
else:
b=eval(''.join(t))
print(b) | Traceback (most recent call last):
File "/tmp/tmp_cl7mffv/tmpm0kjc64b.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s324020587 | p02401 | u150984829 | 1513067992 | Python | Python3 | py | Runtime Error | 20 | 5600 | 170 | a=[]
while True:
n=input()
if n=='0 ? 0':break
a.append(n)
for s in a:
t=s.split()
if t[1]=='/':
print(int(t[0])//int(t[2]))
else:
b=eval(''.join(t))
print(b) | Traceback (most recent call last):
File "/tmp/tmpzxwxzxld/tmpkp9ewjsq.py", line 3, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s940189932 | p02401 | u150984829 | 1513068136 | Python | Python3 | py | Runtime Error | 0 | 0 | 160 | a=[]
while True:
n=input()
if n.find('?')>0:break
a.append(n)
for s in a:
t=s.split()
if t[1]=='/':print(int(t[0])//int(t[2]))
else:print(eval(''.join(t)) | File "/tmp/tmpwsfj3jo2/tmpb0viu167.py", line 9
else:print(eval(''.join(t))
^
SyntaxError: '(' was never closed
| |
s218781862 | p02401 | u017523606 | 1513323220 | Python | Python3 | py | Runtime Error | 20 | 5600 | 337 | while True:
a,op,b = map(str,input().split())
a = int(a)
b = int(b)
if a == 0 and b == 0 and op == '?':
break
if op == '+':
print('{}'.format(a+b))
elif op == '-':
print('{}'.format(a-b))
elif op == '*':
print('{}'.format(a*b))
else :print('{}'.f... | Traceback (most recent call last):
File "/tmp/tmph7yqnfdw/tmp0ymmno1b.py", line 2, in <module>
a,op,b = map(str,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s657896891 | p02401 | u423320231 | 1513436682 | Python | Python3 | py | Runtime Error | 20 | 5596 | 225 | x,b,z = input().split()
a=int(x)
c=int(z)
while b!="?":
if b=="+":
print(a+c)
elif b=="-":
print(a-c)
elif b=="*":
print(a*c)
elif b=="/":
print(a/c)
a,b,c = input().split() | Traceback (most recent call last):
File "/tmp/tmp82cnictd/tmpw62b3nhl.py", line 1, in <module>
x,b,z = input().split()
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.