20922022-12-19 08:44:09szabel26Oszthatóság 31-gyelcpp17Runtime error 23/5048ms37184 KiB
#include <iostream>
#include <vector>

using namespace std;

long long n,k;

vector<long long>sz;

int main()
{
    cin>>n;
    if(n%31==0) cout<<"IGEN"<<"\n";
        else cout<<"NEM"<<"\n";

    while (n>=0)
    {
        k=n%10;
        n/=10;
        n-=3*k;
        if(n>=0) sz.push_back(n);
    }

    for(auto &e:sz) cout<<e<<" ";
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Runtime error0/041ms35248 KiB
2Accepted0/02ms2164 KiB
3Accepted3/32ms2392 KiB
4Runtime error0/348ms35968 KiB
5Runtime error0/441ms35944 KiB
6Accepted4/42ms2796 KiB
7Accepted4/42ms3040 KiB
8Runtime error0/441ms36624 KiB
9Runtime error0/439ms36820 KiB
10Accepted4/42ms3688 KiB
11Runtime error0/448ms37012 KiB
12Accepted4/42ms3896 KiB
13Accepted4/42ms3936 KiB
14Runtime error0/448ms37176 KiB
15Runtime error0/248ms37184 KiB
16Wrong answer0/22ms4044 KiB