70562023-12-29 07:45:44MagyarKendeSZLGOszthatóság 17-tel (60 pont)cpp17Accepted 60/603ms4424 KiB
#include <bits/stdc++.h>

#define speed cin.tie(0); ios::sync_with_stdio(0)

using namespace std;

int main() {
    speed;

    int N, pc = 0;
    cin >> N;
    cout << (N % 17 ? "NEM" : "IGEN") << '\n';

    while (0 < N) {
        N = (N / 10) - (N % 10) * 5;
        if (0 <= N) {
            cout << N << ' ';
            pc++;
        }
    }

    if (!pc) cout << '\n';
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms1888 KiB
2Accepted0/03ms2084 KiB
3Accepted3/33ms2312 KiB
4Accepted3/33ms2524 KiB
5Accepted4/43ms2588 KiB
6Accepted4/43ms2832 KiB
7Accepted4/43ms3088 KiB
8Accepted5/53ms3236 KiB
9Accepted5/53ms3496 KiB
10Accepted5/53ms3412 KiB
11Accepted5/53ms3404 KiB
12Accepted6/63ms3612 KiB
13Accepted6/63ms3824 KiB
14Accepted6/63ms3864 KiB
15Accepted2/23ms4060 KiB
16Accepted2/23ms4424 KiB