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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
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... |
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... |
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("/","//"))) |
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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))
|
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))
|
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))
|
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))
|
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 |
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 |
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 |
s819956152 | p02401 | u569585396 | 1498722078 | Python | Python3 | py | Runtime Error | 0 | 0 | 95 | while True:
C == input()
if '?' in C:
break
print(eval(C.replace('/','//'))) |
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) |
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) |
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) |
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) |
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) |
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)) |
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) |
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) |
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) |
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 |
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 |
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 |
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 |
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) |
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... |
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... |
s050400275 | p02401 | u283452598 | 1503045650 | Python | Python3 | py | Runtime Error | 0 | 0 | 74 | while True:
if input()=="0 ? 0":
break
print(eval(input()) |
s604661738 | p02401 | u283452598 | 1503045726 | Python | Python3 | py | Runtime Error | 0 | 0 | 75 | while True:
if input()=="0 ? 0":
break
print(eval(input())) |
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))) |
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))) |
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(/,//))) |
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("/","//"))) |
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("/","//")))) |
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("/","//"))) |
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) |
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) |
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) |
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) |
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:
... |
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))
... |
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))
... |
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))
... |
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)
... |
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 |
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 |
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
|
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
|
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
|
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
|
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
|
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 |
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 |
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 |
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
|
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 |
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
|
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
|
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
|
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 |
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)
|
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) ) |
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)
|
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) |
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) |
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) |
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]... |
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) |
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) |
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() |
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) |
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) |
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 |
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 |
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('%... |
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('%... |
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) |
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))) |
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 |
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 ? ... |
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... |
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... |
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) |
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) |
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) |
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) |
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))) |
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))) |
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))) |
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) |
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) |
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)) |
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... |
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() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.