120612024-11-27 12:44:40KissCsongor777Oszthatóság 31-gyelcpp14Wrong answer 48/501ms548 KiB
#include <iostream>

using namespace std;

int main()
{
    int N;
    cin>>N;
    if(N%31==0)cout<<"IGEN "<<endl;
    else cout<<"NEM "<<endl;
    N=N/10-(N%10*3);
    while(N>0)
    {
       cout<<N<<" ";
       N=N/10-(N%10*3);
    }
    if (N==0)cout<<0;
    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/41ms408 KiB
13Accepted4/41ms320 KiB
14Accepted4/41ms548 KiB
15Accepted2/21ms320 KiB
16Wrong answer0/21ms392 KiB