728x90
반응형
n = int(input())
print((n * (n+1)) // 2)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 9012번 괄호(python) (0) | 2020.02.13 |
---|---|
백준 알고리즘 8958번 OX퀴즈(python) (0) | 2020.02.13 |
백준 알고리즘 7568번 덩치(python) (0) | 2020.02.13 |
백준 알고리즘 7287번 등록(python) (0) | 2020.02.13 |
백준 알고리즘 6378번 디지털 루트(python) (0) | 2020.02.13 |