25112023-01-15 11:51:50Zoli9Oszthatóság 17-tel (60 pont)cpp17Accepted 60/603ms3712 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/03ms1872 KiB
2Accepted0/02ms2124 KiB
3Accepted3/32ms2168 KiB
4Accepted3/32ms2372 KiB
5Accepted4/42ms2612 KiB
6Accepted4/42ms2824 KiB
7Accepted4/42ms2892 KiB
8Accepted5/52ms2988 KiB
9Accepted5/52ms3096 KiB
10Accepted5/52ms3176 KiB
11Accepted5/52ms3336 KiB
12Accepted6/62ms3428 KiB
13Accepted6/62ms3332 KiB
14Accepted6/62ms3464 KiB
15Accepted2/22ms3464 KiB
16Accepted2/22ms3712 KiB