본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#171 백준 파이썬 [2935] 소음

https://www.acmicpc.net/problem/2935

 

#Solution

파이썬으론 틀릴 수가 없는 문제다.

A = int(input())
cal = str(input())
B = int(input())

if cal == '*':
    print(A*B)
else:
    print(A+B)