[백준] 15596. 정수 N개의 합 (C++)
문제 : www.acmicpc.net/problem/15596 15596번: 정수 N개의 합 C++14, Java, Python 3, C11, PyPy3, C, C++, C++11, C++17, Python 2, PyPy2, Go, C (Clang), C++ (Clang), C++11 (Clang), C++14 (Clang), C11 (Clang), C++17 (Clang) www.acmicpc.net 풀이 1 2 3 4 5 6 7 8 9 10 #include using namespace std; long long sum(vector &a) { long long ans = 0; for(vector::iterator itr = a.begin(); itr != a.end(); itr++){ ans += *i..