## 문제
BOJ 15596 정수 N개의 합
## solution
정수 n개가 주어졌을 때, n개의 합을 구하는 함수를 작성
## CODE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def solve(a:list): | |
return sum(a) |
더 간단한 풀이도 있다.
```python
solve=sum
```
0 댓글