1112021-01-13 07:25:49kidesoOszthatóság 37-telcpp11Accepted 40/402ms1952 KiB
#include <iostream>
#include <vector>

using namespace std;

vector <int> y;
int N, m;

int main()
{
	cin >> N;
	if (N % 37 == 0) cout << "IGEN\n";
	else cout << "NEM\n";

	while (N > 0)
	{
		m = N % 10;
		N /= 10;
		N -= 11 * m;
		if (N >= 0) y.push_back(N);
	}

	for (auto e : y)
		cout << e << ' ';

	if (y.empty()) cout << '\n';
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/02ms1800 KiB
2Accepted0/01ms1884 KiB
3Accepted3/31ms1888 KiB
4Accepted3/32ms1900 KiB
5Accepted3/31ms1896 KiB
6Accepted3/31ms1916 KiB
7Accepted3/31ms1912 KiB
8Accepted3/31ms1912 KiB
9Accepted3/31ms1924 KiB
10Accepted3/31ms1924 KiB
11Accepted3/31ms1920 KiB
12Accepted3/31ms1936 KiB
13Accepted3/31ms1936 KiB
14Accepted3/31ms1940 KiB
15Accepted2/21ms1944 KiB
16Accepted2/21ms1952 KiB