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:
if __name__ == "__main__":
    while True:
        a,op,b = map(str,input().split())
        if op is "+":
            print("%d"%(int(a)+int(b)))
        elif op is "-":
            print("%d"%(int(a)-int(b)))
        elif op is "*":
            print("%d"%(int(a)*int(b)))
        elif op is "/":
            print("%d"%(int(a)-int(b)))
        else:
            break

Submission status: Wrong Answer

Solution code:
while True:
    inps = input().split()
    if len(inps) < 3:
        print("Illegal input.")
    else:
        a = int(inps[0])
        b = int(inps[2])
        if inps[1] == "+":
            print(a + b)
        elif inps[1] == "-":
            print(a - b)
        elif inps[1] == "*":
            print(a * b)
        elif inps[1] == "/":
            print("{:.0f}".format(a / b))
        elif inps[1] == "?":
            break
        else:
            print("Illegal input.")
            break

Submission status: Wrong Answer

Solution code:
sols = []
while True:
    x = list(input().split())
    a = int(x[0])
    b = int(x[2])
    oprnd = x[1]
    if oprnd=="+":
        print(a+b)
    elif oprnd=="-":
        print(a-b)
    elif oprnd=="*":
        print(a*b)
    elif oprnd=="/":
        print(a/b)
    elif oprnd=="?":
        break

Submission status: Wrong Answer

Solution code:
result = []
while True:
    a,op,b = input().split()
    if op == '?':
        break
    elif op == '+':
        result.append(a + b)
    elif op == '-':
        result.append(a - b)
    elif op == '*':
        result.append(a * b)
    elif op == '/':
        result.append(a / b)
        
for i in result:
    print(i)

Submission status: Wrong Answer

Solution code:
result = []
while True:
    a,op,b = input().split()
    
    if op == '?':
        break
    elif op == '+':
        result.append(int(a) + int(b))
    elif op == '-':
        result.append(int(a) - int(b))
    elif op == '*':
        result.append(int(a) * int(b))
    elif op == '/':
        result.append(int(a) / int(b))
        
for i in result:
    print(i)

Submission status: Wrong Answer

Solution code:
result = []
while True:
    a,op,b = input().split()
    
    if op == '?':
        break
    elif op == '+':
        result.append(int(a) + int(b))
    elif op == '-':
        result.append(int(a) - int(b))
    elif op == '*':
        result.append(int(a) * int(b))
    elif op == '/':
        result.append(round(int(a) / int(b)))
        
for i in result:
    print(i)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = 1
b = 1
op = ''
i = 0
while op!='?':
	a,op,b = [i for i in input().split()]
	a = int(a)
	b = int(b)
	if op!='?':
		if 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:
    A, B, C = map(str, input().split())
    a = int(A)
    b = int(C)
    if B=="?":
        break
    elif B=="+":
        print(a+b)
    elif B==("-"):
        print(a-b)
    elif B=="*":
        print(a*b)
    elif B==("/"):
        print(a*b)

Submission status: Wrong Answer

Solution code:
while True:
    A, B, C = map(str, input().split())
    a = int(A)
    b = int(C)
    if B=="?":
        break
    elif B=="+":
        print(a+b)
    elif B==("-"):
        print(a-b)
    elif B=="*":
        print(a*b)
    elif B==("/"):
        print(a/b)

Submission status: Wrong Answer

Solution code:
data = input()
print(eval(data.replace('/','//')))

Submission status: Wrong Answer

Solution code:
while True:
    a, op, b = input().split()
    if op == '?':
        break
    eval('print({})'.format(a+op+b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
op = ""
while op != "?":
    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:
while True:
    f = input()
    _, op, _ = f.split()

    if op == '?':
        break

    print(eval(f))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for i in range(6):
    a,op,b = map(str,input().split())
    if op == "+":
        s = int(a)+int(b)
        print(s)
    elif op == "-":
        sa = int(a)-int(b)
        print(sa)
    elif op == "*":
        seki = int(a)*int(b)                                                
        print(seki)
    elif op == "/":
        syou=round(int(a)/int(b))
        print(syou)
    else:
        break

Submission status: Wrong Answer

Solution code:
for i in range(100):
    a,op,b = map(str,input().split())
    if op == "+":
        s = int(a)+int(b)
        print(s)
    elif op == "-":
        sa = int(a)-int(b)
        print(sa)
    elif op == "*":
        seki = int(a)*int(b)                                                
        print(seki)
    elif op == "/":
        syou=round(int(a)/int(b))
        print(syou)
    else:
        break

Submission status: Wrong Answer

Solution code:
while 1 == 1:
    a,op,b = map(str,input().split())
    if op == "+":
        s = int(a)+int(b)
        print(s)
    elif op == "-":
        sa = int(a)-int(b)
        print(sa)
    elif op == "*":
        seki = int(a)*int(b)                                                
        print(seki)
    elif op == "/":
        syou=round(int(a)/int(b))
        print(syou)
    else:
        break

Submission status: Wrong Answer

Solution code:
for _ in range(10):
    r = input().split()
    a = int(r[0])
    op = str(r[1])
    b = int(r[2])
    if op == "?":
        break
    elif op == "+":
        print("%d"%(a + b))
    elif op == "-":
        print("%d"%(a - b))
    elif op == "*":
        print("%d"%(a * b))
    elif op == "/":
        print("%d"%(int(a / b)))

Submission status: Wrong Answer

Solution code:
from math import floor

for _ in range(10):
    r = input().split()
    a = int(r[0])
    op = str(r[1])
    b = int(r[2])
    if op == "?":
        break
    elif op == "+":
        print("%d"%(a + b))
    elif op == "-":
        print("%d"%(a - b))
    elif op == "*":
        print("%d"%(a * b))
    elif op == "/":
        print("%d"%(floor(a / b)))

Submission status: Wrong Answer

Solution code:
while 1:
    x,y,z=(i for i in input().split())
    if y=='?':
        break
    elif y=='+':
        print(int(x)+int(z))
    elif y =='-':
        print(int(x)-int(z))
    elif y=='*':
        print(int(x)*int(z))
    else :
        print(int(x)/int(z))

Submission status: Wrong Answer

Solution code:
import sys
a,op,b=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(int(a),op,int(b)))

Submission status: Wrong Answer

Solution code:
while True:
  x=input()
  if '?' in x:
    break
    print(int(eval(x)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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 + a % b)
    elif op == "?":
        break

Submission status: Wrong Answer

Solution code:
n = []
while (True):
	x = list(input().split())
	if x[1] == '?':
		break
	elif x[1] == '+':
		n.append(int(x[0]) + int(x[2]))
		pass
	elif x[1] == '-':
		n.append(int(x[0]) - int(x[2]))
		pass
	elif x[1] == '*':
		n.append(int(x[0]) * int(x[2]))
		pass
	elif x[1] == '/':
		n.append(int(x[0]) / int(x[2]))
		pass
for i in n:
	print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    a, op, b = map(str, input().split())
    a, b = 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

Submission status: Wrong Answer

Solution code:
while True:
    x=input()
    if x=="0 ? 0":
        break
    print(eval(x))

Submission status: Wrong Answer

Solution code:
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))
        else:
            print("error")

Submission status: Wrong Answer

Solution code:
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))
        else:
            print("error")

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 = (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 = (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:
I = input().split()
a = int(I[0])
e = I[1]
b = int(I[2])

while(True):
    if(e == '+'):
        print(a + b)
    if(e == '-'):
        print(a - b)
    if(e == '*'):
        print(a * b)
    if(e == '/'):
        print("{0:.0f}".format(a / b))
    if(e == '?'):
        break
    I = input().split()
    a = int(I[0])
    e = I[1]
    b = int(I[2])

Submission status: Wrong Answer

Solution code:
I = input().split()
a = int(I[0])
e = I[1]
b = int(I[2])

while(True):
    if(e == '+'):
        print(a + b)
    if(e == '-'):
        print(a - b)
    if(e == '*'):
        print(a * b)
    if(e == '/'):
        print("{0:.0f}".format(float(a / b)))
    if(e == '?'):
        break
    I = input().split()
    a = int(I[0])
    e = I[1]
    b = int(I[2])

Submission status: Wrong Answer

Solution code:
I = input().split()
a = int(I[0])
e = I[1]
b = int(I[2])

while(True):
    if(e == '+'):
        print(a + b)
    if(e == '-'):
        print(a - b)
    if(e == '*'):
        print(a * b)
    if(e == '/'):
        print("{0:.0f}".format(float(a) / float(b)))
    if(e == '?'):
        break
    I = input().split()
    a = int(I[0])
    e = I[1]
    b = int(I[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    a=input()
    if '?' in a:break
    eval(a)

Submission status: Wrong Answer

Solution code:
while True:
    data = list(input().split(" "))
    a = int(data[0])
    b = int(data[2])
    if data[1] == "?":
        break
    elif data[1] == "+":
        print(a+b)
    elif data[1] == "-":
        print(a-b)
    elif data[1] == "*":
        print(a*b)
    else:
        print(a/b)

Submission status: Wrong Answer

Solution code:
while 1:
    a, operator, b = input().split()
    if operator == "+":
        print(int(a) + int(b))
    elif operator == "-":
        print(int(a) - int(b))
    elif operator == "*":
        print(int(a) * int(b))
    elif operator == "/":
        print(int(a) / int(b))
    elif operator == "?":
        break
    else:
        print("'" + operator + "'" + " is not a operator.")

Submission status: Wrong Answer

Solution code:
while True:
    x = input()
    if '?' in x:
        break
    print(eval(x))

Submission status: Wrong Answer

Solution code:
l = [str(i) for i in input().split()]

a = int(l[0])
b = int(l[2])
op = l[1]

if op == "+":
    print(a+b)
    
elif op == "-":
    print(a-b)
    
elif op == "*":
    print(a*b)
    
elif op == "/":
    print(int(a/b))
 
elif l == ["0","?","0"]:
    pass

Submission status: Wrong Answer

Solution code:
l = [str(i) for i in input().split()]

a = int(l[0])
b = int(l[2])
op = l[1]

if op == "+":
    print(a+b)
    
elif op == "-":
    print(a-b)
    
elif op == "*":
    print(a*b)
    
elif op == "/":
    print(int(a/b))
 
elif op == "?":
    pass

Submission status: Wrong Answer

Solution code:
l = [str(i) for i in input().split()]

a = int(l[0])
b = int(l[2])
op = l[1]

if op == "+":
    print(a+b)
    
elif op == "-":
    print(a-b)
    
elif op == "*":
    print(a*b)
    
elif op == "/":
    print(a//b)
 
elif op == "?":
    pass

Submission status: Wrong Answer

Solution code:
l = [str(i) for i in input().split()]

a = int(l[0])
b = int(l[2])
op = l[1]

if op == "+":
    print(a+b)
    
elif op == "-":
    print(a-b)
    
elif op == "*":
    print(a*b)
    
elif op == "/":
    print(a//b)
 
elif op == "?":
    pass

else:
    pass

Submission status: Wrong Answer

Solution code:
l = [str(i) for i in input().split()]

a = int(l[0])
b = int(l[2])
op = l[1]

if op == "+":
    print(a+b)
    
elif op == "-":
    print(a-b)
    
elif op == "*":
    print(a*b)
    
elif op == "/":
    print(a//b)
 
elif op == "?":
    print()

else:
    pass

Submission status: Wrong Answer

Solution code:
result = []

while True:
    indata = input().split()
    a = int(indata[0])
    b = int(indata[2])
    op = indata[1]

    if op == "+":
        result.append(a + b)
    elif op == "-":
        result.append(a - b)
    elif op == "*":
        result.append(a * b)
    elif op == "/":
        result.append(a / b)
    elif op == "?":
        break
    else:
        pass

for i in range(len(result)):
    print("{0:.0f}".format(result[i]))

Submission status: Wrong Answer

Solution code:
import sys
while True:
    x = sys.stdin.readline().strip()
    if "?" in x:
        break
    else:
        a = list(x.split())
        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])

Submission status: Wrong Answer

Solution code:
import sys
while True:
    x = sys.stdin.readline().strip()
    if "?" in x:
        break
    else:
        a = list(x.split())
        x = int(a[0])
        y = int(a[2])
        if a[1] == "+":
            print(x + y)
        elif a[1] == "-":
            print(x - y)
        elif a[1] == "*":
            print(x * y)
        elif a[1] == "/":
            print(x / y)

Submission status: Wrong Answer

Solution code:
import sys
while True:
    x = sys.stdin.readline().strip()
    if "?" in x:
        break
    else:
        a = list(x.split())
        x = float(a[0])
        y = float(a[2])
        if a[1] == "+":
            print(x + y)
        elif a[1] == "-":
            print(x - y)
        elif a[1] == "*":
            print(x * y)
        elif a[1] == "/":
            print(x / y)

Submission status: Wrong Answer

Solution code:
import sys
while True:
    x = sys.stdin.readline().strip()
    a = list(x.split())
    if a[1] == "?":
        break
    else:
        x = int(a[0])
        y = int(a[2])
        if a[1] == "+":
            print(x + y)
        elif a[1] == "-":
            print(x - y)
        elif a[1] == "*":
            print(x * y)
        elif a[1] == "/":
            print(x / y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    inst = input()
    if inst.find("?") > 0:
        break
    if inst.find("/") > 0:
        inst.replace("/", "//")
    print(eval(inst))

Submission status: Wrong Answer

Solution code:
x = []

while True:
    x = input().split()
    if x[1] == "?":
        break 
    elif x[1] == "+":
        print(int(x[0]) + int(x[2]))
    elif x[1] == "-":
        print(int(x[0]) - int(x[2]))
    elif x[1] == "*":
        print(int(x[0]) * int(x[2]))
    elif x[1] == "/":
        print(int(x[0]) / int(x[2]))

Submission status: Wrong Answer

Solution code:
#-*- coding:utf-8
import sys

def main():
    lines = sys.stdin.readlines()

    print(lines)

    for i, line in enumerate(lines):
        line = line.strip("\n")
        print(i, ":", line)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
#-*- coding:utf-8
import sys

def main():
    lines = sys.stdin.readlines()

    print(lines)

    for i, line in enumerate(lines):
        line = line.strip("\n")
        print(3)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
lines=sys.stdin.readlines()
for line in lines:
    l=line.split()
    if l[1]=='?':break
    if l[1]=='+':a=l[0]+l[2]
    if l[1]=='-':a=l[0]-l[2]
    if l[1]=='*':a=l[0]*l[2]
    if l[1]=='/':a=l[0]/l[2]
    print(a)

Submission status: Wrong Answer

Solution code:

import sys
lines=sys.stdin.readlines()
for line in lines:
    l=line.split()
    if l[1]=='?':break
    if l[1]=='+':a=l[0]+l[2]
    if l[1]=='-':a=l[0]-l[2]
    if l[1]=='*':a=l[0]*l[2]
    if l[1]=='/':a=l[0]//l[2]
    print(a)

Submission status: Wrong Answer

Solution code:
l=[0,'',0]
a,l[1],c=input().split()
l[0]=int(a)
l[2]=int(c)
if l[1]=='?': exit()
if l[1]=='+':a=l[0]+l[2]
if l[1]=='-':a=l[0]-l[2]
if l[1]=='*':a=l[0]*l[2]
if l[1]=='/':a=l[0]//l[2]
print(a)

Submission status: Wrong Answer

Solution code:
def main():
    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 == '?': return 0
    print('%d' % int(func(a, b)))

main()

Submission status: Wrong Answer

Solution code:
def main():
    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 != '?': 
        print('%d' % int(func(a, b)))

main()

Submission status: Wrong Answer

Solution code:
while True:
  try:
    print(eval(input()))
  except SyntaxError:
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=[]
while True:
 n=input()
 if n=='0 ? 0':break
 a.append(n)
for s in a:
 b=eval("".join(s.split()))
 print(b)

Submission status: Wrong Answer

Solution code:
a=[]
while True:
 n=input()
 if n=='0 ? 0':break
 a.append(n)
for s in a:
 b=eval(''.join(s.split(' ')))
 print(b)

Submission status: Wrong Answer

Solution code:
a=[]
while True:
 n=input()
 if n=='0 ? 0':break
 a.append(n)
for s in a:
 b=eval(''.join(s.split()))
 print(b)

Submission status: Wrong Answer

Solution code:
while True:
 a=input()
 if a.find('?')>0:break
 print(eval(''.join(a.split())))

Submission status: Wrong Answer

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

class Calc:
    def __init__(self,a,op,b):
        self.a = a
        self.b = b
        self.op = op

    def calc(self):
        if self.op == "+":
            return self.a + self.b
        elif self.op == "-":
            return self.a - self.b
        elif self.op == "*":
            return self.a * self.b
        elif self.op == "/":
            return self.a / self.b
        else:
            return "Invalid Operator."

def main():
    data = []
    while 1:
        n = input().split()
        a = int(n[0])
        op = n[1]
        b = int(n[2])
        if op == "?":
            break

        data.append(Calc(a,op,b))

    for i in data:
        print(i.calc())

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import math

class Calc:
    def __init__(self,a,op,b):
        self.a = a
        self.b = b
        self.op = op

    def calc(self):
        if self.op == "+":
            return self.a + self.b
        elif self.op == "-":
            return self.a - self.b
        elif self.op == "*":
            return self.a * self.b
        elif self.op == "/":
            try:
                ans = self.a / self.b
            except ZeroDivisionError:
                return 0
            else:
                return ans
        else:
            return "Invalid Operator."

def main():
    data = []
    while 1:
        n = input().split()
        a = int(n[0])
        op = n[1]
        b = int(n[2])
        if op == "?":
            break

        data.append(Calc(a,op,b))

    for i in data:
        print(i.calc())

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
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(float(a)/float(b))
	except EOFError:
		break

Submission status: Wrong Answer

Solution code:
while True:
    a,op,b = [x for x in input().split( )]
    a,b = [int(y) for y in [a,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:
def scalc():
    while (True):
        a, op, b = input().split(" ")
        a = int(a)
        b = int(b)
        if op == '?':
            break
        elif op == '+':
            print(a+b)
        elif op == '-':
            print(a-b)
        elif op == '*':
            print(a*b)
        elif op == '/':
            print(a/b)
        else :
            break
    return 0

if __name__ == "__main__":
    ret = scalc()

Submission status: Wrong Answer

Solution code:
#Computation - Simple Calculator

while True:
    a,op,b=map(str,input().split())
    if op=="?":
        break
    
    if op=="+":
        print(int(a)+int(b))
    elif op=="-":
        print(int(a)-int(b))
    elif op=="*":
        print(int(a)*int(b))
    elif op=="/":
        print("%.0f" %(int(a)/int(b)))

Submission status: Wrong Answer

Solution code:
opt = []
while True:
    a,op,b = map(str, input().split())
    if op == '+':
        result = int(a)+int(b)
    elif op == '-':
        result = int(a)-int(b)
    elif op == '*':
        result = int(a)*int(b)
    elif op == '/':
        result = int(a)/int(b)
    elif op == '?':
        break
    else:
        break
    opt.append(result)

for i in range(len(opt)):
    print(opt[i])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env/ python

Submission status: Wrong Answer

Solution code:
a, op, b = input().split()
while op != '?':
    a, b = int(a), int(b)
    if op == '+': a += b
    if op == '-': a -= b
    if op == '*': a *= b
    if op == '/': a /= b
    print(a)
    a, op, b = input().split()

Submission status: Wrong Answer

Solution code:
x=[]
i=0
while 1:
    l=input().split()
    a=int(l[0])
    b=int(l[2])
    op=str(l[1])

    if op=="?":
        break
    elif op=="/":
        if b==0:
            pass
        else:
            x.append(eval(str(a)+op+str(b)))
            i=i+1
    else:
        x.append(eval(str(a)+op+str(b)))
        i=i+1

m=0
while m<i:
    print(x[m])
    m=m+1

Submission status: Wrong Answer

Solution code:
import math
x=[]
i=0
while 1:
    l=input().split()
    a=int(l[0])
    b=int(l[2])
    op=str(l[1])

    if op=="?":
        break
    elif op=="/":
        if b==0:
            pass
        else:
            x.append(eval(str(a)+op+str(b)))
            i=i+1
    else:
        x.append(math.floor(eval(str(a)+op+str(b))))
        i=i+1

m=0
while m<i:
    print(x[m])
    m=m+1

Submission status: Wrong Answer

Solution code:
x=[]
i=0
while 1:
    l=input().split()
    a=int(l[0])
    b=int(l[2])
    op=str(l[1])

    if op=="?":
        break
    elif op=="/":
        if b==0:
            pass
        else:
            x.append(round(eval(str(a)+op+str(b))))
            i=i+1
    else:
        x.append(eval(str(a)+op+str(b)))
        i=i+1

m=0
while m<i:
    print(x[m])
    m=m+1

Submission status: Wrong Answer

Solution code:
while True:
	l=input()
	if '?' in l:
		break
	print(eval(l))