15422022-11-22 23:43:24TomaSajtOszthatóság 37-telcpp14Accepted 40/403ms3620 KiB
#include <bits/stdc++.h>
#define speed ios::sync_with_stdio(0);cin.tie(0)
using namespace std;

int main() {
    speed;
    int n; cin >> n;
    cout << (n % 37 == 0 ? "IGEN" : "NEM") << '\n';
    while (n > 0) {
        n = n / 10 - 11 * (n % 10);
        if (n >= 0) cout << n << ' ';
    }
    cout << '\n';
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms1764 KiB
2Accepted0/02ms1924 KiB
3Accepted3/32ms2132 KiB
4Accepted3/32ms2336 KiB
5Accepted3/32ms2412 KiB
6Accepted3/32ms2536 KiB
7Accepted3/32ms2768 KiB
8Accepted3/32ms2844 KiB
9Accepted3/32ms2852 KiB
10Accepted3/32ms3072 KiB
11Accepted3/32ms3276 KiB
12Accepted3/32ms3340 KiB
13Accepted3/32ms3376 KiB
14Accepted3/32ms3584 KiB
15Accepted2/22ms3612 KiB
16Accepted2/22ms3620 KiB