120292024-11-25 15:19:15ruffbrigiOszthatóság 31-gyelcpp17Wrong answer 48/501ms560 KiB
#include <iostream>

using namespace std;

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