36612023-03-02 10:19:01JMMirkoOszthatóság 17-tel (60 pont)cpp17Time limit exceeded 51/60300ms3696 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" << endl;
	else cout << "NEM" << endl;
	while(n/10-(n%10)*5>=0){
		n=n/10-(n%10)*5;
		cout << n << ' ';
	}
}
SubtaskSumTestVerdictTimeMemory
base51/60
1Accepted0/03ms2060 KiB
2Accepted0/03ms2112 KiB
3Accepted3/33ms2324 KiB
4Accepted3/33ms2540 KiB
5Accepted4/42ms2620 KiB
6Accepted4/42ms2620 KiB
7Accepted4/43ms2860 KiB
8Accepted5/52ms2824 KiB
9Time limit exceeded0/5300ms3040 KiB
10Accepted5/53ms3036 KiB
11Accepted5/53ms3164 KiB
12Accepted6/62ms3356 KiB
13Accepted6/62ms3444 KiB
14Accepted6/62ms3572 KiB
15Wrong answer0/23ms3572 KiB
16Wrong answer0/22ms3696 KiB