주어진 n에 대한 가장 작은 생성자를 구하는 문제 1부터 n까지 하나하나 더해보면 된다 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 #include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, result = 0, sum = 0, temp; cin >> n; for (int i = 1; i