17602022-12-02 19:58:21levente19Oszthatóság 37-telcpp11Accepted 40/403ms3792 KiB
#include <bits/stdc++.h>
#define gyorsan ios::sync_with_stdio(0);cin.tie(0)

using namespace std;

int main()
{
    gyorsan;

    long long n;

    cin >> n;

    if(n % 37 == 0) cout << "IGEN" << endl;
    else cout << "NEM" << endl;

    while(n > 0) {
        int lastDigit = n % 10;
        n = n / 10 - lastDigit*11;
        if(n >= 0) cout << n << ' ';
    }

    cout << endl;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms1888 KiB
2Accepted0/02ms2088 KiB
3Accepted3/32ms2288 KiB
4Accepted3/32ms2364 KiB
5Accepted3/32ms2360 KiB
6Accepted3/32ms2492 KiB
7Accepted3/32ms2696 KiB
8Accepted3/32ms2900 KiB
9Accepted3/32ms3108 KiB
10Accepted3/32ms3180 KiB
11Accepted3/32ms3184 KiB
12Accepted3/32ms3312 KiB
13Accepted3/32ms3536 KiB
14Accepted3/32ms3736 KiB
15Accepted2/22ms3792 KiB
16Accepted2/22ms3792 KiB