eval 함수를 쓰는게 포인트
오랜만이네 ㅋㅋㅋ
ans = []
for _ in range(3):
ans.append(input())
print(eval(ans[0] + ans[1] + ans[2]))
'Algorithm > Implementaion' 카테고리의 다른 글
[백준] 10103번 주사위 게임 (0) | 2020.10.20 |
---|---|
[백준] 2480번 주사위 세개 (0) | 2020.10.20 |
[백준] 2530번 인공지능 시계 (0) | 2020.10.20 |
[백준] 2476번 주사위 게임 (0) | 2020.10.20 |
[백준] 4101번 크냐? (0) | 2020.10.20 |
댓글