59602023-10-06 19:19:50mmatedOszthatóság 17-tel (60 pont)cpp17Accepted 60/603ms4220 KiB
#include <bits/stdc++.h>
using namespace std;
#define f(i,k,n) for(int i=k; i<n; i++)
#define ll long long
const int inf = INT_MAX;

void solve()
{
    int n;
    cin>>n;
    if(n%17==0) cout<<"IGEN\n";
    else    cout<<"NEM\n";
    while(n>0)
    {
        n=n/10 - (n%10)*5;
        if(n>=0)    cout<<n<<" ";
    }
    cout<<"\n";
}

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t=1;
    //cin>>t;
    while(t--)  solve();
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms1912 KiB
2Accepted0/03ms1988 KiB
3Accepted3/33ms2180 KiB
4Accepted3/33ms2400 KiB
5Accepted4/42ms2488 KiB
6Accepted4/43ms2768 KiB
7Accepted4/43ms2844 KiB
8Accepted5/53ms2992 KiB
9Accepted5/53ms3208 KiB
10Accepted5/53ms3420 KiB
11Accepted5/53ms3636 KiB
12Accepted6/63ms3852 KiB
13Accepted6/62ms3924 KiB
14Accepted6/63ms3924 KiB
15Accepted2/23ms4120 KiB
16Accepted2/22ms4220 KiB