https://www.acmicpc.net/problem/15596 : 정수 N개의 합 #include #include #include using namespace std; long long sum(std::vector &a){ long long sum = 0; vector::iterator ptr; for (ptr = a.begin(); ptr != a.end(); ++ptr) sum += *ptr; return sum; } https://www.acmicpc.net/problem/4673 : 셀프 넘버 #include using namespace std; bool self[10001]; int d(int a){ int num = a; while (true){ if (a == 0) break; num ..