20892022-12-19 08:21:18szabel26Oszthatóság 31-gyelcpp17Wrong answer 48/503ms3632 KiB
#include <iostream>
#include <vector>

using namespace std;

long long n,k;

vector<long long>sz;

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

    if(n%31==0) cout<<"IGEN"<<"\n";
        else cout<<"NEM"<<"\n";
    for(auto &e:sz) cout<<e<<" ";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms1876 KiB
2Accepted0/02ms2124 KiB
3Accepted3/32ms2324 KiB
4Accepted3/32ms2348 KiB
5Accepted4/42ms2480 KiB
6Accepted4/42ms2712 KiB
7Accepted4/42ms2752 KiB
8Accepted4/42ms2756 KiB
9Accepted4/42ms3032 KiB
10Accepted4/42ms3108 KiB
11Accepted4/42ms3184 KiB
12Accepted4/42ms3308 KiB
13Accepted4/42ms3516 KiB
14Accepted4/42ms3632 KiB
15Accepted2/22ms3632 KiB
16Wrong answer0/22ms3632 KiB