65972023-12-12 17:37:09Huni136Oszthatóság 31-gyelcpp17Time limit exceeded 23/50300ms4328 KiB
#include <iostream>
using namespace std;

int main()
{
    long long a;
    cin>>a;
    /////if(a%31==0)
    //{
        cout<<(a%31==0?"IGEN":"NEM")<<endl;
        a=a/10-(a%10*3);
        while(a>=0)
        {
            cout<<a<<" ";
            a=a/10-(a%10*3);
            
        }
    //}
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Time limit exceeded0/0256ms1228 KiB
2Accepted0/03ms2284 KiB
3Accepted3/33ms2356 KiB
4Time limit exceeded0/3298ms2632 KiB
5Time limit exceeded0/4256ms2152 KiB
6Accepted4/43ms2760 KiB
7Accepted4/43ms2956 KiB
8Time limit exceeded0/4272ms2568 KiB
9Time limit exceeded0/4256ms3392 KiB
10Accepted4/43ms3524 KiB
11Time limit exceeded0/4300ms3076 KiB
12Accepted4/43ms3824 KiB
13Accepted4/43ms4072 KiB
14Time limit exceeded0/4300ms4144 KiB
15Time limit exceeded0/2259ms3592 KiB
16Wrong answer0/23ms4328 KiB