82222024-01-12 21:38:15mmatedOszthatóság 37-telcpp17Wrong answer 36/403ms4024 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%37==0)   cout<<"IGEN\n";
    else    cout<<"NEM\n";
    while(n/10-11*(n%10)>=0)
    {
        n=n/10-11*(n%10);
        cout<<n<<" ";
        if(n==0)    return;
    }
}

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t=1;
    //cin>>t;
    while(t--)  solve();
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base36/40
1Accepted0/03ms1892 KiB
2Accepted0/03ms2112 KiB
3Accepted3/33ms2324 KiB
4Accepted3/33ms2692 KiB
5Accepted3/33ms2740 KiB
6Accepted3/33ms2760 KiB
7Accepted3/33ms2972 KiB
8Accepted3/33ms3204 KiB
9Accepted3/33ms3276 KiB
10Accepted3/33ms3392 KiB
11Accepted3/32ms3480 KiB
12Accepted3/33ms3604 KiB
13Accepted3/33ms3832 KiB
14Accepted3/33ms3816 KiB
15Wrong answer0/23ms3940 KiB
16Wrong answer0/22ms4024 KiB