25132023-01-15 11:53:36Zoli9Oszthatóság 17-tel (60 pont)cpp17Accepted 60/603ms3800 KiB
// HZsófi
#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;
	}
	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/02ms2120 KiB
3Accepted3/32ms2284 KiB
4Accepted3/32ms2364 KiB
5Accepted4/42ms2488 KiB
6Accepted4/42ms2736 KiB
7Accepted4/42ms2812 KiB
8Accepted5/52ms2772 KiB
9Accepted5/52ms2900 KiB
10Accepted5/52ms2972 KiB
11Accepted5/52ms3104 KiB
12Accepted6/62ms3180 KiB
13Accepted6/62ms3428 KiB
14Accepted6/62ms3760 KiB
15Accepted2/22ms3728 KiB
16Accepted2/22ms3800 KiB