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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s967092449 | p02401 | u423320231 | 1513436908 | Python | Python3 | py | Runtime Error | 20 | 5592 | 230 | 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(int(a/c))
a,b,c = input().split() | Traceback (most recent call last):
File "/tmp/tmp9zn9tgzv/tmp0_zi53m7.py", line 1, in <module>
x,b,z = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s533790833 | p02401 | u423320231 | 1513437353 | Python | Python3 | py | Runtime Error | 20 | 5592 | 240 | x,b,z = input().split()
a=int(x)
c=int(z)
while b!="?":
if b=="+":
print(a+c)
elif b=="-":
print(int(a)-int(c))
elif b=="*":
print(a*c)
elif b=="/":
print(int(a/c))
a,b,c = input().split() | Traceback (most recent call last):
File "/tmp/tmp57ivwr7t/tmpx0_4w783.py", line 1, in <module>
x,b,z = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s925207467 | p02401 | u146752763 | 1514534907 | Python | Python | py | Runtime Error | 10 | 4652 | 381 | # coding:utf-8
while True:
line = raw_input().split()
a = int(line[0])
op = line[1]
b = int(line[2])
answer = 0
if op == '+':
answer = a + b
elif op == '-':
answer = a - b
elif op == '*':
answer = a * b
elif op == '/':
answer = a / b
elif op == '?'... | File "/tmp/tmpj6brmr0q/tmpd9b822mj.py", line 18
print "%d" % answer
^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s642019023 | p02401 | u365686736 | 1514774808 | Python | Python3 | py | Runtime Error | 0 | 0 | 69 | while True:s = int(input())
if '?' in s:break
print(eval(s))
| File "/tmp/tmpmefzn5u8/tmp40x0w7z8.py", line 2
if '?' in s:break
IndentationError: unexpected indent
| |
s167657584 | p02401 | u009288816 | 1515244428 | Python | Python | py | Runtime Error | 10 | 4668 | 386 | import sys
l = []
for input in sys.stdin:
l.append(input.split())
for i in range(0,len(l)):
if(l[i][1] == '+'):
print int(l[i][0])+int(l[i][2])
elif(l[i][1] == '-'):
print int(l[i][0])-int(l[i][2])
elif(l[i][1] == '*'):
print int(l[i][0])*int(l[i][2])
elif(l[i][1] == '/'):
... | File "/tmp/tmpnq0944kl/tmp9tzpruxy.py", line 8
print int(l[i][0])+int(l[i][2])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s618942002 | p02401 | u009288816 | 1515244496 | Python | Python | py | Runtime Error | 10 | 4668 | 386 | import sys
l = []
for input in sys.stdin:
l.append(input.split())
for i in range(0,len(l)):
if(l[i][1] == '+'):
print int(l[i][0])+int(l[i][2])
elif(l[i][1] == '-'):
print int(l[i][0])-int(l[i][2])
elif(l[i][1] == '*'):
print int(l[i][0])*int(l[i][2])
elif(l[i][1] == '/'):
... | File "/tmp/tmp_fjyua5y/tmppmq0nmmv.py", line 8
print int(l[i][0])+int(l[i][2])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s355500622 | p02401 | u113501470 | 1515796747 | Python | Python3 | py | Runtime Error | 20 | 5612 | 306 | while True:
try:
line = input()
if line == '0 ? 0':
break
else:
a,op,b = line.split(' ')
if op == '+':
print(int(a)+int(b))
if op == '-':
print(int(a)-int(b))
if op == '*':
print(int(a)*int(b))
if op == '/':
print(int(float(a)/float(b)))
except EOFError:
break
| ||
s967116983 | p02401 | u770698847 | 1516189983 | Python | Python | py | Runtime Error | 0 | 0 | 297 | while(1):
x = raw_input()
x = x.split(" ")
if(x == "0 ? 0"):
break
a = int(x[0])
op = str(x[1])
b = int(x[2])
if(op == "+"):
print a+b
elif(op == "-"):
print a-b
elif(op == "*"):
print a*b
elif(op == "/"):
print a/b
| File "/tmp/tmphxfd471h/tmp59kyt9ha.py", line 10
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s955441731 | p02401 | u770698847 | 1516190477 | Python | Python | py | Runtime Error | 0 | 0 | 296 | while(1):
x = raw_input()
x = x.split(" ")
if(x == "0 ? 0"):
break
a = int(x[0])
op = str(x[1])
b = int(x[2])
if(op == "+"):
print a+b
elif(op == "-"):
print a-b
elif(op == "*"):
print a*b
elif(op == "/"):
print a/b
| File "/tmp/tmpu954zzh4/tmpwg34or4i.py", line 10
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s174329583 | p02401 | u536089081 | 1517525399 | Python | Python3 | py | Runtime Error | 20 | 5604 | 283 | from sys import stdin
for line in stdin:
if line == '0 ? 0':
break
tmp = line.strip('\n').split(' ')
a, b = int(tmp[0]), int(tmp[-1])
if tmp[1] == '+':
print(a + b)
elif tmp[1] == '-':
print(a - b)
elif tmp[1] == '*':
print(a * b)
elif tmp[1] == '/':
print(a // b)
| ||
s201316440 | p02401 | u640809202 | 1517730587 | Python | Python3 | py | Runtime Error | 0 | 0 | 63 | a, op, b = input().split()
ans = int(a) op int(b)
print(ans)
| File "/tmp/tmp27_u0gkg/tmp73t4do6d.py", line 3
ans = int(a) op int(b)
^^
SyntaxError: invalid syntax
| |
s016669698 | p02401 | u201482750 | 1517876633 | Python | Python3 | py | Runtime Error | 0 | 0 | 310 | while(True) :
instr=input()
if(instr=='?') break;
a,op,b=input().split()
a=int(a)
b=int(b)
if op=='+' :
print("{}".format(a+b))
elif op=='-' :
print("{}".format(a-b))
elif op=='*' :
print("{}".format(a*b))
else :
print("{}".format(int(a/b)))
| File "/tmp/tmpyxd4l908/tmp0r54z9j4.py", line 3
if(instr=='?') break;
^^^^^
SyntaxError: invalid syntax
| |
s556879101 | p02401 | u201482750 | 1517876666 | Python | Python3 | py | Runtime Error | 0 | 0 | 312 | while(True) :
instr=input()
if(instr=='?') : break;
a,op,b=input().split()
a=int(a)
b=int(b)
if op=='+' :
print("{}".format(a+b))
elif op=='-' :
print("{}".format(a-b))
elif op=='*' :
print("{}".format(a*b))
else :
print("{}".format(int(a/b)))
| Traceback (most recent call last):
File "/tmp/tmpzabdm32a/tmp15c6p3c6.py", line 2, in <module>
instr=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s535041095 | p02401 | u201482750 | 1517876760 | Python | Python3 | py | Runtime Error | 0 | 0 | 311 | while(True) :
instr=input()
if(instr=='?') : break
a,op,b=input().split()
a=int(a)
b=int(b)
if op=='+' :
print("{}".format(a+b))
elif op=='-' :
print("{}".format(a-b))
elif op=='*' :
print("{}".format(a*b))
else :
print("{}".format(int(a/b)))
| Traceback (most recent call last):
File "/tmp/tmpzm8dqo5z/tmpip6ar2be.py", line 2, in <module>
instr=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s232790697 | p02401 | u201482750 | 1517876902 | Python | Python3 | py | Runtime Error | 0 | 0 | 317 | while(True) :
instr=input()
if(instr=='?') :
break
a,op,b=instr.split()
a=int(a)
b=int(b)
if op=='+' :
print("{}".format(a+b))
elif op=='-' :
print("{}".format(a-b))
elif op=='*' :
print("{}".format(a*b))
else :
print("{}".format(int(a/b)))
| Traceback (most recent call last):
File "/tmp/tmpnbf3r4ql/tmpxj24qiib.py", line 2, in <module>
instr=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s943091752 | p02401 | u613627875 | 1518247626 | Python | Python3 | py | Runtime Error | 0 | 0 | 168 | while True:
a,op,b = input().split()
if op = '+':
print(a+b)
if op = '-':
print(a-b)
if op = '*':
print(a*b)
if op = '/':
print(a/b)
if op = '?':
break
| File "/tmp/tmpieuv577q/tmpt46r8jiy.py", line 3
if op = '+':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s794659104 | p02401 | u602702913 | 1519718304 | Python | Python3 | py | Runtime Error | 0 | 0 | 137 | a,op,b=input()
if op=='+':
print(int(a)+int(b))
if op=='-':
print(a-b)
elif op=='*':
print(a*b)
elif op=='/':
print(a/b)
| Traceback (most recent call last):
File "/tmp/tmp43t4ktmc/tmpqle55db4.py", line 1, in <module>
a,op,b=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s435480421 | p02401 | u602702913 | 1519718438 | Python | Python3 | py | Runtime Error | 0 | 0 | 191 | while True:
a,op,b=input()
if op=='+':
print(int(a)+int(b))
if op=='-':
print(a-b)
elif op=='*':
print(a*b)
elif op=='/':
print(a/b)
elif op=='?':
break
| Traceback (most recent call last):
File "/tmp/tmpvutn88cm/tmp4v299ce9.py", line 2, in <module>
a,op,b=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s878739555 | p02401 | u613534067 | 1520163206 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | while(True):
a, op, b = input().spilt
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/tmpd2tqpdsk/tmpnnsp3tem.py", line 2, in <module>
a, op, b = input().spilt
^^^^^^^
EOFError: EOF when reading a line
| |
s559420534 | p02401 | u613534067 | 1520163217 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | while(True):
a, op, b = input().spilt()
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/tmp61efa8cb/tmp9ehuat4c.py", line 2, in <module>
a, op, b = input().spilt()
^^^^^^^
EOFError: EOF when reading a line
| |
s740217942 | p02401 | u613534067 | 1520163229 | Python | Python3 | py | Runtime Error | 0 | 0 | 273 | while(True):
a, op, b = map(input().spilt())
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/tmpjoy8f1kr/tmpbhq_c86_.py", line 2, in <module>
a, op, b = map(input().spilt())
^^^^^^^
EOFError: EOF when reading a line
| |
s323987106 | p02401 | u017435045 | 1520818530 | Python | Python3 | py | Runtime Error | 0 | 0 | 352 | while True:
a,op,b=map(input().split())
a=int(a)
b=int(b)
op=str(op
if op=("+"):
print(a+b)
elif op=("-"):
print(a-b)
elif op=("*"):
print(a*b)
elif op=("/"):
print(a/b)
elif o... | File "/tmp/tmp0274jv38/tmpmi69dkec.py", line 5
op=str(op
^
SyntaxError: '(' was never closed
| |
s017674847 | p02401 | u017435045 | 1520818548 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | while True:
a,op,b=map(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=("?"):
... | File "/tmp/tmprlm3coxo/tmp9nlxf167.py", line 6
if op=("+"):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s082965288 | p02401 | u017435045 | 1520818594 | Python | Python3 | py | Runtime Error | 0 | 0 | 345 | while True:
a,op,b=map(str,input().split())
a=float(a)
b=float(b)
if op=("+"):
print(a+b)
elif op=("-"):
print(a-b)
elif op=("*"):
print(a*b)
elif op=("/"):
print(a/b)
elif op=("?")... | File "/tmp/tmp9jmspnou/tmp8dy1kcqd.py", line 6
if op=("+"):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s328178147 | p02401 | u017435045 | 1520818613 | Python | Python3 | py | Runtime Error | 0 | 0 | 345 | while True:
a,op,b=map(str,input().split())
a=float(a)
b=float(b)
if op=("+"):
print(a+b)
elif op=("-"):
print(a-b)
elif op=("*"):
print(a*b)
elif op=("/"):
print(a/b)
elif op=("?")... | File "/tmp/tmp_d5jkx08/tmpvt7zmygy.py", line 6
if op=("+"):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s312109759 | p02401 | u017435045 | 1520818621 | Python | Python3 | py | Runtime Error | 0 | 0 | 341 | while True:
a,op,b=map(input().split())
a=float(a)
b=float(b)
if op=("+"):
print(a+b)
elif op=("-"):
print(a-b)
elif op=("*"):
print(a*b)
elif op=("/"):
print(a/b)
elif op=("?"):
... | File "/tmp/tmpyjyv6ijg/tmpuq2toq1f.py", line 6
if op=("+"):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s646703056 | p02401 | u017435045 | 1520818751 | Python | Python3 | py | Runtime Error | 0 | 0 | 76 |
while 1:
s==input()
if '?' in s: break
print(int(eval(s)))
| Traceback (most recent call last):
File "/tmp/tmppd9lbkvr/tmpugwfvop1.py", line 4, in <module>
s==input()
^
NameError: name 's' is not defined
| |
s989370521 | p02401 | u017435045 | 1520818789 | Python | Python3 | py | Runtime Error | 0 | 0 | 400 | while True:
a,op,b=map(input().split())
a=int(a)
b=int(b)
op=str(op
if op==("+"):
print(a+b)
elif op==("-"):
print(a-b)
elif op==("*"):
print(a*b)
elif op==("/"):
print(a/b)
el... | File "/tmp/tmptsqqu6sl/tmp8bhiiut3.py", line 5
op=str(op
^
SyntaxError: '(' was never closed
| |
s855516864 | p02401 | u017435045 | 1520818811 | Python | Python3 | py | Runtime Error | 0 | 0 | 391 | while True:
a,op,b=map(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==("... | File "/tmp/tmpw52u1aql/tmp67refeyx.py", line 17
~
^
SyntaxError: invalid syntax
| |
s583143532 | p02401 | u017435045 | 1520818844 | Python | Python3 | py | Runtime Error | 0 | 0 | 391 | while True:
a,op,b=map(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==('... | File "/tmp/tmp49ec79er/tmp9fpco08w.py", line 17
~
^
SyntaxError: invalid syntax
| |
s630512499 | p02401 | u017435045 | 1520818857 | Python | Python3 | py | Runtime Error | 0 | 0 | 349 | while True:
a,op,b=map(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==('... | Traceback (most recent call last):
File "/tmp/tmpa9qle8nv/tmpl9gq_j8v.py", line 2, in <module>
a,op,b=map(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s503848577 | p02401 | u017435045 | 1520818874 | Python | Python3 | py | Runtime Error | 0 | 0 | 346 | while 1:
a,op,b=map(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==('?')... | Traceback (most recent call last):
File "/tmp/tmpce7zw08y/tmpe2l8z_u9.py", line 2, in <module>
a,op,b=map(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s773200021 | p02401 | u017435045 | 1520819084 | Python | Python3 | py | Runtime Error | 0 | 0 | 390 | while True:
a,op,b=input().split()
a=int(a)
b=int(b)
op=str(op
if op=("+"):
print(a+b)
elif op=("-"):
print(a-b)
elif op=("*"):
print(a*b)
elif op=("/"):
print(a/b)
elif op=("?... | File "/tmp/tmpxnjw0u_x/tmpokb360si.py", line 5
op=str(op
^
SyntaxError: '(' was never closed
| |
s428955271 | p02401 | u017435045 | 1520819125 | Python | Python3 | py | Runtime Error | 0 | 0 | 333 | 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)
elif op=("?"):
... | File "/tmp/tmp3_bir1wz/tmprdzv4oxf.py", line 6
if op=("+"):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s241780776 | p02401 | u017435045 | 1520819174 | Python | Python3 | py | Runtime Error | 0 | 0 | 333 | 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)
elif op=("?"):
... | File "/tmp/tmpa4jg8gra/tmpgue3gstf.py", line 6
if op=("+"):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s047444515 | p02401 | u017435045 | 1520819222 | Python | Python3 | py | Runtime Error | 0 | 0 | 333 | 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)
elif op=('?'):
... | File "/tmp/tmpsmw1xtap/tmphx7tpwmn.py", line 6
if op=('+'):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s124896907 | p02401 | u017435045 | 1520819280 | Python | Python3 | py | Runtime Error | 0 | 0 | 146 | while True:
a,op,b=input().split()
a=int(a)
b=int(b)
if '?' in op: break
print(eval(a+op+b))
| Traceback (most recent call last):
File "/tmp/tmp91bycloz/tmpbsyywzxm.py", line 2, in <module>
a,op,b=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s633010562 | p02401 | u017435045 | 1520819298 | Python | Python3 | py | Runtime Error | 0 | 0 | 151 | while True:
a,op,b=map(input().split())
a=int(a)
b=int(b)
if '?' in op: break
print(eval(a+op+b))
| Traceback (most recent call last):
File "/tmp/tmpaflsnq9a/tmpqdyhe7dm.py", line 2, in <module>
a,op,b=map(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s053040617 | p02401 | u017435045 | 1520819388 | Python | Python3 | py | Runtime Error | 0 | 0 | 373 | while True:
a,op,b=map(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=("?"):
... | File "/tmp/tmp4_6r1hy9/tmpvhav4v64.py", line 5
if op=("+"):
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s055908399 | p02401 | u646461156 | 1521004455 | Python | Python3 | py | Runtime Error | 0 | 0 | 63 | while True:
l=input()
if l[1]=='?':
break
print(eval(l))
| Traceback (most recent call last):
File "/tmp/tmpbao12_vm/tmpco69ypyw.py", line 2, in <module>
l=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s113561993 | p02401 | u002193969 | 1522529697 | Python | Python3 | py | Runtime Error | 0 | 0 | 256 | while True:
a, b, c = input().split()
if b == '?':
break
a = int(a)
c = int(c)
if b == '+':
print(a + b)
if b == '-':
print(a - b)
if b == '*':
print(a * b)
if b == '/':
print(a / b)
| Traceback (most recent call last):
File "/tmp/tmpo9w8aics/tmpt_nluc1u.py", line 2, in <module>
a, b, c = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s623486394 | p02401 | u621084859 | 1522631268 | Python | Python3 | py | Runtime Error | 0 | 0 | 188 | while Ture:
x=input().split()
a=int(x[0])
op=x[1]
b=int(x[2])
if op=="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*":
print(a*b)
elif op=="/":
print(a/b)
else:
break
| File "/tmp/tmpdaaiz7fe/tmpttcxkgz6.py", line 2
x=input().split()
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s253822663 | p02401 | u621084859 | 1522631364 | Python | Python3 | py | Runtime Error | 0 | 0 | 187 | while True:
x=input().split()
a=int(x[0])
op=x[1]
b=int(x[2])
if op=="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*":
print(a*b)
elif op=="/":
print(a/b)
else:
break
| File "/tmp/tmpa3uzqfbg/tmpg2_zg0_p.py", line 2
x=input().split()
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s364484102 | p02401 | u621084859 | 1522631467 | Python | Python3 | py | Runtime Error | 0 | 0 | 178 | x=input().split(" ")
a=int(x[0])
op=x[1]
b=int(x[2])
if op=="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*":
print(a*b)
elif op=="/":
print(a/b)
else:
break
| File "/tmp/tmp5bulzk3f/tmphh1nl54h.py", line 14
break
^^^^^
SyntaxError: 'break' outside loop
| |
s773571059 | p02401 | u621084859 | 1522632317 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | while True:
x=input().split()
a=int(x[0])
op=x[1]
b=int(x[2])
if op =="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*":
print(a*b)
eilf op=="/":
print(a/b)
else:
break
| File "/tmp/tmp8_j8ny1t/tmpwqmtc7f4.py", line 12
eilf op=="/":
^^
SyntaxError: invalid syntax
| |
s024580980 | p02401 | u621084859 | 1522633281 | Python | Python3 | py | Runtime Error | 0 | 0 | 275 | while True:
x=input().split()
a=int(x[0])
op=x[1]
b=int(x[2])
if op =="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*":
print(a*b)
elif op=="/":
print(a/b)
else:
break
| File "/tmp/tmpfy3v4dpk/tmps_5dnqvl.py", line 1
while True:
IndentationError: unexpected indent
| |
s607815904 | p02401 | u621084859 | 1522633361 | Python | Python3 | py | Runtime Error | 0 | 0 | 287 | while True:
x=input().split(" ")
a=int(x[0])
op=x[1]
b=int(x[2])
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/tmpez0fg7up/tmpsttxr8x9.py", line 1
while True:
IndentationError: unexpected indent
| |
s373360825 | p02401 | u621084859 | 1522633942 | Python | Python3 | py | Runtime Error | 0 | 0 | 297 | while True:
x=input().split(" ")
a=int(x[0])
op=x[1]
b=int(x[2])
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/tmpresqpedr/tmp5ipi2nk_.py", line 1
while True:
IndentationError: unexpected indent
| |
s293885249 | p02401 | u244493040 | 1523639233 | Python | Python3 | py | Runtime Error | 0 | 0 | 116 | a,o,b = input().split()
a,b = map(int,(a,b))
print(a+b if o=='+': else a-b if o=='-': else a*b if o=='*': else a/b)
| File "/tmp/tmpkazx8atk/tmptl9bxbr9.py", line 3
print(a+b if o=='+': else a-b if o=='-': else a*b if o=='*': else a/b)
^
SyntaxError: invalid syntax
| |
s129805323 | p02401 | u244493040 | 1523639760 | Python | Python3 | py | Runtime Error | 0 | 0 | 142 | while 1:
a,o,b = input().split()
if o=='?': break
a,b = int(a,b)
print(a+b if o=='+' else a-b if o=='-' else a*b if o=='*' else a//b)
| Traceback (most recent call last):
File "/tmp/tmptnozvas0/tmp8lg7mqcm.py", line 2, in <module>
a,o,b = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s873504640 | p02401 | u074747865 | 1524471116 | Python | Python3 | py | Runtime Error | 0 | 0 | 150 | a,op,b=input().split()
if op=+:
s=int(a)+int(b)
elif op=-:
s=int(a)-int(b)
elif op=*:
s=int(a)*int(b)
elif op=/:
s=int(a)//int(b)
else:
print(s)
| File "/tmp/tmp430pzj7g/tmp__n3ykpw.py", line 2
if op=+:
^
SyntaxError: invalid syntax
| |
s336473558 | p02401 | u074747865 | 1524471609 | Python | Python3 | py | Runtime Error | 0 | 0 | 191 | while True:
a,op,b=input().split()
if op ="+":
s=int(a)+int(b)
elif op "-":
s=int(a)-int(b)
elif op ="*":
s=int(a)*int(b)
elif op ="/":
s=int(a)//int(b)
else:
break
print(s)
| File "/tmp/tmpvm56o3fs/tmp_a56a_yk.py", line 3
if op ="+":
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s576054298 | p02401 | u074747865 | 1524471668 | Python | Python3 | py | Runtime Error | 0 | 0 | 188 | while 1:
a,op,b=input().split()
if op ="+":
s=int(a)+int(b)
elif op "-":
s=int(a)-int(b)
elif op ="*":
s=int(a)*int(b)
elif op ="/":
s=int(a)//int(b)
else:
break
print(s)
| File "/tmp/tmpbp36ghfv/tmpbxe6xnmv.py", line 3
if op ="+":
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s830996457 | p02401 | u074747865 | 1524472109 | Python | Python3 | py | Runtime Error | 0 | 0 | 52 | S=int(input())
print(S//3600,S//60%60,S%60,sep=":")
| Traceback (most recent call last):
File "/tmp/tmp3nbczd8k/tmpvlytcxdn.py", line 1, in <module>
S=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s491765158 | p02401 | u074747865 | 1524555688 | Python | Python3 | py | Runtime Error | 0 | 0 | 204 | while True:
a,op,b=map(str,input()split())
if op == "+":
s=int(a)+int(b)
elif op =="-":
s=int(a)-int(b)
elif op =="*":
s=int(a)*int(b)
elif op =="/":
s=int(a)//int(b)
else:
break
print(s)
| File "/tmp/tmpey2b1d8b/tmpoiiplgk9.py", line 2
a,op,b=map(str,input()split())
^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s681578089 | p02401 | u729486845 | 1524668790 | Python | Python3 | py | Runtime Error | 0 | 0 | 255 | ary = input().split()
if ary[1] = "+" :
ans = int(ary[0]) + int(ary[2])
if ary[1] = "-" :
ans = int(ary[0]) - int(ary[2])
if ary[1] = "*" :
ans = int(ary[0]) * int(ary[2])
if ary[1] = "/" :
ans = int(ary[0]) / int(ary[2])
print(ans)
| File "/tmp/tmpnrd5_yvt/tmpp4peqtj8.py", line 3
if ary[1] = "+" :
^^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s972642840 | p02401 | u729486845 | 1524668862 | Python | Python3 | py | Runtime Error | 0 | 0 | 345 | while True:
ary = input().split()
if ary[1] = "?" :
break
if ary[1] = "+" :
ans = int(ary[0]) + int(ary[2])
if ary[1] = "-" :
ans = int(ary[0]) - int(ary[2])
if ary[1] = "*" :
ans = int(ary[0]) * int(ary[2])
if ary[1] = "/" :
ans = int(ary[0]) / int(... | File "/tmp/tmpkyiiim65/tmpquiebgth.py", line 5
if ary[1] = "?" :
^^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s020126622 | p02401 | u876060624 | 1524747695 | Python | Python3 | py | Runtime Error | 0 | 0 | 186 | while 1:
a,b,c = map(str,input().split())
a,c =int(a),int(c)
if b =='+':
print(a+c)
elif b == '-' : print(a-c)
elif b == '*' : print(a*c)
elif b == '/' : print(a/c)
else : break
| File "/tmp/tmpn4aii6ei/tmp3ej5meuq.py", line 5
print(a+c)
TabError: inconsistent use of tabs and spaces in indentation
| |
s027886731 | p02401 | u592529978 | 1525325270 | Python | Python | py | Runtime Error | 0 | 0 | 80 | while True :
s= raw_input
a, op, b = s.split()
if op == ? : break
print eval(s)
| File "/tmp/tmpipmkg0qq/tmpoaojfxip.py", line 2
s= raw_input
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s991934246 | p02401 | u592529978 | 1525325407 | Python | Python | py | Runtime Error | 0 | 0 | 77 | while 1 :
s= raw_input
a, op, b = s.split()
if op == ? : break
print eval(s)
| File "/tmp/tmpp7ubuofb/tmpdlt3heqy.py", line 2
s= raw_input
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s729579831 | p02401 | u592529978 | 1525325609 | Python | Python | py | Runtime Error | 0 | 0 | 87 | while True :
s = raw.input()
a, op, b = s.split()
if op == ? : break
print eval(s)
| File "/tmp/tmpuxsrw368/tmpok3pf1dw.py", line 4
if op == ? : break
^
SyntaxError: invalid syntax
| |
s380335490 | p02401 | u592529978 | 1525326448 | Python | Python | py | Runtime Error | 0 | 0 | 104 | while True :
s= raw_input
a, op, b = s.split()
if op == ? : break
print eval(s)
| File "/tmp/tmppndckqmf/tmpcwon8ky1.py", line 4
if op == ? : break
^
SyntaxError: invalid syntax
| |
s340145099 | p02401 | u986478725 | 1525934469 | Python | Python3 | py | Runtime Error | 0 | 0 | 391 | def calcinput():
a = input().split()
a[0] = int(a[0])
a[2] = int(a[2])
def main():
while True:
a = calcinput()
if a[1] == "?": break
a = a[0]; op = a[1]; b = a[2]
if op == "+": print(a + b)
elif op == "-": print(a - b)
elif op == "*": print(a * b)
... | Traceback (most recent call last):
File "/tmp/tmp_5kfe3r0/tmpgbijcbnu.py", line 17, in <module>
main()
File "/tmp/tmp_5kfe3r0/tmpgbijcbnu.py", line 8, in main
a = calcinput()
^^^^^^^^^^^
File "/tmp/tmp_5kfe3r0/tmpgbijcbnu.py", line 2, in calcinput
a = input().split()
^^^^^^^
EOFError: ... | |
s214360022 | p02401 | u986478725 | 1525934713 | Python | Python3 | py | Runtime Error | 0 | 0 | 405 | def calcinput():
a = input().split()
a[0] = int(a[0])
a[2] = int(a[2])
return a
def main():
while True:
a = calcinput()
if a[1] == "?": break
a = a[0]; op = a[1]; b = a[2]
if op == "+": print(a + b)
elif op == "-": print(a - b)
elif op == "*": print... | Traceback (most recent call last):
File "/tmp/tmp9yg3xk02/tmpm76itw7l.py", line 18, in <module>
main()
File "/tmp/tmp9yg3xk02/tmpm76itw7l.py", line 9, in main
a = calcinput()
^^^^^^^^^^^
File "/tmp/tmp9yg3xk02/tmpm76itw7l.py", line 2, in calcinput
a = input().split()
^^^^^^^
EOFError: ... | |
s074483859 | p02401 | u136916346 | 1527150208 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | def calc(a):
if a[1]=="+": return int(a[0])+int(a[2])
if a[1]=="-": return int(a[0])-int(a[2])
if a[1]=="/": return int(a[0])/int(a[2])
res=[]
while 1:
b=raw_input().split()
if b[1]=="?":break
res.append([calc(b)])
[print(i) for i in res]
| Traceback (most recent call last):
File "/tmp/tmpvax5es4k/tmp0gr8xl48.py", line 8, in <module>
b=raw_input().split()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s294673403 | p02401 | u136916346 | 1527150341 | Python | Python3 | py | Runtime Error | 0 | 0 | 263 | def calc(a):
if a[1]=="+": return int(a[0])+int(a[2])
if a[1]=="-": return int(a[0])-int(a[2])
if a[1]=="/": return int(a[0])/int(a[2])
res=[]
while 1:
b=raw_input().split()
if b[1]=="?":break
res.extend([calc(b)])
[print(i) for i in res]
| Traceback (most recent call last):
File "/tmp/tmpwc510i_j/tmpqan2mmu7.py", line 7, in <module>
b=raw_input().split()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s812701975 | p02401 | u136916346 | 1527150361 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | def calc(a):
if a[1]=="+": return int(a[0])+int(a[2])
if a[1]=="-": return int(a[0])-int(a[2])
if a[1]=="/": return int(a[0])/int(a[2])
res=[]
while 1:
b=raw_input().split()
if b[1]=="?":break
res.extend([calc(b)])
for i in res:
print(i)
| Traceback (most recent call last):
File "/tmp/tmp3mj4kbwb/tmprla3_5_0.py", line 7, in <module>
b=raw_input().split()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s829831598 | p02401 | u237094818 | 1527434246 | Python | Python | py | Runtime Error | 0 | 0 | 306 | # -*- coding: utf-8
while True:
A = raw_input().split()
if A[1] == '?':
break
elif A[1] == '+':
print(int(A[0])+int(A[2])
elif A[1] == '-':
print(int(A[0])-int(A[2])
elif A[1] == '*':
print(int(A[0])*int(A[2])
elif A[1] == '/':
print(int(A[0])/int(A[2])
| File "/tmp/tmpy2axynt5/tmp_j5k65tt.py", line 9
elif A[1] == '-':
^^^^
SyntaxError: invalid syntax
| |
s850007851 | p02401 | u237094818 | 1527434328 | Python | Python | py | Runtime Error | 0 | 0 | 298 | # -*- coding: utf-8
while True:
A = raw_input().split()
if A[1] == '?':
break
if A[1] == '+':
print(int(A[0])+int(A[2])
if A[1] == '-':
print(int(A[0])-int(A[2])
if A[1] == '*':
print(int(A[0])*int(A[2])
if A[1] == '/':
print(int(A[0])/int(A[2])
| File "/tmp/tmpdfaj872d/tmpjudvpgro.py", line 9
if A[1] == '-':
^
SyntaxError: invalid syntax
| |
s736798883 | p02401 | u007066325 | 1527457425 | Python | Python3 | py | Runtime Error | 0 | 0 | 113 | sec 7404 KB 68 bytes
?
1
2
3
4
while 1:
s=input()
if '?' in s:break
print(int(eval(s)))
| File "/tmp/tmp56615zah/tmpfz5hdxgd.py", line 1
sec 7404 KB 68 bytes
IndentationError: unexpected indent
| |
s522038244 | p02401 | u990900604 | 1527823392 | Python | Python | py | Runtime Error | 10 | 4656 | 450 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
if __name__ == '__main__':
line = None
while 1:
line = raw_input()
if line == '0 ? 0':
break
a, op, b = line.split()
if op == '+':
print int(a) + int(b)
elif op == '-':
print int... | File "/tmp/tmp9crhtho4/tmpczl7_vln.py", line 14
print int(a) + int(b)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s507333349 | p02401 | u500257793 | 1527937383 | Python | Python3 | py | Runtime Error | 0 | 0 | 241 | a,op,b=map(str,input().split())
while op not '?':
if op=='+':
print(int(a)+int(b))
elif op=='-':
print(int(a)-int(b))
elif op=='*':
printf(int(a)*int(b))
elif op=='/':
printf(int(a)//int(b))
a,op,b=map(str,input().split())
| File "/tmp/tmpygvhz_en/tmpht7rim73.py", line 2
while op not '?':
^^^
SyntaxError: invalid syntax
| |
s418498310 | p02401 | u500257793 | 1527937436 | Python | Python3 | py | Runtime Error | 30 | 5592 | 238 | a,op,b=map(str,input().split())
while op!='?':
if op=='+':
print(int(a)+int(b))
elif op=='-':
print(int(a)-int(b))
elif op=='*':
printf(int(a)*int(b))
elif op=='/':
printf(int(a)//int(b))
a,op,b=map(str,input().split())
| Traceback (most recent call last):
File "/tmp/tmp66dzn646/tmpkt632sb7.py", line 1, in <module>
a,op,b=map(str,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s335280896 | p02401 | u500257793 | 1527937581 | Python | Python3 | py | Runtime Error | 20 | 5592 | 226 | while True:
a,op,b=map(str,input().split())
if op=='+':
print(int(a)+int(b))
elif op=='-':
print(int(a)-int(b))
elif op=='*':
printf(int(a)*int(b))
elif op=='/':
printf(int(a)//int(b))
elif op=='?':
break
| Traceback (most recent call last):
File "/tmp/tmpuuxv0rvk/tmptfxpsi53.py", line 2, in <module>
a,op,b=map(str,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s153116505 | p02401 | u327546577 | 1528137416 | Python | Python3 | py | Runtime Error | 0 | 0 | 322 | while True:
inp = input()
x, y = (int(inp[0]), int(inp[2]))
op = inp[1]
if op == '?':
break
else:
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/tmpi092k2o6/tmpjz5hz5vs.py", line 2, in <module>
inp = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s617973897 | p02401 | u597483031 | 1528475515 | Python | Python3 | py | Runtime Error | 0 | 0 | 226 | while True:
a,op,c=input().split()
if op=="+":
print(int(a)+int(c))
elif op=="-":
print(int(a)-int(c))
elif op=="*":
print(int(a)*int(c))
elif op=="/":
print(int(a)//int(c))
| Traceback (most recent call last):
File "/tmp/tmpz45a2gzs/tmpo08lvwx_.py", line 2, in <module>
a,op,c=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s684479137 | p02401 | u597483031 | 1528511743 | Python | Python3 | py | Runtime Error | 0 | 0 | 200 | a,b,c=input().split()
a=int(a)
c=int(c)
if b=="+":
print(a+c)
elif b=="-":
print(a-c)
elif b=="*":
print(a*c)
elif b=="/":
print(a//c)
| File "/tmp/tmprg5_eur9/tmpwgyss5bt.py", line 1
a,b,c=input().split()
IndentationError: unexpected indent
| |
s961641180 | p02401 | u801823223 | 1528622692 | Python | Python3 | py | Runtime Error | 0 | 0 | 2354 | import fractions
import re
mode = 'fractions'
symbols = {'$': 0, '+': 1, '-': 1, '*': 2, '/': 2, '%': 2, '^': 3}
operations = {
'+': (lambda a, b: a + b),
'-': (lambda a, b: a - b),
'*': (lambda a, b: a * b),
'/': (lambda a, b: a / b),
'%': (lambda a, b: a % b),
'^': (lambda a, b: a ** b)
}
d... | Traceback (most recent call last):
File "/tmp/tmpvw27orzw/tmpfv0tgo4r.py", line 90, in <module>
repl()
File "/tmp/tmpvw27orzw/tmpfv0tgo4r.py", line 80, in repl
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s677573434 | p02401 | u092736322 | 1528762457 | Python | Python3 | py | Runtime Error | 0 | 0 | 287 | while 1:
k=input()split()
k[0]=int(k[0])
k[2]=int(k[2])
if k[1]=="?":
break:
elif k[1]=="+":
print(k[0]+k[2])
elif k[1]=="-":
print(k[0]-k[2])
elif k[1]=="*":
print(k[0]*k[2])
elif k[1]=="/":
print(k[0]/k[2])
| File "/tmp/tmpbl_6bk45/tmp1c5fpyq9.py", line 2
k=input()split()
^^^^^
SyntaxError: invalid syntax
| |
s088299353 | p02401 | u726978687 | 1529858012 | Python | Python3 | py | Runtime Error | 20 | 5648 | 619 | import math
def solve(input_text):
for line in input_text:
op=line[1]
a=int(line[0])
b=int(line[2])
ans=0
if op=='+':
ans=a+b
if op=='-':
ans=a-b
if op=='*':
ans=a*b
if op == '/':
ans =math.float... | Traceback (most recent call last):
File "/tmp/tmpefhhhqkk/tmphsi746vb.py", line 34, in <module>
answer()
File "/tmp/tmpefhhhqkk/tmphsi746vb.py", line 25, in answer
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s519419484 | p02401 | u912237403 | 1371198347 | Python | Python | py | Runtime Error | 0 | 0 | 238 | import sys
for line in sys.stdin:
a,b,c = line.split()
a,c = int(a), int(c)
p = '+-*/?'.index(b)
if p = 0:: a += c
elif p == 1: a -= c
elif p == 2: a *= c
elif p == 3: a /= c
elif p == 4: break
print a | File "/tmp/tmpxopufd9p/tmpvekk8zo2.py", line 6
if p = 0:: a += c
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s872585541 | p02401 | u912237403 | 1371198397 | Python | Python | py | Runtime Error | 0 | 0 | 237 | import sys
for line in sys.stdin:
a,b,c = line.split()
a,c = int(a), int(c)
p = '+-*/?'.index(b)
if p = 0: a += c
elif p == 1: a -= c
elif p == 2: a *= c
elif p == 3: a /= c
elif p == 4: break
print a | File "/tmp/tmpi6kw9c_9/tmp7_jchal7.py", line 6
if p = 0: a += c
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s953322170 | p02401 | u912237403 | 1371212311 | Python | Python | py | Runtime Error | 0 | 0 | 222 | while True:
a, op, b = raw_input().split()
a = int(a)
b = int(b)
if op == '+': a += c
elif op == '-': a -= c
elif op == '*': a *= c
elif op == '/': a /= c
elif op == '?': break
print a | File "/tmp/tmpfwoz4s_p/tmpwbq3nlvw.py", line 11
print a
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s561455222 | p02401 | u865312527 | 1373733425 | Python | Python | py | Runtime Error | 10 | 4228 | 257 | while 1:
a,op,b=raw_input().split()
if(a==b=='0' and op=='?'): break
a,b=map(int,[a,b])
ans=0
if op=='+':
ans=a+b
elif op=='-':
ans=a-b
elif op=='*':
ans=a*b
elif op=='/':
ans=a/b
print ans | File "/tmp/tmp_avpsabx/tmpxpmpabd0.py", line 14
print ans
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s751897168 | p02401 | u351182591 | 1375203762 | Python | Python | py | Runtime Error | 0 | 0 | 425 | while 0 == 0:
i = map(str,raw_input().split())
i[0] = int(i[0])
i[2] = int(i[2])
if i[1] == "+":
print i[0]+i[2]
elif i[1] == "-":
print i[0]-i[2]
elif i[1] == "*":
print i[0]*i[2]
elif i[1] == "/":
p... | File "/tmp/tmplvnsqofv/tmp43zde97b.py", line 6
print i[0]+i[2]
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s861189992 | p02401 | u633068244 | 1393319369 | Python | Python | py | Runtime Error | 0 | 0 | 243 | while true:
a = input()
if a[1] == "?":
break
if a[1] == "+":
print a[0]+a[2]
elif a[1] == "-":
print a[0]-a[2]
elif a[1] == "*":
print a[0]*a[2]
elif a[1] == "/":
print a[0]/a[2] | File "/tmp/tmphadefiel/tmpv_gb6eyp.py", line 6
print a[0]+a[2]
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s315846743 | p02401 | u633068244 | 1393319476 | Python | Python | py | Runtime Error | 0 | 0 | 226 | while true:
a, op, b = raw_input().split
if op == "?":
break
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b | File "/tmp/tmpn_xv0i0l/tmp348auw9o.py", line 6
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s854991759 | p02401 | u633068244 | 1393319497 | Python | Python | py | Runtime Error | 0 | 0 | 226 | while True:
a, op, b = raw_input().split
if op == "?":
break
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b | File "/tmp/tmp4eyuiqh4/tmpkkbem7jt.py", line 6
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s820317690 | p02401 | u814387366 | 1402647795 | Python | Python | py | Runtime Error | 0 | 0 | 184 | while True:
a,op,b=raw_input().split()
if op=="?":break
if op=="+":print int(a)+int(b)
if op=="-":print int(a)-int(b)
if op=="*":print int(a)int(b)
if op=="/":print int(a)/int(b) | File "/tmp/tmp3q6ilzuy/tmps7r86bsh.py", line 4
if op=="+":print int(a)+int(b)
^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s631737920 | p02402 | u220308369 | 1531446922 | Python | Python | py | Runtime Error | 0 | 0 | 253 | n = int(input())
line = list(map(int, input().split()))
max = line[0]
min = line[0]
sum = line[0]
for i in range(1, n):
if max < line[i]:
max = line[i]
elif min > line[i]:
min = line[i]
sum += line[i]
print(min, max, sum)
| Traceback (most recent call last):
File "/tmp/tmpnyvt0ha6/tmp67iftvox.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s996440912 | p02402 | u324811972 | 1531481312 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | n = input()
n = int(n)
seq = input().split()
sumNum = 0
minNum = 1000000
maxNum = 0
for numT in sew:
num = int(numT)
if(num > maxNum):
maxNum = num
elif(num < minNum):
minNum = num
sumNum+=num
print(minNum,maxNum,sumNum)
| Traceback (most recent call last):
File "/tmp/tmpsv50v4ha/tmpbyivryjj.py", line 1, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s553674054 | p02402 | u886729200 | 1534839296 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | n = int(input())
num = [int(i) for i in input().split()]
print("{} {} {}".format(mix(num),max(num),sum(num))
| File "/tmp/tmpzt1o7t4_/tmpzp_xueth.py", line 3
print("{} {} {}".format(mix(num),max(num),sum(num))
^
SyntaxError: '(' was never closed
| |
s289944475 | p02402 | u886729200 | 1534839336 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | n = int(input())
num = [int(i) for i in input().split()]
print("{} {} {}".format(mix(num),max(num),sum(num))
| File "/tmp/tmpohwc4ls2/tmpo3s3c915.py", line 3
print("{} {} {}".format(mix(num),max(num),sum(num))
^
SyntaxError: '(' was never closed
| |
s111571959 | p02402 | u336705996 | 1535088819 | Python | Python3 | py | Runtime Error | 0 | 0 | 218 | n = int(input())
min = 1000000; max = -1000000; sum = 0;
for i in range(n):
x = int(input())
sum += x
if min > x:
min = x
if max < x:
max = x
print('{0} {1} {2}'.format(min,max,sum))
| Traceback (most recent call last):
File "/tmp/tmpnl9kact9/tmpkw4k6s_x.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s293703390 | p02402 | u760378812 | 1540233472 | Python | Python3 | py | Runtime Error | 0 | 0 | 556 | #include <iostream>
#include <string>
#include <fstream>
#include <cmath>
#include <iomanip>
#include <ctime>
#include <cstdlib>
using namespace std;
int main() {
int n;
cin >> n;
int a;
cin >> a;
int max_n, min_n, sum;
max_n = a;
min_n = a;
sum = 0;
sum += a;
for (int i ... | File "/tmp/tmp21v19kqb/tmp3qish1_a.py", line 10
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s964306297 | p02402 | u277375424 | 1540286902 | Python | Python3 | py | Runtime Error | 0 | 0 | 119 | n = int(input())
table[n] = map(int,input().split())
print("{}{}{}".format(max(table[n],min(table[n],sum(table[n])))))
| Traceback (most recent call last):
File "/tmp/tmpxkkaphxp/tmpur1tp7px.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s975775240 | p02402 | u277375424 | 1540286924 | Python | Python3 | py | Runtime Error | 0 | 0 | 116 | n = int(input())
table = map(int,input().split())
print("{}{}{}".format(max(table[n],min(table[n],sum(table[n])))))
| Traceback (most recent call last):
File "/tmp/tmp5wov68qv/tmpdyxam2i1.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s021045176 | p02402 | u277375424 | 1540286973 | Python | Python3 | py | Runtime Error | 0 | 0 | 116 | n = int(input())
table = map(int,input().split())
print("{}{}{}".format(max(table[n],min(table[n],sum(table[n])))))
| Traceback (most recent call last):
File "/tmp/tmpq_mliz1d/tmpu479b8yf.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s152154095 | p02402 | u277375424 | 1540287017 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | n = int(input())
table = map(int,input().split())
print("{} {} {}".format(max(table[n],min(table[n],sum(table[n])))))
| Traceback (most recent call last):
File "/tmp/tmpz9t5up5m/tmpv4qkxi6c.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s969131540 | p02402 | u277375424 | 1540287070 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | n = int(input())
table = map(int,input().split())
print("{} {} {}".format(max(table[n]),min(table[n]),sum(table[n])))
| Traceback (most recent call last):
File "/tmp/tmp7v019sqa/tmpqiw1tlb3.py", line 1, in <module>
n = int(input())
^^^^^^^
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.