본문 바로가기
python-algorithm

[백준] 2010

by 무적김두칠 2020. 12. 18.

1
2
3
4
5
6
7
import sys
= int(sys.stdin.readline())
ans=0
for i in range(n):
    tmp=int(sys.stdin.readline())
    ans+=tmp
print(ans- (n-1))
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 2355  (0) 2020.12.18
[백준] 2061  (0) 2020.12.18
[백준] 1975  (0) 2020.12.17
[백준] 1964  (0) 2020.12.17
[백준] 1864  (0) 2020.12.17

댓글