t = int(input()) ans = 0 for i in range(t): ans += int(eval(input())) print(ans)
조건문안쓰고도 eval써서 편하게 풀었다. 소수점은 int로 감싸서 해결!