21422022-12-22 12:25:57HorakZsofiOszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms3708 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin>>n;
	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/02ms2116 KiB
3Accepted3/32ms2268 KiB
4Accepted3/32ms2476 KiB
5Accepted4/42ms2724 KiB
6Accepted4/42ms2796 KiB
7Accepted4/42ms2800 KiB
8Accepted5/52ms3040 KiB
9Accepted5/52ms3000 KiB
10Accepted5/52ms3128 KiB
11Accepted5/52ms3200 KiB
12Accepted6/62ms3200 KiB
13Accepted6/62ms3436 KiB
14Accepted6/62ms3376 KiB
15Wrong answer0/22ms3500 KiB
16Wrong answer0/22ms3708 KiB