Python3/백준 알고리즘
2022.02.10 [백준] (python 파이썬) 합
ian's coding
2022. 2. 10. 17:38
728x90
반응형
https://www.acmicpc.net/problem/8393
8393번: 합
n이 주어졌을 때, 1부터 n까지 합을 구하는 프로그램을 작성하시오.
www.acmicpc.net
풀이
1 2 3 | n=int(input()) a=list([i for i in range(1,n+1)]) print(sum(a)) | cs |
728x90
반응형