120262024-11-25 15:01:31ruffbrigiOszthatóság 31-gyelcpp17Wrong answer 23/501ms384 KiB
#include <iostream>

using namespace std;

int main()
{
    long long N,M;
    cin>>N;
    M=N;
    while(N>0)
    {
        N=(N/10)-3*(N%10);
    }
    if(N%31==0) cout<<"IGEN"<<endl;
    else cout<<"NEM"<<endl;
    while(M>0)
    {
        M=M/10-3*(M%10);
        if(M>0) cout<<M<<" ";
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Wrong answer0/01ms320 KiB
2Accepted0/01ms320 KiB
3Accepted3/31ms320 KiB
4Wrong answer0/31ms320 KiB
5Wrong answer0/41ms320 KiB
6Accepted4/41ms384 KiB
7Accepted4/41ms320 KiB
8Wrong answer0/41ms320 KiB
9Wrong answer0/41ms320 KiB
10Accepted4/41ms320 KiB
11Wrong answer0/41ms320 KiB
12Accepted4/41ms320 KiB
13Accepted4/41ms320 KiB
14Wrong answer0/41ms320 KiB
15Wrong answer0/21ms320 KiB
16Wrong answer0/21ms320 KiB