60382023-10-28 18:45:22IgnácOszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms4272 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	long long N;
	cin >> N;
	if(N % 17 == 0) cout << "IGEN\n";
	else cout << "NEM\n";
	while(true){
		if(N / 10 - N % 10 * 5 < 0){
			break;
		} else {
			N = N / 10 - N % 10 * 5;
			cout << N << " ";
			if(N == 0) break;
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted3/33ms2332 KiB
4Accepted3/33ms2388 KiB
5Accepted4/43ms2596 KiB
6Accepted4/43ms2804 KiB
7Accepted4/43ms3020 KiB
8Accepted5/53ms3260 KiB
9Accepted5/52ms3312 KiB
10Accepted5/53ms3444 KiB
11Accepted5/53ms3676 KiB
12Accepted6/63ms3896 KiB
13Accepted6/62ms3972 KiB
14Accepted6/63ms4072 KiB
15Wrong answer0/23ms4160 KiB
16Wrong answer0/23ms4272 KiB