70552023-12-29 07:42:52MagyarKendeSZLGOszthatóság 17-tel (60 pont)cpp17Wrong answer 56/603ms3496 KiB
#include <bits/stdc++.h>

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

using namespace std;

int main() {
    speed;

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

    while (0 < N) {
        N = (N / 10) - (N % 10) * 5;
        if (0 <= N) cout << N << ' ';
    }
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1892 KiB
2Accepted0/03ms2084 KiB
3Accepted3/33ms2212 KiB
4Accepted3/33ms2392 KiB
5Accepted4/43ms2624 KiB
6Accepted4/43ms2820 KiB
7Accepted4/43ms2900 KiB
8Accepted5/53ms3028 KiB
9Accepted5/53ms3268 KiB
10Accepted5/53ms3496 KiB
11Accepted5/53ms3448 KiB
12Accepted6/63ms3428 KiB
13Accepted6/63ms3332 KiB
14Accepted6/63ms3324 KiB
15Wrong answer0/23ms3432 KiB
16Wrong answer0/23ms3328 KiB