16512022-12-01 12:02:47bzsofiaOszthatóság 31-gyelcpp11Accepted 50/503ms4224 KiB
#include <iostream>

using namespace std;

long long a, o;

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    cin>>a;

    if (a%31==0) cout<<"IGEN";
    else cout<<"NEM";

    cout<<"\n";

    while (a>0)
    {
        a=a/10-(a%10)*3;
        if (a>=0) cout<<a<<" ";
    }

    cout<<"\n";

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/03ms2020 KiB
2Accepted0/02ms2248 KiB
3Accepted3/32ms2380 KiB
4Accepted3/32ms2716 KiB
5Accepted4/42ms2820 KiB
6Accepted4/42ms3056 KiB
7Accepted4/42ms3204 KiB
8Accepted4/42ms3412 KiB
9Accepted4/42ms3576 KiB
10Accepted4/42ms3652 KiB
11Accepted4/42ms3840 KiB
12Accepted4/42ms3744 KiB
13Accepted4/42ms3740 KiB
14Accepted4/42ms3748 KiB
15Accepted2/22ms3964 KiB
16Accepted2/22ms4224 KiB