65982023-12-12 17:41:33Huni136Oszthatóság 31-gyelcpp17Time limit exceeded 23/50296ms3732 KiB
#include <iostream>
using namespace std;

int main()
{
    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
1Time limit exceeded0/0289ms1288 KiB
2Accepted0/03ms2252 KiB
3Accepted3/33ms2448 KiB
4Time limit exceeded0/3272ms1796 KiB
5Time limit exceeded0/4279ms2044 KiB
6Accepted4/43ms3040 KiB
7Accepted4/43ms3116 KiB
8Time limit exceeded0/4284ms2652 KiB
9Time limit exceeded0/4287ms2704 KiB
10Accepted4/43ms3432 KiB
11Time limit exceeded0/4286ms2608 KiB
12Accepted4/43ms3532 KiB
13Accepted4/43ms3536 KiB
14Time limit exceeded0/4261ms2888 KiB
15Time limit exceeded0/2296ms2836 KiB
16Wrong answer0/23ms3732 KiB