21432022-12-22 14:42:54HorakZsofiOszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms3596 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin>>n;
	if(n==0){
		cout<<"IGEN"<<endl<<0;
		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<<" ";
		}
	}
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1876 KiB
2Accepted0/02ms2068 KiB
3Accepted3/32ms2168 KiB
4Accepted3/32ms2376 KiB
5Accepted4/42ms2452 KiB
6Accepted4/42ms2576 KiB
7Accepted4/42ms2776 KiB
8Accepted5/52ms2984 KiB
9Accepted5/52ms3220 KiB
10Accepted5/52ms3260 KiB
11Accepted5/52ms3384 KiB
12Accepted6/62ms3376 KiB
13Accepted6/62ms3264 KiB
14Accepted6/62ms3264 KiB
15Wrong answer0/22ms3396 KiB
16Wrong answer0/22ms3596 KiB