14732022-11-03 17:02:05lacitoOszthatóság 37-telcpp11Accepted 40/403ms4208 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	vector<int> v;
	while (n > 0) {
		n = (n / 10) - (n % 10) * 11;
		if (n >= 0) {
			v.push_back(n);
		}
	}
	if (abs(n) % 37 == 0) {
		cout << "IGEN\n";
		
	}
	else {
		cout << "NEM\n";
	}
	for (int x : v) {
		cout << x << " ";
	}
	cout << "\n";
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/03ms1808 KiB
2Accepted0/02ms2056 KiB
3Accepted3/32ms2260 KiB
4Accepted3/32ms2312 KiB
5Accepted3/32ms2532 KiB
6Accepted3/32ms2720 KiB
7Accepted3/32ms2916 KiB
8Accepted3/32ms3168 KiB
9Accepted3/32ms3248 KiB
10Accepted3/32ms3368 KiB
11Accepted3/32ms3448 KiB
12Accepted3/32ms3580 KiB
13Accepted3/32ms3736 KiB
14Accepted3/32ms3976 KiB
15Accepted2/22ms4208 KiB
16Accepted2/22ms4068 KiB