← Back to List

2408번: 큰 수 계산 ↗

Solutions

Python 3
133 B | 133 chars
n = int(input())
s = ""
for i in range(2*n-1):
    a = input()
    if a == "/":
        s+="//"
    else:
        s+=a
print(eval(s))