66192023-12-12 19:44:19horvathabelOszthatóság 37-telcpp17Accepted 40/403ms3688 KiB
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    if (n%37==0) cout<<"IGEN"<<endl;
    else cout<<"NEM"<<endl;
    while (n>0){
        n=n/10-n%10*11;
        if (n>=0) cout<<n<<' ';
    }
    cout<<endl;
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms1880 KiB
2Accepted0/03ms2112 KiB
3Accepted3/33ms2280 KiB
4Accepted3/33ms2524 KiB
5Accepted3/33ms2572 KiB
6Accepted3/33ms2576 KiB
7Accepted3/33ms2704 KiB
8Accepted3/33ms2944 KiB
9Accepted3/33ms3156 KiB
10Accepted3/33ms3240 KiB
11Accepted3/33ms3356 KiB
12Accepted3/33ms3432 KiB
13Accepted3/33ms3312 KiB
14Accepted3/33ms3428 KiB
15Accepted2/23ms3436 KiB
16Accepted2/23ms3688 KiB