Algorithm/SWEA

[SWEA] 2025: N줄 덧셈 (python)

b22mer 2022. 7. 4. 17:47
1
N= int(input())

sum=0

for i in range(N):
  sum+=i+1

print(sum)
cs