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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s518413067 | p02401 | u834416077 | 1453862297 | Python | Python | py | Runtime Error | 0 | 0 | 237 | while(1):
a,b = map(int, raw_input().split())
op = 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 |
s421958704 | p02401 | u803327846 | 1453862320 | Python | Python | py | Runtime Error | 0 | 0 | 235 | while 1:
a,op,b = map(int,raw_input().split())
if op == "+":
print "%d" %(a + b)
elif op == "-":
print "%d" %(a - b)
elif op == "*":
print "%d" %(a * b)
elif op == "/":
print "%d" %(a / b)
else:
break
|
s504878719 | p02401 | u803327846 | 1453862367 | Python | Python | py | Runtime Error | 0 | 0 | 231 | while 1:
a,op,b = map(raw_input().split())
if op == "+":
print "%d" %(a + b)
elif op == "-":
print "%d" %(a - b)
elif op == "*":
print "%d" %(a * b)
elif op == "/":
print "%d" %(a / b)
else:
break
|
s903901455 | p02401 | u047737909 | 1453862426 | Python | Python | py | Runtime Error | 0 | 0 | 203 | while True:
a,op,b = map(str,raw_input().split())
a=int(a)
b=int(b)
if(op=='?'):
break
if(op=='+'):
print s+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b |
s759699005 | p02401 | u834416077 | 1453862555 | Python | Python | py | Runtime Error | 0 | 0 | 203 | while(1):
a,b,op = 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 |
s053838898 | p02401 | u834416077 | 1453862648 | Python | Python | py | Runtime Error | 0 | 0 | 228 | while(1):
a,b,op = 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 |
s459126901 | p02401 | u803327846 | 1453862704 | Python | Python | py | Runtime Error | 0 | 0 | 235 | while 1:
a,op,b = map(str,raw_input().split())
if op == "+":
print "%d" %(a + b)
elif op == "-":
print "%d" %(a - b)
elif op == "*":
print "%d" %(a * b)
elif op == "/":
print "%d" %(a / b)
else:
break
|
s456783130 | p02401 | u834416077 | 1453862768 | Python | Python | py | Runtime Error | 0 | 0 | 228 | while(1):
a,b,op = 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 |
s297150159 | p02401 | u803327846 | 1453862893 | Python | Python | py | Runtime Error | 0 | 0 | 252 | while 1:
a, op, b = input(), raw_input(), (raw_input().split())
if op == "+":
print "%d" %(a + b)
elif op == "-":
print "%d" %(a - b)
elif op == "*":
print "%d" %(a * b)
elif op == "/":
print "%d" %(a / b)
else:
break
|
s680886778 | p02401 | u803327846 | 1453863038 | Python | Python | py | Runtime Error | 0 | 0 | 254 | while 1:
s = raw_input().split()
a, b =s[0], s[2]
op = s[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)
else:
break
|
s233979433 | p02401 | u970436839 | 1453877850 | Python | Python | py | Runtime Error | 0 | 0 | 216 | While True:
a, op, b = int(raw_input()), raw_input(), int(raw_input())
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
else:
break |
s368290601 | p02401 | u970436839 | 1453878004 | 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 == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
else:
break |
s003578738 | p02401 | u970436839 | 1453878073 | Python | Python | py | Runtime Error | 0 | 0 | 214 | While True:
a, op, b = 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 |
s687164749 | p02401 | u970436839 | 1453878121 | Python | Python | py | Runtime Error | 0 | 0 | 214 | While True:
a, op, b = 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 |
s544740199 | p02401 | u970436839 | 1453878185 | Python | Python | py | Runtime Error | 0 | 0 | 225 | While True:
s = raw_input().split()
a = int(s[0])
op = s[1]
b = int(s[2])
if op == '+':
print a+b
elif op == '-':
print a-b
elif op == '*':
print a*b
elif op == '/':
print a/b
else:
break |
s022426063 | p02401 | u970436839 | 1453878226 | Python | Python | py | Runtime Error | 0 | 0 | 234 | While True:
s = raw_input().split()
a = int(s[0])
op = s[1]
b = int(s[2])
if op == '+':
print a+b
elif op == '-':
print a-b
elif op == '*':
print a*b
elif op == '/':
print a/b
elif op == '?'
break |
s622513929 | p02401 | u970436839 | 1453878254 | Python | Python | py | Runtime Error | 0 | 0 | 235 | While True:
s = raw_input().split()
a = int(s[0])
op = s[1]
b = int(s[2])
if op == '+':
print a+b
elif op == '-':
print a-b
elif op == '*':
print a*b
elif op == '/':
print a/b
elif op == '?':
break |
s440800018 | p02401 | u970436839 | 1453878479 | Python | Python | py | Runtime Error | 0 | 0 | 198 | while True:
a, op, b = input(), raw_input(), input()
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
else:
break |
s761781152 | p02401 | u970436839 | 1453878499 | Python | Python | py | Runtime Error | 0 | 0 | 231 | while True:
s = raw_input().split()
a = int(s[0])
op = s[1]
b = int(s[2])
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
else:
break |
s493778509 | p02401 | u970436839 | 1453878546 | Python | Python | py | Runtime Error | 0 | 0 | 208 | while True:
a, op, b = input(), raw_input(), input()
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b
elif op == "?":
break |
s636773386 | p02401 | u970436839 | 1453878706 | Python | Python | py | Runtime Error | 0 | 0 | 233 | while True:
s = raw_input().split
a = int(s[0])
op = s[1]
b = int(s[2])
if op == "?":
break
elif op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b |
s387250386 | p02401 | u970436839 | 1453878752 | Python | Python | py | Runtime Error | 0 | 0 | 233 | while True:
s = raw_input().split
a = int(s[0])
op = s[1]
b = int(s[2])
if op == '?':
break
elif op == '+':
print a+b
elif op == '-':
print a-b
elif op == '*':
print a*b
elif op == '/':
print a/b |
s834279053 | p02401 | u970436839 | 1453878811 | Python | Python | py | Runtime Error | 0 | 0 | 241 | while True:
s = raw_input().split
a = int(s[0])
op = s[1]
b = int(s[2])
if op == '?':
break
elif op == '+':
print (a+b)
elif op == '-':
print (a-b)
elif op == '*':
print (a*b)
elif op == '/':
print (a/b) |
s521569962 | p02401 | u724923896 | 1453963143 | Python | Python | py | Runtime Error | 0 | 0 | 186 | 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 int(a)/b
elif op == "?":
return |
s278694474 | p02401 | u724923896 | 1453963313 | Python | Python | py | Runtime Error | 0 | 0 | 223 | 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 int(a)/b
elif op == "?":
break |
s744266143 | p02401 | u724923896 | 1453963467 | Python | Python | py | Runtime Error | 0 | 0 | 245 | while 1:
a, op, b = map(raw_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 |
s020144093 | p02401 | u078762447 | 1454159934 | Python | Python | py | Runtime Error | 0 | 0 | 286 | s[1] = "a"
while s[1] != "?":
s = raw_input().split()
if s[1] == "?":
break
a = int(s[0])
b = int(s[2])
if s[1] == "+":
print a + b
if s[1] =="-":
print a - b
if s[1] == "*":
print a * b
if s[1] == "/":
print a / b |
s492731122 | p02401 | u078762447 | 1454160033 | Python | Python | py | Runtime Error | 0 | 0 | 286 | s[1] = "a"
while s[1] != "?":
s = raw_input().split()
if s[1] == "?":
break
a = int(s[0])
b = int(s[2])
if s[1] == "+":
print a + b
if s[1] =="-":
print a - b
if s[1] == "*":
print a * b
if s[1] == "/":
print a / b |
s112945163 | p02401 | u824204304 | 1454259573 | Python | Python | py | Runtime Error | 0 | 0 | 187 | while True
a,op,b = raw_input().split
a,b = map(int,[a,b])
if op == "+";
print a+b
if op == "-";
print a-b
if op == "*";
print a*b
if op == "/";
print a/b |
s019311545 | p02401 | u824204304 | 1454259628 | Python | Python | py | Runtime Error | 0 | 0 | 215 | while True
a,op,b = raw_input().split
a,b = map(int,[a,b])
if op == "?":
break
if op == "+":
print a+b
if op == "-":
print a-b
if op == "*":
print a*b
if op == "/":
print a/b |
s243120170 | p02401 | u824204304 | 1454259659 | Python | Python | py | Runtime Error | 0 | 0 | 221 | while True
a,op,b = raw_input().split
a,b = map(int,[a,b])
if op == "?":
break
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b |
s395670214 | p02401 | u824204304 | 1454259669 | Python | Python | py | Runtime Error | 0 | 0 | 221 | while True
a,op,b = raw_input().split
a,b = map(int,[a,b])
if op == "?":
break
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b |
s759280406 | p02401 | u824204304 | 1454259679 | Python | Python | py | Runtime Error | 0 | 0 | 222 | while True:
a,op,b = raw_input().split
a,b = map(int,[a,b])
if op == "?":
break
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "*":
print a*b
elif op == "/":
print a/b |
s747959866 | p02401 | u824204304 | 1454259718 | Python | Python | py | Runtime Error | 0 | 0 | 230 | while True:
a,op,b = raw_input().split
a,b = map(int,[a,b])
if op == "?":
break
if op == "+":
print (a+b)
elif op == "-":
print (a-b)
elif op == "*":
print (a*b)
elif op == "/":
print (a/b) |
s608210361 | p02401 | u532962080 | 1454402413 | Python | Python | py | Runtime Error | 0 | 0 | 282 | while True:
ax,op,bx = raw_input().split()
ax = int(a)
bx = int(b)
if op == '?':
break
elif op == '+':
print(ax + bx)
elif op == '-':
print(ax - bx)
elif op == '*':
print(ax * bx)
elif op == '/':
print(ax / bx) |
s919984586 | p02401 | u619765879 | 1454413347 | Python | Python | py | Runtime Error | 0 | 0 | 182 | str = raw_input()
a = map(int, str[0])
op = str[1]
b = map(int, str[2])
if op == '+':
print a+b
elif op == '-':
print a-b
elif op == '*':
print a*b
elif op == '/':
print a/b |
s743218946 | p02401 | u974554153 | 1454419061 | Python | Python | py | Runtime Error | 0 | 0 | 830 |
while True:
Input = raw_input().split()
a = int(Input[0])
op = Input[1]
b = int(Input[2])
if op == "+":
ans = a + b
print ans
elif op == "-":
ans = a - b
print ans
elif op == "/":
ans = a / b
print ans
elif op == "*":
ans ... |
s298167333 | p02401 | u974554153 | 1454419082 | Python | Python | py | Runtime Error | 0 | 0 | 828 | while True:
Input = raw_input().split()
a = int(Input[0])
op = Input[1]
b = int(Input[2])
if op == "+":
ans = a + b
print ans
elif op == "-":
ans = a - b
print ans
elif op == "/":
ans = a / b
print ans
elif op == "*":
ans = ... |
s942844843 | p02401 | u177295149 | 1454420801 | Python | Python | py | Runtime Error | 0 | 0 | 239 | while true:
x = raw_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 |
s683321973 | p02401 | u436807165 | 1455328252 | Python | Python | py | Runtime Error | 0 | 0 | 98 | while 1:
if "?" in raw_input.split():
break
a,b,op = map(int,raw_input().split()
print a op b |
s267445986 | p02401 | u436807165 | 1455329087 | Python | Python | py | Runtime Error | 0 | 0 | 186 | x = raw=_input().split()
a,op,b = x[0],x[1],x[2]
while 1:
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "/":
print a/b
elif op == "*":
print a*b
else:
break |
s554580237 | p02401 | u436807165 | 1455329241 | Python | Python | py | Runtime Error | 0 | 0 | 166 | x = raw_input().split()
a,op,b = x[0],x[1],x[2]
if op == "+":
print a+b
elif op == "-":
print a-b
elif op == "/":
print a/b
elif op == "*":
print a*b
else:
break |
s972382723 | p02401 | u436807165 | 1455329549 | Python | Python | py | Runtime Error | 0 | 0 | 196 | while 1:
x = raw_input().split()
a,op,b = int(x[0]),x[1],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 |
s703097062 | p02401 | u279955105 | 1457494463 | Python | Python3 | py | Runtime Error | 0 | 0 | 256 | while True:
a,b,c = input().split()
if b=='?':
break
elif b =='+':
d = int(a) + int(c)
elif b=='-':
d = int(a) - int(c)
elif b=='*':
d = int(a)*int(c)
else :
d = int(a)/int(c)
print(int(d) |
s652292316 | p02401 | u894114233 | 1457499299 | Python | Python | py | Runtime Error | 0 | 0 | 409 | ct=-1
a=[0]*100000
b=[0]*100000
c=[0]*100000
while True:
ct+=1
a[ct],b[ct],c[ct]=map(str,raw_input().split())
if b[ct]==?:
break
else:
continue
for i in xrange(ct):
if b[i]=="+":
print(int(a[i])+int(c[i]))
elif b[i]=="-":
print(int(a[i])-int(c[i]))
elif b[i]==... |
s113498348 | p02401 | u994049982 | 1458689998 | Python | Python | py | Runtime Error | 0 | 0 | 243 | while True:
a,b,c=map(str,raw_input().split())
a,c=int(a),int(c)
if b=="?":
break
if b=="+":
print(a+b)
elif b=="-":
print(a-b)
elif b=="*"
print(a*b)
else:
print(a//b)
|
s742077136 | p02401 | u994049982 | 1458690008 | Python | Python | py | Runtime Error | 0 | 0 | 243 | while True:
a,b,c=map(str,raw_input().split())
a,c=int(a),int(c)
if b=="?":
break
if b=="+":
print(a+b)
elif b=="-":
print(a-b)
elif b=="*"
print(a*b)
else:
print(a//b)
|
s642217720 | p02401 | u994049982 | 1458690070 | Python | Python | py | Runtime Error | 0 | 0 | 243 | while True:
a,b,c=map(str,raw_input().split())
a,c=int(a),int(c)
if b=="?":
break
if b=="+":
print(a+c)
elif b=="-":
print(a-c)
elif b=="*"
print(a*c)
else:
print(a//c)
|
s831644789 | p02401 | u869301406 | 1459159720 | Python | Python | py | Runtime Error | 0 | 0 | 274 | wihle True:
a, op, b = map(str, raw_input().split())
if op in "+":
print int(a)+int(b)
elif op in "-":
print int(a)-int(b)
elif op in "*":
print int(a)*int(b)
elif op in "/":
print int(a)/int(b)
else :
break; |
s494727142 | p02401 | u463783070 | 1459327721 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | while True:
a,b = map(int,input().split())
op = map(str,input().split())
if ap == "?":
break
elif ap == "+":
print (a + b)
elif ap == "-":
print (a - b)
elif ap == "*":
print (a * b)
elif ap == "/":
print (a / b)
else:
break |
s748554985 | p02401 | u463783070 | 1459328067 | Python | Python3 | py | Runtime Error | 0 | 0 | 304 | while True:
a,b = map(int,input().split())
op = map(str,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
else:
break |
s899648308 | p02401 | u894381890 | 1460359852 | Python | Python | py | Runtime Error | 0 | 0 | 285 | i = 0
while i == 0:
x = raw_input()
a, op, b = x.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 == "?":
i == 1 |
s711138451 | p02401 | u894381890 | 1460359891 | Python | Python | py | Runtime Error | 0 | 0 | 265 |
x = raw_input()
a, op, b = x.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 == "?":
i == 1 |
s259587565 | p02401 | u894381890 | 1460359935 | Python | Python | py | Runtime Error | 0 | 0 | 303 | i = 0
while i == 0:
x = raw_input()
a, op, b = x.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 == "?":
i == 1
????????????break |
s371739925 | p02401 | u894381890 | 1460359985 | Python | Python | py | Runtime Error | 0 | 0 | 325 | i = 0
while i == 0:
x = raw_input()
a, op, b = x.split()
a = int(a)
b = int(b)
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 == "?":
i... |
s986474443 | p02401 | u894381890 | 1460360354 | Python | Python | py | Runtime Error | 0 | 0 | 325 | i = 0
while i == 0:
x = raw_input()
a, op, b = x.split()
a = int(a)
b = int(b)
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 == "?":
i... |
s546112730 | p02401 | u894381890 | 1460428946 | Python | Python | py | Runtime Error | 0 | 0 | 325 | i = 0
while i == 0:
x = raw_input()
a, op, b = x.split()
a = int(a)
b = int(b)
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 == "?":
i... |
s440392618 | p02401 | u894381890 | 1460428984 | Python | Python | py | Runtime Error | 0 | 0 | 335 | i = 0
while i == 0:
x = raw_input()
a, op, b = x.split()
a = int(a)
b = int(b)
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" == "?":... |
s058764167 | p02401 | u617990214 | 1462018153 | Python | Python | py | Runtime Error | 0 | 0 | 179 | l=raw_input()
k=l.split()
a=int(k[0])
b=k[3]
c=int(k[2])
#
if b='+':
print a + b
if b='-':
print a - b
if b='*':
print a * b
if b='/':
print a / b |
s645806086 | p02401 | u070968430 | 1464682058 | Python | Python3 | py | Runtime Error | 0 | 0 | 497 | while True:
a, op, b = map(str, input().split())
a = int(a)
b = int(b)
if 0 < a < 20001 and 0 < b < 20001:
if op == "+":
answer = a + b
print(answer)
elif op == "-":
answer = a - b
print(answer)
elif op == "*":
answer = ... |
s857896226 | p02401 | u070968430 | 1464683099 | Python | Python3 | py | Runtime Error | 0 | 0 | 526 | import math
while True:
a, op, b = map(str, input().split())
a = int(a)
b = int(b)
if 0 < a < 20001 and 0 < b < 20001:
if op == "+":
answer = a + b
print(answer)
elif op == "-":
answer = a - b
print(answer)
elif op == "*":
... |
s370622538 | p02401 | u363214773 | 1467360346 | Python | Python | py | Runtime Error | 0 | 0 | 364 | a = []
while True:
x = map(raw_input().split())
if x[1] == '?':
break
if x[1] == '+':
a.append(int(x[0] + int(x[2])))
if x[1] == '-':
a.append(int(x[0] - int(x[2])))
if x[1] == '*':
a.append(int(x[0] * int(x[2])))
if x[1] == '/':
a.append(int(x[0] / int(x[... |
s077171070 | p02401 | u514745787 | 1469601132 | Python | Python3 | py | Runtime Error | 0 | 0 | 133 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
if op == '?':
break
if op == '+':
|
s933964062 | p02401 | u204883389 | 1469601142 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | while True:
a, op, b = input().sprit()
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) |
s630853447 | p02401 | u514745787 | 1469601178 | Python | Python3 | py | Runtime Error | 0 | 0 | 277 | while True:
a, op, b = 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) |
s811964774 | p02401 | u264632995 | 1469601184 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | while True:
a, op, b = 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) |
s086365713 | p02401 | u671553883 | 1469601252 | Python | Python3 | py | Runtime Error | 0 | 0 | 349 | while True:
a, op, b = 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)
if o... |
s874650872 | p02401 | u264632995 | 1469601302 | Python | Python3 | py | Runtime Error | 0 | 0 | 271 | while True:
a, op, b = 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) |
s986704585 | p02401 | u671553883 | 1469601305 | Python | Python3 | py | Runtime Error | 0 | 0 | 324 | while True:
a, op, b = 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)
b... |
s935046374 | p02401 | u264632995 | 1469601384 | 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) |
s558693164 | p02401 | u204883389 | 1469601420 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
a, op, b = input().sprit()
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) |
s909768850 | p02401 | u382316013 | 1469601434 | Python | Python3 | py | Runtime Error | 0 | 0 | 290 | while True:
a, op, b = input().split()
a = int(a)
a = 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) |
s881340172 | p02401 | u204883389 | 1469601459 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | while True:
a, op, b = input().sprit()
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) |
s544132374 | p02401 | u264632995 | 1469601486 | Python | Python3 | py | Runtime Error | 0 | 0 | 278 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
if op == '+':
print(a + b)
if op == '-':
print(a - b)
if op == '*':
print(a * b)
if op == '/':
print(a // b) |
s691602983 | p02401 | u216425054 | 1470730910 | Python | Python3 | py | Runtime Error | 0 | 0 | 250 | while True:
[a,b,c]=[x for x in input().split()]
a,b=int(a),int(b)
if a==0 and b==0:
break
elif op=="+":
print(a+b)
elif op=="-":
print(a-b)
elif op=="*"
print(a*b)
else:
print(a//b) |
s672830278 | p02401 | u216425054 | 1470731046 | Python | Python3 | py | Runtime Error | 0 | 0 | 279 | while True:
[a,b,c]=[x for x in input().split()]
[a,c]=[int(a),int(c)]
print("processing")
if a==0 and c==0:
break
elif op=="+":
print(a+c)
elif op=="-":
print(a-c)
elif op=="*":
print(a*c)
else:
print(a//c) |
s163759347 | p02401 | u216425054 | 1470731086 | Python | Python3 | py | Runtime Error | 20 | 7712 | 264 | while True:
[a,b,c]=[x for x in input().split()]
[a,c]=[int(a),int(c)]
op=b
if a==0 and c==0:
break
elif op=="+":
print(a+c)
elif op=="-":
print(a-c)
elif op=="*":
print(a*c)
else:
print(a//c) |
s463906071 | p02401 | u216425054 | 1470731173 | Python | Python3 | py | Runtime Error | 0 | 0 | 256 | while True:
[a,b,c]=[x for x in input().split()]
[a,c]=[int(a),int(c)]
op=b
if op==?:
break
elif op=="+":
print(a+c)
elif op=="-":
print(a-c)
elif op=="*":
print(a*c)
else:
print(a//c) |
s323119848 | p02401 | u201514950 | 1474024618 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while 1:
x,op,y = raw_input().split()
if op == "?":
break
x = int(x)
y = int(y)
if op == "+":
print x+y
elif op == "-":
print x-y
elif op == "*":
print x*y
else:
print x/y |
s549308693 | p02401 | u494314211 | 1475351500 | Python | Python3 | py | Runtime Error | 0 | 0 | 292 | import time,sys,io,pprint,math
a = []
while True:
m,n,o = input()
m=int(m)
o=int(o)
if n == "?":
break
if n=="+":
a.append(m+o)
elif n=="-":
a.append(m-o)
elif n=="*":
a.append(m*o)
elif n=="/":
a.append(m/o)
for i in a:
print(a) |
s562289873 | p02401 | u494314211 | 1475351506 | Python | Python3 | py | Runtime Error | 0 | 0 | 261 |
a = []
while True:
m,n,o = input()
m=int(m)
o=int(o)
if n == "?":
break
if n=="+":
a.append(m+o)
elif n=="-":
a.append(m-o)
elif n=="*":
a.append(m*o)
elif n=="/":
a.append(m/o)
for i in a:
print(a) |
s527896591 | p02401 | u831244171 | 1477495235 | Python | Python | py | Runtime Error | 0 | 0 | 215 | x = input().split()
a,op,b = int(x[0]),x[1],int(x[2])
if x[1] == "+":
print a+b
elif x[1] == "-":
print a-b
elif x[1] == "*":
print a*b
elif x[1] == "/":
print a/b
else:
break
|
s561127416 | p02401 | u831244171 | 1477495266 | Python | Python | py | Runtime Error | 0 | 0 | 207 | x = input().split()
a,op,b = int(x[0]),x[1],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
|
s777891659 | p02401 | u831244171 | 1477495282 | Python | Python | py | Runtime Error | 0 | 0 | 211 | x = raw_input().split()
a,op,b = int(x[0]),x[1],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
|
s569618223 | p02401 | u236295012 | 1477698307 | Python | Python3 | py | Runtime Error | 0 | 0 | 272 | x = input().split()
if x[1] == '+':
y = int(x[0])+int(x[2])
print(y)
elif x[1] == '-':
y = int(x[0])-int(x[2])
print(y)
elif x[1] == '*':
y = int(x[0])*int(x[2])
print(y)
elif x[1] == '/':
y = int(x[0])//int(x[2])
print(y)
elif x[1] == '?': |
s341756651 | p02401 | u725608708 | 1480568398 | Python | Python3 | py | Runtime Error | 0 | 0 | 212 | 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) |
s959754656 | p02401 | u725608708 | 1480568448 | Python | Python3 | py | Runtime Error | 0 | 0 | 212 | 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) |
s060696942 | p02401 | u106285852 | 1482338933 | Python | Python3 | py | Runtime Error | 0 | 0 | 1310 | '''
ITP-1_4-C
?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨???... |
s481401124 | p02401 | u106285852 | 1482339538 | Python | Python3 | py | Runtime Error | 0 | 0 | 1238 | '''
ITP-1_4-C
?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨???... |
s595318599 | p02401 | u918276501 | 1484194425 | Python | Python3 | py | Runtime Error | 0 | 0 | 112 | import sys
data = sys.stdin.readline()
if '?' in data:
break
print(eval(data.replace('/','//'))) |
s341775796 | p02401 | u918276501 | 1484194438 | Python | Python3 | py | Runtime Error | 0 | 0 | 100 | import sys
data = sys.stdin.readline()
if '?' in data:
break
print(eval(data.replace('/','//'))) |
s510803982 | p02401 | u519227872 | 1485345983 | Python | Python | py | Runtime Error | 0 | 0 | 117 | import sys
for line in sys.stdin.readline():
a,op,b = line.split()
if op == '?':
break
print eval(line)
|
s743237533 | p02401 | u519227872 | 1485346498 | Python | Python | py | Runtime Error | 0 | 0 | 144 | import sys
l = []
for line in sys.stdin.readline():
l.append(line)
for i in l:
a,op,b=i.split()
if op == '?':
break
print eval(i) |
s882228719 | p02401 | u144068724 | 1485871357 | Python | Python3 | py | Runtime Error | 0 | 0 | 233 | while 1:
a,op,b = map(int,input().split())
if op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a // b)
else:
break |
s002478232 | p02401 | u144068724 | 1485871422 | Python | Python3 | py | Runtime Error | 0 | 0 | 273 | while 1:
a,op,b = map(int,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 |
s609557629 | p02401 | u553058997 | 1487756075 | Python | Python3 | py | Runtime Error | 0 | 0 | 62 | while:
a = input()
if a == '0 ? 0': break
print(exec(a)) |
s401112373 | p02401 | u553058997 | 1487756151 | Python | Python3 | py | Runtime Error | 0 | 0 | 72 | while:
a = input()
if a == '0 ? 0': break
exec('print(' + a + ')') |
s612522362 | p02401 | u343748576 | 1489125494 | Python | Python3 | py | Runtime Error | 0 | 0 | 291 | #ITP1_4_C: Simple Calculator
while True:
a, op, b = input().split()
a, b = int(a), int(b)
if op == '?':
break
elif op =='+':
print(a+b) +1
elif op =='-':
print(a-b)
elif op =='*':
print(a*b)
elif op =='/':
print(a//b) |
s414839783 | p02401 | u343748576 | 1489125571 | Python | Python3 | py | Runtime Error | 0 | 0 | 260 | while True:
a, op, b = input().split()
a, b = int(a), int(b)
if op == '?':
break
elif op =='+':
print(a+b) +1
elif op =='-':
print(a-b)
elif op =='*':
print(a*b)
elif op =='/':
print(a//b) |
s074453012 | p02401 | u011621222 | 1489924693 | Python | Python | py | Runtime Error | 0 | 0 | 164 | while 1:
ass,b,css=raw_input().split()
ass=int(a)
css=int(c)
if b=='*':print a*c
if b=='+':print a+c
if b=='-':print a-c
if b=='/':print a/c
if b=='?':break |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.