120352024-11-25 15:56:59KissCsongor777Oszthatóság 31-gyelcpp17Wrong answer 0/501ms548 KiB
#include <iostream>

using namespace std;

int main()
{
    int N;
    cin>>N;
    while(N>0)
    {
       cout<<N<<" ";
       N=N/10-(N%10*3);
    }
    if(N==0)cout<<"IGEN";
    else cout<<"NEM";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms500 KiB
2Wrong answer0/01ms508 KiB
3Wrong answer0/31ms336 KiB
4Wrong answer0/31ms320 KiB
5Wrong answer0/41ms320 KiB
6Wrong answer0/41ms372 KiB
7Wrong answer0/41ms548 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/21ms320 KiB
16Wrong answer0/21ms320 KiB