36622023-03-02 10:23:20JMMirkoOszthatóság 17-tel (60 pont)cpp17Time limit exceeded 51/60298ms3840 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/10-(n%10)*5>=0){
		n=n/10-(n%10)*5;
		cout << n << ' ';
	}
}
SubtaskSumTestVerdictTimeMemory
base51/60
1Accepted0/03ms1872 KiB
2Accepted0/03ms2124 KiB
3Accepted3/33ms2276 KiB
4Accepted3/33ms2388 KiB
5Accepted4/42ms2468 KiB
6Accepted4/43ms2592 KiB
7Accepted4/43ms2800 KiB
8Accepted5/52ms2920 KiB
9Time limit exceeded0/5298ms2368 KiB
10Accepted5/52ms3264 KiB
11Accepted5/52ms3340 KiB
12Accepted6/63ms3320 KiB
13Accepted6/63ms3604 KiB
14Accepted6/62ms3544 KiB
15Wrong answer0/23ms3692 KiB
16Wrong answer0/22ms3840 KiB