255302026-02-20 14:53:20mihalykocsisOszthatóság 17-tel (60 pont)cpp17Wrong answer 56/601ms500 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	long long n; cin >> n;
	if (n % 17 != 0) {
		cout << "NEM" << "\n";
		while (n > 0) {
			n = n / 10 - 5 * (n % 10);
			if (n >= 0) {
				cout << n << " ";
			}
		}
	} else {
		cout << "IGEN" << "\n";
		while (n > 0) {
			n = n / 10 - 5 * (n % 10);
			if (n >= 0) {
				cout << n << " ";
			}
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/01ms316 KiB
2Accepted0/01ms316 KiB
3Accepted3/31ms316 KiB
4Accepted3/31ms316 KiB
5Accepted4/41ms316 KiB
6Accepted4/41ms316 KiB
7Accepted4/41ms316 KiB
8Accepted5/51ms316 KiB
9Accepted5/51ms316 KiB
10Accepted5/51ms316 KiB
11Accepted5/51ms316 KiB
12Accepted6/61ms316 KiB
13Accepted6/61ms316 KiB
14Accepted6/61ms316 KiB
15Wrong answer0/21ms316 KiB
16Wrong answer0/21ms500 KiB