25122023-01-15 11:53:35HorakZsofiOszthatóság 17-tel (60 pont)cpp11Accepted 60/603ms4012 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;
	}
	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/02ms2124 KiB
3Accepted3/32ms2320 KiB
4Accepted3/32ms2528 KiB
5Accepted4/42ms2732 KiB
6Accepted4/42ms2792 KiB
7Accepted4/42ms2860 KiB
8Accepted5/52ms3252 KiB
9Accepted5/52ms3328 KiB
10Accepted5/52ms3416 KiB
11Accepted5/52ms3492 KiB
12Accepted6/62ms3732 KiB
13Accepted6/62ms3740 KiB
14Accepted6/62ms3740 KiB
15Accepted2/22ms3740 KiB
16Accepted2/22ms4012 KiB