60402023-10-28 18:51:41tomi7Oszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms3616 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<<' ';
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1744 KiB
2Accepted0/03ms1944 KiB
3Accepted3/33ms2032 KiB
4Accepted3/32ms2032 KiB
5Accepted4/43ms2172 KiB
6Accepted4/43ms2380 KiB
7Accepted4/43ms2592 KiB
8Accepted5/53ms2808 KiB
9Accepted5/53ms2916 KiB
10Accepted5/53ms2916 KiB
11Accepted5/53ms3040 KiB
12Accepted6/63ms3080 KiB
13Accepted6/63ms3208 KiB
14Accepted6/63ms3296 KiB
15Wrong answer0/23ms3532 KiB
16Wrong answer0/23ms3616 KiB