s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s960491276 | p02401 | u520674325 | 1559023972 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
if op == '?':
break
if op == '+':
ans = a + b
elif op == '-':
ans = a-b
elif op == '*':
ans = a*b
else op == '/':
ans = a/b
print(ans)
|
s716848207 | p02401 | u142359205 | 1559056007 | Python | Python3 | py | Runtime Error | 0 | 0 | 276 | while(true):
a, op, b = input().split()
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))
else:
break
|
s999328589 | p02401 | u015712946 | 1559525223 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | while True:
a,op,c = map(str, input().split())
a = int(a)
c = int(b)
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
|
s238885838 | p02401 | u015712946 | 1559525341 | Python | Python3 | py | Runtime Error | 0 | 0 | 226 | while True:
a,op,c = map(str, input().split())
a = int(a)
c = int()
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
|
s510602729 | p02401 | u015712946 | 1559525357 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while True:
a,op,c = map(str, input().split())
a = int(a)
c = int(c)
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
|
s199034057 | p02401 | u015712946 | 1559525385 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while True:
a,op,c = map(str, input().split())
a = int(a)
b = int(b)
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
|
s196700458 | p02401 | u408260374 | 1414671152 | Python | Python | py | Runtime Error | 0 | 0 | 220 |
while true:
a,op,b = raw_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)
else:
print int(a) / int(b)
|
s757870602 | p02401 | u408260374 | 1414671289 | Python | Python | py | Runtime Error | 0 | 0 | 219 |
while true:
a,op,b = raw_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)
else:
print int(a) / int(b) |
s971785949 | p02401 | u567380442 | 1419933543 | Python | Python3 | py | Runtime Error | 0 | 0 | 208 | import sys, operator
list = {'+':operator.add, '-':operator.sub, '*':operator.mul, '/':operator.div}
for line in sys.stdin:
a, op, b = line.split()
if op == '?': break
print(int(list[op](a, b))) |
s655215995 | p02401 | u813534019 | 1420764523 | Python | Python | py | Runtime Error | 10 | 4188 | 94 | while True:
_exp = raw_input()
if _exp == "0 ? 0":
break
print(eval(_exp)) |
s586808086 | p02401 | u193599711 | 1422410812 | Python | Python3 | py | Runtime Error | 0 | 0 | 214 | a op b = (str(i) for i in input().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(a) / int(b))
else:print(int(a) % int(b)) |
s531890653 | p02401 | u193599711 | 1422411190 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | a, op, b = (str(i) for i in input().split())
if op != '?':
if op == '+':print(int(a) + int(b))
if op == '-':print(int(a) - int(b))
if op == '*':print(int(a) * int(b))
if op == '/' and int(a) % int(b) == 0:print(int(a) // int(b))
else:print(int(a) % int(b))
else:
break |
s755178512 | p02401 | u297342993 | 1422414378 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | while True:
result = 0
i = input().split()
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '*':
result = int(i[0]) * int(i[2])
elif i[1] == '/':
result = int(i[0]) / int(i[2])
print(result) |
s669930054 | p02401 | u297342993 | 1422414491 | Python | Python3 | py | Runtime Error | 0 | 0 | 281 | while True:
result = 0
i = input().split()
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '*':
result = int(i[0]) * int(i[2])
elif i[1] == '/':
result = int(i[0]) / int(i[2])
print('{0}\n'.format(result)) |
s324699449 | p02401 | u823030818 | 1422414521 | Python | Python3 | py | Runtime Error | 0 | 0 | 371 | while True:
i = input().split()
result = 0
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '* ':
result = int(i[0]) * int(i[2])
elif i[1] = ' / ':
result = int(i[0]) / int(i[2])
else i[1] = ' ? ':
... |
s570870024 | p02401 | u297342993 | 1422414562 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | while True:
result = 0
i = input().split()
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '*':
result = int(i[0]) * int(i[2])
elif i[1] == '/':
result = int(i[0]) // int(i[2])
print(result) |
s219281222 | p02401 | u745846646 | 1422842596 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print() |
s683976057 | p02401 | u442346200 | 1422842637 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a // b) |
s388321310 | p02401 | u636711749 | 1422842698 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print() |
s154656193 | p02401 | u527848444 | 1422842849 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | While True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a / b) |
s136263574 | p02401 | u636711749 | 1422842862 | Python | Python3 | py | Runtime Error | 0 | 0 | 308 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print() |
s259999073 | p02401 | u745846646 | 1422842968 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a / b) |
s621218564 | p02401 | u636711749 | 1422843428 | Python | Python3 | py | Runtime Error | 0 | 0 | 338 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a,op,b)
elif op = '-':
print(a, op, b)
elif op = '*':
print(a, op, b)
elif op = '/':
... |
s548694309 | p02401 | u442346200 | 1422843556 | Python | Python3 | py | Runtime Error | 0 | 0 | 291 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a // b)
else:
break |
s563140558 | p02401 | u636711749 | 1422843645 | Python | Python3 | py | Runtime Error | 0 | 0 | 324 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(True)
elif op = '-':
print(True)
elif op = '*':
print(True)
elif op = '/':
print(T... |
s759492426 | p02401 | u636711749 | 1422843747 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
prin... |
s428314247 | p02401 | u636711749 | 1422844016 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
prin... |
s628330146 | p02401 | u636711749 | 1422844151 | Python | Python3 | py | Runtime Error | 0 | 0 | 329 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
prin... |
s084175656 | p02401 | u636711749 | 1422846036 | Python | Python3 | py | Runtime Error | 0 | 0 | 346 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
... |
s606685070 | p02401 | u636711749 | 1422846064 | Python | Python3 | py | Runtime Error | 0 | 0 | 325 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print()
... |
s083898831 | p02401 | u636711749 | 1422846350 | Python | Python3 | py | Runtime Error | 0 | 0 | 333 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
... |
s633441362 | p02401 | u636711749 | 1422846495 | Python | Python3 | py | Runtime Error | 0 | 0 | 401 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':... |
s778052303 | p02401 | u636711749 | 1422846529 | Python | Python3 | py | Runtime Error | 0 | 0 | 380 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
... |
s119398097 | p02401 | u636711749 | 1422846892 | Python | Python3 | py | Runtime Error | 0 | 0 | 380 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
... |
s663034270 | p02401 | u636711749 | 1423446632 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a // b) |
s360880439 | p02401 | u442346200 | 1424048110 | Python | Python3 | py | Runtime Error | 0 | 0 | 309 | from sys import stdin
while True:
(a, op, b) = stdin.readline().split(' ')
a = int(a)
b = int(b)
if op == "?":
break;
elif op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a // b) |
s293195275 | p02401 | u281873326 | 1427436298 | Python | Python | py | Runtime Error | 20 | 4220 | 250 | while True:
a=raw_input()
if a == "0 ? 0":
break
b=a.split()
for i,c in enumerate(b):
if i==0:
x=int(c)
elif i==1:
y=c
else:
z=int(c)
if y=='+':
w=x+z
elif y=='-':
w=x-z
elif y=='*':
w=x*z
elif y=='/':
w=x/z
print w |
s119785730 | p02401 | u281873326 | 1427436430 | Python | Python | py | Runtime Error | 20 | 4216 | 249 | while True:
a=raw_input()
if a == "0 ? 0":
break
b=a.split()
for i,c in enumerate(b):
if i==0:
x=int(c)
elif i==1:
y=c
else:
z=int(c)
if y=='+':
w=x+z
elif y=='-':
w=x-z
elif y=='*':
w=x*z
elif y=='/':
w=x/z
print w |
s738868905 | p02401 | u669360983 | 1430144278 | Python | Python | py | Runtime Error | 0 | 0 | 189 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
else:
print(a-c) |
s018656843 | p02401 | u669360983 | 1430144335 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
elif b=='-':
print(a-c) |
s737335157 | p02401 | u669360983 | 1430144428 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
elif b=='-':
print(a-c) |
s263659352 | p02401 | u669360983 | 1430144614 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
elif b=='-':
print(a-c) |
s938586240 | p02401 | u682755774 | 1431811964 | Python | Python | py | Runtime Error | 0 | 0 | 217 | #coding:UTF-8
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
else:
break |
s888102008 | p02401 | u682755774 | 1431812059 | Python | Python | py | Runtime Error | 0 | 0 | 270 | #coding:UTF-8
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: |
s866069256 | p02401 | u682755774 | 1431812251 | Python | Python | py | Runtime Error | 0 | 0 | 265 | #coding:UTF-8
a,op,b = map(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 |
s126797079 | p02401 | u682755774 | 1431812285 | Python | Python | py | Runtime Error | 0 | 0 | 260 | #coding:UTF-8
a,op,b = map(int,raw_input().split())
op = str(op)
while True:
if op == '+':
print a + b
elif op == '-':
print a - b
elif op == '*':
print a * b
elif op == '/':
print a / b
else:
break |
s185325520 | p02401 | u682755774 | 1431812790 | Python | Python | py | Runtime Error | 0 | 0 | 283 | #coding:UTF-8
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
else:
continue |
s741871187 | p02401 | u777299405 | 1434004003 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | while True:
a, op, b = map(str, raw_input().split())
if op == "?":
break
if op == "/":
op = "//"
print(eval(a + op + b)) |
s025456925 | p02401 | u777299405 | 1434004034 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | while True:
a, op, b = map(str, raw_input().split())
if op == "?":
break
if op == "/":
op = "//"
formula = a + op + b
print(eval(formula)) |
s647530861 | p02401 | u777299405 | 1434004489 | Python | Python3 | py | Runtime Error | 0 | 0 | 85 | while True:
s = input()
if '?' in data:
break
print(int(eval(s))) |
s035885193 | p02401 | u172616925 | 1435422888 | Python | Python | py | Runtime Error | 0 | 0 | 215 | def cal(a, op, b)
if op == '+':
a + b
elif op == '-':
a + b
elif op == '*':
a * b
elif op == '/':
a / b
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b)) |
s789340753 | p02401 | u172616925 | 1435422951 | Python | Python | py | Runtime Error | 0 | 0 | 258 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
elif op == '/':
r = a / b
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r |
s759974459 | p02401 | u172616925 | 1435422991 | Python | Python | py | Runtime Error | 0 | 0 | 260 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
elif op == '/':
r = a / b
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r |
s135017523 | p02401 | u172616925 | 1435423049 | Python | Python | py | Runtime Error | 0 | 0 | 263 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
else:
r = a / b
return r
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r |
s443901526 | p02401 | u172616925 | 1435423116 | Python | Python | py | Runtime Error | 0 | 0 | 261 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
else:
r = a / b
return r
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r |
s424704470 | p02401 | u609407244 | 1436077100 | Python | Python3 | py | Runtime Error | 30 | 6728 | 83 | while 1:
t = input()
if t == '0 ? 0':
break
print(int(eval(t))) |
s008935984 | p02401 | u609407244 | 1436077176 | Python | Python3 | py | Runtime Error | 30 | 6728 | 83 | while 1:
t = input()
if t == '0 ? 0':
break
print(int(eval(t))) |
s242981712 | p02401 | u713218261 | 1437959247 | Python | Python3 | py | Runtime Error | 0 | 0 | 382 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b)
~ ... |
s861323959 | p02401 | u713218261 | 1437959331 | Python | Python3 | py | Runtime Error | 0 | 0 | 386 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(int(a / b))
~ ... |
s704674946 | p02401 | u713218261 | 1437959600 | Python | Python3 | py | Runtime Error | 0 | 0 | 295 | while True:
(a, op, b) = input().split()
if op == '?':
break
a = int(a)
b = int(b)
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b)
~ |
s455334448 | p02401 | u389610071 | 1437959792 | Python | Python3 | py | Runtime Error | 0 | 0 | 362 | While True:
nums= input(),split()
a = int(nums[0])
op = nums[1]
b = int(nums[2])
if op == '?':
break
if op == '+':
i = a + b
print(i)
if op == '-':
i = a - b
print(i)
if op == '*':
i = a * b
print(i)
if op == '/':
i... |
s092607724 | p02401 | u389610071 | 1437959971 | Python | Python3 | py | Runtime Error | 0 | 0 | 367 | While True:
nums= input(),split()
a = int(nums[0])
op = int(nums[1])
b = int(nums[2])
if op == '?':
break
if op == '+':
i = a + b
print(i)
if op == '-':
i = a - b
print(i)
if op == '*':
i = a * b
print(i)
if op == '/':
... |
s568075338 | p02401 | u389610071 | 1437960105 | Python | Python3 | py | Runtime Error | 0 | 0 | 290 | While True:
nums= input(),split()
a = int(nums[0])
op = nums[1]
b = int(nums[2])
if op == '?':
break
if op == '+':
print(a + b)
if op == '-':
print(a - b)
if op == '*':
print(a * b)
if op == '/':
print(a // b) |
s174698211 | p02401 | u389610071 | 1437960168 | Python | Python3 | py | Runtime Error | 0 | 0 | 298 | While True:
nums= input().split()
a = int(nums[0])
op = nums[1]
b = int(nums[2])
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) |
s435405534 | p02401 | u389610071 | 1437960267 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | While True:
(a, op, b) = input().split()
int(a)
int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) |
s995679635 | p02401 | u389610071 | 1437960350 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | While True:
(a, op, b) = input().split()
a =int(a)
b =int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) |
s436275664 | p02401 | u447630054 | 1437961188 | Python | Python3 | py | Runtime Error | 0 | 0 | 431 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a+b)
elif op == '-':
print(a-b)
elif op == '*':
print(a*b)
... |
s273314616 | p02401 | u255164080 | 1439772701 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in 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) |
s686645924 | p02401 | u255164080 | 1439772820 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in 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) |
s743705327 | p02401 | u255164080 | 1439772988 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
else op == '/':
print(a // b) |
s041485934 | p02401 | u255164080 | 1439773008 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
else op == '/':
print(a // b) |
s579573250 | p02401 | u473077745 | 1439857748 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input()]
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) |
s330902109 | p02401 | u473077745 | 1439858289 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | while True:
(H, W) = [int(i) for i in input().split()]
if H == W == 0:
break
for a in range(H):
for b in range(w):
print('#', end='')
print()
print() |
s466575478 | p02401 | u782850731 | 1440939355 | Python | Python3 | py | Runtime Error | 30 | 7428 | 181 | (lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
iter(input, '0 ? 0'))))) |
s831652367 | p02401 | u782850731 | 1440939378 | Python | Python3 | py | Runtime Error | 20 | 7408 | 181 | (lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
iter(input, '0 ? 0'))))) |
s097709555 | p02401 | u782850731 | 1440939554 | Python | Python3 | py | Runtime Error | 0 | 0 | 280 | from itertools import takewhile
(lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
takewhile(lambda s: '?' not in s,
iter(input)))))) |
s165145281 | p02401 | u782850731 | 1440939688 | Python | Python3 | py | Runtime Error | 0 | 0 | 283 | from itertools import takewhile
(lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
takewhile(lambda s: '?' not in s,
iter(input, ''))))) |
s716321636 | p02401 | u180914582 | 1443514194 | Python | Python3 | py | Runtime Error | 0 | 0 | 124 | while True:
????????data = input()
????????if '?' in data:
????????????????break
????????print(eval(data.replace('/','//'))) |
s822893476 | p02401 | u529272062 | 1447079168 | Python | Python | py | Runtime Error | 10 | 6312 | 71 | while 1:
l=raw_input()
if l.find("?")==2:
break
print eval(l) |
s210868836 | p02401 | u982632052 | 1449240732 | Python | Python3 | py | Runtime Error | 40 | 7304 | 88 | while True:
s = input()
if (s == '0 ? 0'):
break
print(int(eval(s))) |
s435610048 | p02401 | u297949443 | 1449931402 | Python | Python | py | Runtime Error | 0 | 0 | 271 | import sys
for v in sys.stdin
a,op,b = v.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 |
s860879398 | p02401 | u297949443 | 1449931598 | Python | Python | py | Runtime Error | 0 | 0 | 286 | import sys
for v in iter(sys.stdin.readline)
a,op,b = v.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 |
s599927740 | p02401 | u630546605 | 1450232185 | Python | Python | py | Runtime Error | 0 | 0 | 381 | #-------------------------------------------------------------------------------
# coding: utf-8
# Created:
import sys
op = { "+" : lambda x, y: x + y,
"-": lambda x,y: x - y,
"/": lambda x,y: x/y,
"*": lambda x,y: x*y }
while True:
a, op_, b = sys.readline().split()
if op_ == "?" :... |
s354796112 | p02401 | u630546605 | 1450232221 | Python | Python | py | Runtime Error | 0 | 0 | 381 | #-------------------------------------------------------------------------------
# coding: utf-8
# Created:
import sys
op = { "+" : lambda x, y: x + y,
"-": lambda x,y: x - y,
"/": lambda x,y: x/y,
"*": lambda x,y: x*y }
while True:
a, op_, b = sys.readline().split()
if op_ == "?" :... |
s939613881 | p02401 | u279955105 | 1450512857 | Python | Python3 | py | Runtime Error | 20 | 7696 | 259 | while True:
t = input().split()
a = int(t[0])
b = t[1]
c = int(t[2])
d = 0
if (a == 0 and b == "?" and c == 0):
break
if (b == "+"):
d = a + c
if (b == "-"):
d = a - c
if (b == "*"):
d = a * c
if (b == "/"):
d = int(a / c)
print(str(d))
|
s040207080 | p02401 | u456885296 | 1453795353 | Python | Python | py | Runtime Error | 0 | 0 | 187 | a,b,op=map(int,raw_input().split())
while 1:
if op = '?':
break
elif op = '+':
print a+b
elif op = '-':
print a-b
elif op = '/':
print a/b
elif op = '*':
print a*b
|
s885062667 | p02401 | u456885296 | 1453795549 | Python | Python | py | Runtime Error | 0 | 0 | 193 | a,b,op=map(int,raw_input().split())
while 1:
if op == '?':
break
elif op == '+':
print a+b
elif op == '-':
print a-b
elif op == '/':
print a/b
elif op == '*':
print a*b
|
s589582118 | p02401 | u456885296 | 1453795589 | Python | Python | py | Runtime Error | 0 | 0 | 193 |
while 1:
a,b,op=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
|
s667890535 | p02401 | u456885296 | 1453795970 | Python | Python | py | Runtime Error | 0 | 0 | 193 |
while 1:
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
|
s556299869 | p02401 | u047737909 | 1453859748 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,op,b = map(int,raw_input().split())
if(op==*):
x =a*b
print x
elif(op==/):
x=a/b
print x
elif(op==+):
x=a+b
print x
elif(op==-):
x=a-b
print x
else:
break
|
s747808738 | p02401 | u047737909 | 1453860396 | Python | Python | py | Runtime Error | 0 | 0 | 193 | while True:
a,op,b = map(int,raw_input().split())
if(op=='*'):
print '%d'%(a*b)
elif(op=='/'):
print a/b
elif(op==+):
x=a+b
print x
elif(op==-):
x=a-b
print x
else:
break
|
s014692095 | p02401 | u047737909 | 1453861314 | Python | Python | py | Runtime Error | 0 | 0 | 174 | 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 |
s603935006 | p02401 | u047737909 | 1453861440 | Python | Python | py | Runtime Error | 0 | 0 | 187 | while True:
a =int(input())
op =raw_input()
b =int(input())
if(op=='+'):
print a+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b
else:
break |
s935880209 | p02401 | u047737909 | 1453861461 | Python | Python | py | Runtime Error | 0 | 0 | 177 | while True:
a =input()
op =raw_input()
b =input()
if(op=='+'):
print a+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b
else:
break |
s055631190 | p02401 | u047737909 | 1453861533 | Python | Python | py | Runtime Error | 0 | 0 | 184 | while True:
a =input()
op =raw_input()
b =input()
if(op=='?'):
break
if(op=='+'):
print a+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b |
s637486092 | p02401 | u834416077 | 1453861550 | Python | Python | py | Runtime Error | 0 | 0 | 246 | a,b = map(int, raw_input().split())
op = f.read()
while(1):
if op == "+":
print "%d" %(a+b)
elif op == "-":
print "%d" %(a-b)
elif op == "*":
print "%d" %(a*b)
elif op == "/":
print "%d" %(a/b)
elif op == "?":
break |
s287255315 | p02401 | u834416077 | 1453861784 | Python | Python | py | Runtime Error | 0 | 0 | 286 | a,b = map(int, raw_input().split())
op = f.read()
while(1):
if op == "+":
c = a+b
print "%d" %(c)
elif op == "-":
c = a-b
print "%d" %(c)
elif op == "*":
c = a*b
print "%d" %(c)
elif op == "/":
c = a/b
print "%d" %(c)
elif op == "?":
break |
s589983563 | p02401 | u834416077 | 1453862001 | Python | Python | py | Runtime Error | 0 | 0 | 250 | while(1):
a,b = map(int, raw_input().split())
op = f.read()
if op == "+":
print "%d" %(a+b)
elif op == "-":
print "%d" %(a-b)
elif op == "*":
print "%d" %(a*b)
elif op == "/":
print "%d" %(a/b)
elif op == "?":
break |
s753683416 | p02401 | u803327846 | 1453862182 | Python | Python | py | Runtime Error | 0 | 0 | 199 | while 1:
a,op,b = map(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
|
s351667198 | p02401 | u803327846 | 1453862244 | Python | Python | py | Runtime Error | 0 | 0 | 203 | while 1:
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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.