https://www.acmicpc.net/problem/2010
[Code]
import sys
num = int(sys.stdin.readline())
sums=0
for i in range(num):
a=int(sys.stdin.readline())
sums=sums+a
sums=sums-1
print(sums+1)
'๐ฏ์๊ณ ๋ฆฌ์ฆ > ํ์ด์ฌ ๊ธฐ๋ณธ ์๊ณ ๋ฆฌ์ฆ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค/Python] 10886: 0 = not cute / 1 = cute (0) | 2023.07.01 |
---|---|
[๋ฐฑ์ค/Python] 20540:์ฐ๊ธธ์ด์ ์ด์ํ (0) | 2023.07.01 |
[Python/BOJ]2420: ์ฌํ๋ฆฌ์๋ (0) | 2023.07.01 |
[Python/BOJ]8393: ํฉ (0) | 2023.07.01 |
[Python/BOJ]2557: Hello World (0) | 2023.07.01 |