728x90
1
2
3
4
5
|
n = int(input())
m=0
for i in range(0,n+1,1):
m = m + i
print(m)
|
cs |
728x90
'Study > BAEKJOON' 카테고리의 다른 글
[BAEKJOON] 2741 : N 찍기 - python3 (0) | 2021.08.05 |
---|---|
[BAEKJOON] 15552 : 빠른 A+B - python3 (0) | 2021.08.05 |
[BAEKJOON] 10950 : A+B - 3 - python3 (0) | 2021.08.05 |
[BAEKJOON] 2739 : 구구단 - python3 (0) | 2021.08.05 |
[BAEKJOON] 2884 : 알람 시계 - python3 (0) | 2021.08.04 |