Problem:

Simple Calculator

Write a program which reads two integers a, b and an operator op, and then prints the value of a op b.

The operator op is '+', '-', '*' or '/' (sum, difference, product or quotient). The division should truncate any fractional part.

Input

The input consists of multiple datasets. Each dataset is given in the following format.

a op b

The input ends with a dataset where op = '?'. Your program should not process for this dataset.

Output

For each dataset, print the value in a line.

Constraints

  
 0 ≤ a, b ≤ 20000

No divisions by zero are given.

Sample Input 1

1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0

Sample Output 1

3
38
26
10
108



Sample input:
1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0


Sample output:
3
38
26
10
108

Submission status: Wrong Answer

Solution code:
while True:
    l = input().split()
    a = int(l[0])
    b = int(l[2])
    op = l[1]
    if op == '?':
        break
    if op == '+':
        ans = a + b
        print(ans)
    elif op == '-':
        ans = a - b
        print(ans)
    elif op == '*':
        ans = a * b
        print(ans)
    elif op == '/':
        ans = a / b
        print(ans)

Submission status: Wrong Answer

Solution code:
while 1:
	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

Submission status: Wrong Answer

Solution code:
while True:
	a,b,c = input().split()

	if b == "?":
		break
	elif b == "+":
		s = int(a)+int(c)
	elif b == "-":
		s = int(a)-int(c)
		
	elif b == "*":
		s = int(a)*int(c)
		
	else :
		s = int(a)/int(c)
	print(s)

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
while True:
    a,b,c = input().split()
    if b=='?':
        break
    elif b =='+':
        d = int(a) + int(c)
        print(d)
    elif b=='-':
        d = int(a) - int(c)
        print(d)
    elif b=='*':
        d = int(a)*int(c)
        print(d)
    else :
        d = int(a)/int(c)
        print(d)

Submission status: Wrong Answer

Solution code:
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(d)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
while True:
    a,op,b = 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

Submission status: Wrong Answer

Solution code:
while True:
    a,op,b = 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)
    else:
        break

Submission status: Wrong Answer

Solution code:
while True:
    a,op,b = 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)
    else:
        break

Submission status: Wrong Answer

Solution code:
x = raw_input()
a, op, b = x.split()
a = int(a)
b = int(b)
s = 0

if op == "+" or op == "-" or op == "*" or op == "/":
    if op == "+":
        s = a + b
    elif op == "-":
        s = a - b
    elif op == "*":
        s = a * b
    elif op == "/":
        s = a / b
    print s

Submission status: Wrong Answer

Solution code:
l=raw_input()
k=l.split()
a=int(k[0])
op=k[1]
b=int(k[2])
#
if op=='+':
        print a + b
if op=='-':
        print a - b
if op=='*':
        print a * b
if op=='/':
        print a / b

Submission status: Wrong Answer

Solution code:
l=raw_input()
l=raw_input()
k=l.split()
a=int(k[0])
op=k[1]
b=int(k[2])
#
while op<>'?':
        if op=='+':
                print a + b
        if op=='-':
                print a - b
        if op=='*':
                print a * b
        if op=='/':
                print a / b
#
        l=raw_input()
        k=l.split()
        a=int(k[0])
        op=k[1]
        b=int(k[2])

Submission status: Wrong Answer

Solution code:
while True:
    Input = input().split()
    a = int(Input[0])
    op = Input[1]
    b = int(Input[2])
    if a >= 0 and b >= 0 and a <= 20000 and b <= 20000:
        if op == "+":
            print(a + b)
        elif op == "-":
            print(a - b)
        elif op == "*":
            print(a * b)
        elif op == "/":
            if b != 0:
                print(a / b)
        elif op == "?":
            break

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
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)
            break
        elif op == "-":
            answer = a - b
            print(answer)
            break
        elif op == "*":
            answer = a * b
            print(answer)
            break
        elif op == "/":
            answer = a / b
            print(answer)
            break
        elif op == "?":
            break
    else:
        continue

Submission status: Wrong Answer

Solution code:
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)
            break
        elif op == "-":
            answer = a - b
            print(answer)
            break
        elif op == "*":
            answer = a * b
            print(answer)
            break
        elif op == "/":
            answer = a / b
            print(int(answer))
            break
        elif op == "?":
            break
    else:
        continue

Submission status: Wrong Answer

Solution code:
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)
            break
        elif op == "-":
            answer = a - b
            print(answer)
            break
        elif op == "*":
            answer = a * b
            print(answer)
            break
        elif op == "/":
            answer = a / b
            print("{0:03.1f}".format(answer))
            break
        elif op == "?":
            break
    else:
        continue

Submission status: Wrong Answer

Solution code:
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)
            break
        elif op == "-":
            answer = a - b
            print(answer)
            break
        elif op == "*":
            answer = a * b
            print(answer)
            break
        elif op == "/":
            answer = a / b
            print("{0:01.0f}".format(answer))
            break
        elif op == "?":
            break
    else:
        continue

Submission status: Wrong Answer

Solution code:
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)
            break
        elif op == "-":
            answer = a - b
            print(answer)
            break
        elif op == "*":
            answer = a * b
            print(answer)
            break
        elif op == "/":
            answer = a / b
            print(math.ceil(answer))
            break
        elif op == "?":
            break
    else:
        continue

Submission status: Wrong Answer

Solution code:
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)
            break
        elif op == "-":
            answer = a - b
            print(answer)
            break
        elif op == "*":
            answer = a * b
            print(answer)
            break
        elif op == "/":
            answer = a / b
            print(round(answer))
            break
        elif op == "?":
            break
    else:
        continue

Submission status: Wrong Answer

Solution code:
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 == "*":
            answer = a * b
            print(answer)
        elif op == "/":
            answer = a / b
            print(math.floor(answer))
        elif op == "?":
            break
    else:
        if op == "?":
            break
        else:
            continue

Submission status: Wrong Answer

Solution code:
import math

while True:
    a, op, b = map(str, input().split())
    a = int(a)
    b = int(b)
    if 0 < a < 20001 and b < 20001:
        if op == "+":
            answer = a + b
            print(answer)
        elif op == "-":
            answer = a - b
            print(answer)
        elif op == "*":
            answer = a * b
            print(answer)
        elif op == "/":
            answer = a / b
            print(math.floor(answer))
        elif op == "?":
            break
    else:
        if op == "?":
            break
        else:
            continue

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
	list = {}
	i = 0
	while True:
		a,op,b = input().split()
		a,b = map(int,[a,b])
		if op == '+':
			list[i] = a+b
		elif op == '-':
			list[i] = a - b
		elif op == '*':
			list[i] = a*b
		elif op == '/':
			list[i] = a/b
		else:
			break
		i +=1
	for i in range(len(list)):
		print (list[i])

Submission status: Wrong Answer

Solution code:
while True:
    a, b, c = input().split()
    a = int(a)
    c = int(c)
    if b == "?":
        break
    elif b == "-":
        d = a - c
    elif b == "+":
        d = a + c
    elif b == "*":
        d = a * c
    elif b == "/":
        d = a / c
    print(d)

Submission status: Wrong Answer

Solution code:
while True :
    i = input().split()
    r = int(i[0])
    op = i[1]
    l = int(i[2])
    if op == '?':
        break
    else:
        if op == '+':
            print(str(r+l))
        elif op == '-':
            print(str(r-l))
        elif op == '*':
            print(str(r*l))
        else :
            print(str(r/l))

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

    pass

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
x , y, z = input().split()
l = int(x)
r = int(z)
if y == '+':
    print(l + r)
elif y == '-':
    print(l - r)
elif y == '/':
    print(l / r)
elif y == '*':
    print(l * r)
else:
    pass

Submission status: Wrong Answer

Solution code:
x , y, z = input().split()
l = int(x)
r = int(z)
if y == '+':
    print(l + r)
elif y == '-':
    print(l - r)
elif y == '/':
    print(l // r)
elif y == '*':
    print(l * r)
else:
    pass

Submission status: Wrong Answer

Solution code:
x , y, z = input().split()
l = int(x)
r = int(z)
if y == '+':
    print(l + r)
elif y == '-':
    print(l - r)
elif y == '/':
    print(l // r)
elif y == '*':
    print(l * r)

Submission status: Wrong Answer

Solution code:
[a,op,b]=[x for x in input().split()]
a=int(a)
b=int(b)
i=0
while i<100:
    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)
    i=i+1

Submission status: Wrong Answer

Solution code:
while True:
    a = input()
    if '?' in a:
        break
    print("{0}".format(eval(a)))

Submission status: Wrong Answer

Solution code:
#coding:utf-8
#Simple Calculator

while 1:
    aopb = raw_input().split()
    if aopb[1] == "+":
        print aopb[0] + aopb[2]
    elif aopb[1] == "-":
        print aopb[0] - aopb[2]
    elif aopb[1] == "*":
        print aopb[0] * aopb[2]
    elif aopb[1] == "/":
        print aopb[0] / aopb[2]
    else:
        break

Submission status: Wrong Answer

Solution code:
x,op,y = raw_input().split()

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

Submission status: Wrong Answer

Solution code:
while True:
    a = input()
    try:
        i = a.index('?')
    except:
        print(eval(a))
    else:
        break

Submission status: Wrong Answer

Solution code:
while True:
    a = input()
    try:
        i = a.index('?')
    except:
        print(float(eval(a)))
    else:
        break

Submission status: Wrong Answer

Solution code:

a = []
while True:
    m,n,o = input().split()
    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)

Submission status: Wrong Answer

Solution code:

a = []
while True:
    m,n,o = input().split()
    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(i)

Submission status: Wrong Answer

Solution code:
a = []
while True:
    m,n,o = input().split()
    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(int(m/o))
    break

for i in a:
	print(i)

Submission status: Wrong Answer

Solution code:
def proc(a, b, op):
    if b == '+':
        return a + b
    if b == '-':
        return a - b
    if b == '*':
        return a * b
    if b == '/':
        return a // b

while True:
    a, op, b = input().split()
    if op == '?':
        break
    print(proc(a, b, op))

Submission status: Wrong Answer

Solution code:
def proc(a, b, op):
    if op == '+':
        return a + b
    if op == '-':
        return a - b
    if op == '*':
        return a * b
    if op == '/':
        return a // b
 
while True:
    a, op, b = input().split()
    if op == '?':
        break
    print(proc(a, b, op))

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
	co = []
	while True:
		a, op, b = input().split()
		if op == '?':
			break
		co.append([int(a),op,int(b)])
	for i in co:
		if i[1] == '+':
			print(i[0]+i[2])
		elif i[2] == '-':
			print(i[0]-i[2])
		elif i[2] == '/':
			print(i[0]/i[2])
		else:
			print(i[0]*i[2])

Submission status: Wrong Answer

Solution code:
a, op, b = input().split()
a, b = int(a), int(b)
if op == '?':
  quit()
else:
  if op == '+':
    result = a+b
  elif op == '-':
    result = a-b
  elif op == '*':
    result = a*b
  elif op == '/':
    result = a/b
  print(result)

Submission status: Wrong Answer

Solution code:
a, op, b = input().split()
a, b = int(a), int(b)     
if op == '?':             
  quit()                  
else:                     
  if op == '+':           
    result = a+b          
  elif op == '-':         
    result = a-b          
  elif op == '*':         
    result = a*b          
  elif op == '/':         
    result = int(a/b)     
  print(result)

Submission status: Wrong Answer

Solution code:
import sys

for i in sys.stdin:
    a,op,b = i.split()
    if op == "?":
        break
    else:
        print(eval(a+op+b))

Submission status: Wrong Answer

Solution code:
while(True):
    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)
    elif b == "?":
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        print(eval(input()))
    except Exception as e:
        break

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-C
 ?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨????????????????¨????????????¨????????????
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
 a op b
op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
???Output
?????????????????????????????????????¨??????????????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
for inputData in sys.stdin:
    inputData = inputData.split(" ")
    a, b, op = int(inputData[0]), int(inputData[2]), inputData[1]
    retVal = 0

    # 0?????´??? ????????????
    if op == '?':
        # exec end
        break

    if op == '+':
        retVal = a + b
    elif op == '-':
        retVal = a - b
    elif op == '*':
        retVal = a * b
    elif op == '/':
        retVal = a / b
    else:
        retVal = 0

    # ????????????
    print(retVal)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-C
 ?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨????????????????¨????????????¨????????????
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
 a op b
op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
???Output
?????????????????????????????????????¨??????????????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
for inputData in sys.stdin:
    inputList = inputData.split()
    a, op, b = int(inputList[0]), inputList[1], int(inputList[2])
    retVal = 0

    # 0?????´??? ????????????
    if op == '?':
        # exec end
        break
    elif op == '+':
        retVal = a + b
    elif op == '-':
        retVal = a - b
    elif op == '*':
        retVal = a * b
    elif op == '/':
        retVal = a / b
    else:
        retVal = 0

    # ????????????
    print(retVal)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-C
 ?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨????????????????¨????????????¨????????????
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
 a op b
op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
???Output
?????????????????????????????????????¨??????????????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
for inputData in sys.stdin:
    inputList = inputData.split()
    a, op, b = int(inputList[0]), inputList[1], int(inputList[2])
    retVal = 0

    # 0?????´??? ????????????
    if op == "?":
        # exec end
        break
    elif op == "+":
        retVal = a + b
    elif op == "-":
        retVal = a - b
    elif op == "*":
        retVal = a * b
    elif op == "/":
        retVal = a / b
    else:
        retVal = 0

    # ????????????
    print(retVal)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-C
 ?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨????????????????¨????????????¨????????????
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
 a op b
op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
???Output
?????????????????????????????????????¨??????????????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
for inputData in sys.stdin:
    inputList = inputData.split()
    a, op, b = int(inputList[0]), inputList[1], int(inputList[2])
    retVal = 0

    # 0?????´??? ????????????
    if op == "?":
        # exec end
        break
    elif op == "+":
        retVal = a + b
    elif op == "-":
        retVal = a - b
    elif op == "*":
        retVal = a * b
    elif op == "/":
        retVal = a / b

    # ????????????
    print(retVal)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-C
 ?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨????????????????¨????????????¨????????????
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
 a op b
op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
???Output
?????????????????????????????????????¨??????????????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
for inputData in sys.stdin:
    inputList = inputData.split()
    a, op, b = int(inputList[0]), inputList[1], int(inputList[2])
    retVal = 0

    # 0?????´??? ????????????
    if op == "?":
        # exec end
        break
    elif op == "+":
        print(a + b)
    elif op == "-":
        print(a - b)
    elif op == "*":
        print(a * b)
    elif op == "/":
        print(a / b)

Submission status: Wrong Answer

Solution code:

while True:
    t = input()
    if t.find("?") > 0:
        break
    print(eval(t))

Submission status: Wrong Answer

Solution code:
alist = [ x for x in input().split() ]
if alist[1] == "*" :
    print(int(alist[0]) * int(alist[2]))
elif alist[1] == "/" :
    print(int(alist[0]) / int(alist[2]))
elif alist[1] == "+" :
    print(int(alist[0]) + int(alist[2]))
elif alist[1] == "-" :
    print(int(alist[0]) - int(alist[2]))

Submission status: Wrong Answer

Solution code:
import math
alist = [ x for x in input().split() ]
if alist[1] == "*" :
    print(int(alist[0]) * int(alist[2]))
elif alist[1] == "/" :
    print(math.floor(int(alist[0]) / int(alist[2])))
elif alist[1] == "+" :
    print(int(alist[0]) + int(alist[2]))
elif alist[1] == "-" :
    print(int(alist[0]) - int(alist[2]))

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
import sys
array = []
for i in sys.stdin:
    array.append(i)

for i in range(len(array)):
    data = array[i].split()
    a = int(data[0])
    op = str(data[1])
    b = int(data[2])
    if op == '?':
        break
    if op == '+':
        print(a+b)
    if op == '-':
        print(a-b)
    if op == '/':
        print(a/b)
    if op == '*':
        print(a*b)

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
import sys
array = []
for i in sys.stdin:
    array.append(i)

for i in range(len(array)):
    data = array[i].split()
    a = int(data[0])
    op = str(data[1])
    b = int(data[2])
    if op == '?':
        break
    if op == '+':
        print(a+b)
    if op == '-':
        print(a-b)
    if op == '/':
        print(float(a)/b)
    if op == '*':
        print(a*b)

Submission status: Wrong Answer

Solution code:
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 == "?"):
        break

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

import sys
import operator


def string_to_list_spliter():
    lst = [int(i) if isinstance(i, int) == True else i for i in sys.stdin.readline().split()]
    return lst


def main():
    ops = {'+': operator.add, '-': operator.sub, '*': operator.mul, '/': operator.truediv}

    while True:
        lst = string_to_list_spliter()
        if lst[1] == '?':
            break
        elif lst[1] == '+':
            print(ops[lst[1]](int(lst[0]), int(lst[2])))
        elif lst[1] == '-':
            print(ops[lst[1]](int(lst[0]), int(lst[2])))
        elif lst[1] == '*':
            print(ops[lst[1]](int(lst[0]), int(lst[2])))
        elif lst[1] == '/':
            print(ops[lst[1]](int(lst[0]), int(lst[2])))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
while 1:
    s=input()
    if '?' in s:break
    print(eval(s))

Submission status: Wrong Answer

Solution code:
while 1:
    s=input()
    if '?' in s:break
    print(eval(s)//1)

Submission status: Wrong Answer

Solution code:
while 1:
    a,b,c = list(map(str,input().split()))
    num_a=int(a)
    num_c=int(c)
    if b=="+":
        print(num_a+num_c)
    elif b=="-":
        print(num_a-num_c)
    elif b=="*":
        print(num_a*num_c)
    elif b=="/":
        print(num_a/num_c)
    elif b=="?":
        break

Submission status: Wrong Answer

Solution code:
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

Submission status: Wrong Answer

Solution code:
while True:
  a = input()
  if a == '0 ? 0': break
  exec('print(' + a + ')')