30432023-02-08 20:05:23xxxOszthatóság 17-tel (60 pont)cpp14Accepted 60/603ms3976 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	if (n == 0) {
		cout << "IGEN" << endl << 0 <<endl;
		return 0;
	}
	if (n % 17 == 0) {
		cout << "IGEN" << endl;
	}
	else {
		cout << "NEM" << endl;
	}
       if (n == 0) {
               cout << 0;
               return 0;
       }
	while (n > 0) {
		n = (n / 10) - (n % 10 * 5);
		if (n >= 0) {
			cout << n <<" ";
		}
	}
	cout << endl;
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted3/33ms2640 KiB
4Accepted3/33ms2748 KiB
5Accepted4/43ms2768 KiB
6Accepted4/43ms2896 KiB
7Accepted4/43ms3108 KiB
8Accepted5/53ms3316 KiB
9Accepted5/53ms3572 KiB
10Accepted5/53ms3612 KiB
11Accepted5/53ms3648 KiB
12Accepted6/63ms3760 KiB
13Accepted6/63ms3880 KiB
14Accepted6/63ms3888 KiB
15Accepted2/23ms3860 KiB
16Accepted2/23ms3976 KiB