67742023-12-19 09:21:59szabelrOszthatóság 31-gyelcpp17Wrong answer 48/503ms3776 KiB
#include <iostream>

using namespace std;

int main()
{
    long long n,x;
    cin>>n;
    if(n%31==0)
        cout<<"IGEN"<<endl;
    else cout<<"NEM"<<endl;
    while(n>0)
    {
        x=n%10;
        if(n/10-(3*x)>=0)
            cout<<n/10-(3*x)<<" ";
        n=n/10-(3*x);
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms1872 KiB
2Accepted0/03ms2056 KiB
3Accepted3/33ms2264 KiB
4Accepted3/33ms2504 KiB
5Accepted4/43ms2760 KiB
6Accepted4/43ms2800 KiB
7Accepted4/43ms2888 KiB
8Accepted4/43ms3012 KiB
9Accepted4/43ms3228 KiB
10Accepted4/43ms3312 KiB
11Accepted4/43ms3468 KiB
12Accepted4/43ms3460 KiB
13Accepted4/43ms3460 KiB
14Accepted4/43ms3456 KiB
15Accepted2/23ms3680 KiB
16Wrong answer0/23ms3776 KiB