60392023-10-28 18:48:00tomi7Oszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms3856 KiB
// Source: https://usaco.guide/general/io

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

int main() {
    long long 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<<' ';
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1744 KiB
2Accepted0/03ms1908 KiB
3Accepted3/33ms2156 KiB
4Accepted3/32ms2248 KiB
5Accepted4/43ms2368 KiB
6Accepted4/43ms2584 KiB
7Accepted4/43ms2816 KiB
8Accepted5/53ms2936 KiB
9Accepted5/52ms2960 KiB
10Accepted5/53ms3084 KiB
11Accepted5/53ms3292 KiB
12Accepted6/63ms3508 KiB
13Accepted6/62ms3512 KiB
14Accepted6/62ms3508 KiB
15Wrong answer0/23ms3636 KiB
16Wrong answer0/23ms3856 KiB