사생활 보호 설정
https://gamjia.tistory.com
Updated News
Mini Rooms
답글수 [0]
What Friends Say
한마디로 표현해봐~
1촌평 관리
15596번 정수 N개의 합
GamJia 2023. 3. 24. 09:10
단계별로 풀어보기 - 함수 - 1단계
https://www.acmicpc.net/problem/15596
#include <vector> using namespace std; long long sum(std::vector<int> &a) { long long ans = 0; for(int i=0;i<a.size();i++) { ans=ans+=a[i]; } return ans; }