73852024-01-08 13:05:03anonOszthatóság 37-telcpp17Accepted 40/403ms3808 KiB
#include <bits/stdc++.h>
#define FastIO ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
using namespace std;
typedef long long ll;
int main() {
    FastIO;
    ll N;
    cin >> N;
    cout << ((N % 37) ? "NEM" : "IGEN") << '\n';
    while(N > 0) {
        N = N / 10 - (N % 10) * 11;
        if(N >= 0)
            cout << N << ' ';
    }
    cout << '\n';
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms1924 KiB
2Accepted0/03ms2156 KiB
3Accepted3/33ms2372 KiB
4Accepted3/33ms2520 KiB
5Accepted3/33ms2736 KiB
6Accepted3/33ms2820 KiB
7Accepted3/33ms2924 KiB
8Accepted3/33ms2928 KiB
9Accepted3/33ms3064 KiB
10Accepted3/33ms3276 KiB
11Accepted3/33ms3492 KiB
12Accepted3/33ms3584 KiB
13Accepted3/33ms3584 KiB
14Accepted3/33ms3720 KiB
15Accepted2/23ms3708 KiB
16Accepted2/23ms3808 KiB