17592022-12-02 19:57:31levente19Oszthatóság 37-telcpp11Wrong answer 36/403ms4068 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 << ' ';
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base36/40
1Accepted0/03ms1792 KiB
2Accepted0/02ms1976 KiB
3Accepted3/32ms2208 KiB
4Accepted3/32ms2444 KiB
5Accepted3/32ms2644 KiB
6Accepted3/32ms2888 KiB
7Accepted3/32ms3092 KiB
8Accepted3/32ms3160 KiB
9Accepted3/32ms3128 KiB
10Accepted3/32ms3260 KiB
11Accepted3/32ms3444 KiB
12Accepted3/32ms3488 KiB
13Accepted3/32ms3588 KiB
14Accepted3/32ms3796 KiB
15Wrong answer0/22ms4016 KiB
16Wrong answer0/22ms4068 KiB