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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
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() |
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() |
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 == '?'... |
s642019023 | p02401 | u365686736 | 1514774808 | Python | Python3 | py | Runtime Error | 0 | 0 | 69 | while True:s = int(input())
if '?' in s:break
print(eval(s))
|
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] == '/'):
... |
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] == '/'):
... |
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
|
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
|
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)
|
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)))
|
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)))
|
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)))
|
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)))
|
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
|
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)
|
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
|
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
|
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
|
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
|
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... |
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=("?"):
... |
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=("?")... |
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=("?")... |
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=("?"):
... |
s646703056 | p02401 | u017435045 | 1520818751 | Python | Python3 | py | Runtime Error | 0 | 0 | 76 |
while 1:
s==input()
if '?' in s: break
print(int(eval(s)))
|
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... |
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==("... |
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==('... |
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==('... |
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==('?')... |
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=("?... |
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=("?"):
... |
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=("?"):
... |
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=('?'):
... |
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))
|
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))
|
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=("?"):
... |
s055908399 | p02401 | u646461156 | 1521004455 | Python | Python3 | py | Runtime Error | 0 | 0 | 63 | while True:
l=input()
if l[1]=='?':
break
print(eval(l))
|
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)
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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)
|
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)
|
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)
|
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)
|
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)
|
s830996457 | p02401 | u074747865 | 1524472109 | Python | Python3 | py | Runtime Error | 0 | 0 | 52 | S=int(input())
print(S//3600,S//60%60,S%60,sep=":")
|
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)
|
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)
|
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(... |
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
|
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)
|
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)
|
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)
|
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)
|
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)
... |
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... |
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]
|
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]
|
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)
|
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])
|
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])
|
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)))
|
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... |
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())
|
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())
|
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
|
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)... |
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))
|
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)
|
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... |
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])
|
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... |
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 |
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 |
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 |
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 |
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... |
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] |
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 |
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 |
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) |
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)
|
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)
|
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))
|
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))
|
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))
|
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 ... |
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])))))
|
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])))))
|
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])))))
|
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])))))
|
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])))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.