120362024-11-25 15:59:57KissCsongor777Oszthatóság 31-gyelcpp17Wrong answer 0/501ms508 KiB
#include <iostream>

using namespace std;

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