246502026-02-13 09:15:16BDavid5616Oszthatóság 31-gyelcpp11Wrong answer 0/501ms508 KiB
#include <iostream>

using namespace std;

int main()
{long long n,q,i,j,k,db=0; int a[100000];
    cin>>n;
    while(n>0){
        q=n%10;
        n=(n/10)-(q*3);
        a[db]=n;
        db++;
    }a[db]=n;
        db++;
    if(n%31==0){
        cout<<"IGEN"<<endl;
        for(i=0;i<db;i++){
            cout<<a[i]<<" ";
        }
    }
    else {
        cout<<"NEM"<<endl;
        for(i=0;i<db-1;i++){
            cout<<a[i]<<" ";
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/31ms316 KiB
4Wrong answer0/31ms316 KiB
5Wrong answer0/41ms316 KiB
6Wrong answer0/41ms316 KiB
7Wrong answer0/41ms508 KiB
8Wrong answer0/41ms316 KiB
9Wrong answer0/41ms316 KiB
10Wrong answer0/41ms316 KiB
11Wrong answer0/41ms316 KiB
12Wrong answer0/41ms316 KiB
13Wrong answer0/41ms508 KiB
14Wrong answer0/41ms316 KiB
15Wrong answer0/21ms508 KiB
16Wrong answer0/21ms316 KiB