61092023-10-30 22:08:45tomi7Oszthatóság 17-tel (60 pont)cpp11Accepted 60/603ms4184 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
	cin>>n;
	if(n%17==0){
		cout<<"IGEN"<<'\n';
	}else{
		cout<<"NEM"<<'\n';
	}
	while(true){
		if(n==0){
			break;
		}
		if(n/10-n%10*5<0){
			break;
		}else{
			n=n/10-n%10*5;
			cout<<n<<' ';
		}
	}
	cout<<'\n';
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted3/33ms2372 KiB
4Accepted3/33ms2584 KiB
5Accepted4/43ms2792 KiB
6Accepted4/43ms2956 KiB
7Accepted4/43ms3200 KiB
8Accepted5/53ms3340 KiB
9Accepted5/52ms3428 KiB
10Accepted5/53ms3552 KiB
11Accepted5/53ms3760 KiB
12Accepted6/63ms3856 KiB
13Accepted6/62ms3848 KiB
14Accepted6/63ms3976 KiB
15Accepted2/23ms4056 KiB
16Accepted2/23ms4184 KiB