70132023-12-26 18:15:45BenedekMartonOszthatóság 37-telcpp11Accepted 40/403ms3784 KiB
#include <iostream>
#include <queue>
using namespace std;

int main()
{
    long long int n;
    cin >> n;
    if(n%37==0)
    {
        cout << "IGEN";
    }
    else
    {
        cout << "NEM";
    }
    cout << endl;
    while(n>0)
    {
        n=n/10-(n%10)*11;
        if(n>=0)
        {
            cout << n << " ";
        }
    }
    cout << endl;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms1876 KiB
2Accepted0/03ms2072 KiB
3Accepted3/33ms2276 KiB
4Accepted3/33ms2424 KiB
5Accepted3/33ms2592 KiB
6Accepted3/33ms2804 KiB
7Accepted3/33ms2888 KiB
8Accepted3/33ms3012 KiB
9Accepted3/33ms3136 KiB
10Accepted3/33ms3260 KiB
11Accepted3/33ms3276 KiB
12Accepted3/33ms3256 KiB
13Accepted3/33ms3248 KiB
14Accepted3/33ms3492 KiB
15Accepted2/23ms3700 KiB
16Accepted2/23ms3784 KiB