65992023-12-12 17:49:49Huni136Oszthatóság 31-gyelcpp17Wrong answer 23/503ms3516 KiB
#include <iostream>
#include <vector>
using namespace std;

int main()
{
    // long long a;
    // cin>>a;
    // if(a<=0)
    // {
    //     cout<<"NEM";
    // }
    
    long long a;
    cin>>a;
    int x[10]={0,3,6,9,12,15,18,21,24,27};
    /////if(a%31==0)
    //{
        cout<<(a%31==0?"IGEN":"NEM")<<endl;
        a=a/10-x[a%10];
        while(a>0)
        {
            cout<<a<<" ";
            a=a/10-x[a%10];
            
        }
    //}

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Wrong answer0/03ms1952 KiB
2Accepted0/03ms2072 KiB
3Accepted3/33ms2304 KiB
4Wrong answer0/33ms2464 KiB
5Wrong answer0/43ms2516 KiB
6Accepted4/43ms2736 KiB
7Accepted4/43ms2860 KiB
8Wrong answer0/43ms3076 KiB
9Wrong answer0/43ms3236 KiB
10Accepted4/42ms3168 KiB
11Wrong answer0/43ms3364 KiB
12Accepted4/43ms3464 KiB
13Accepted4/43ms3500 KiB
14Wrong answer0/43ms3516 KiB
15Wrong answer0/23ms3476 KiB
16Wrong answer0/23ms3476 KiB