82092024-01-12 19:32:00CWMOszthatóság 37-telcpp17Runtime error 18/403ms3280 KiB
#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <climits>

using namespace std;

#define int long long

signed main()
{
	int input;
	cin >> input;
	if (input % 37 == 0) cout << "IGEN\n";
	else {
		cout << "NEM\n";
		return -1;
	}
	while (input>0)
	{
		int lastDigit = input % 10;
		input /= 10;
		input -= 11 * lastDigit;
		if (input >= 0) {
			cout << input << " ";
		}
	}
}
SubtaskSumTestVerdictTimeMemory
base18/40
1Accepted0/03ms1876 KiB
2Runtime error0/03ms2128 KiB
3Accepted3/33ms2276 KiB
4Runtime error0/33ms2496 KiB
5Accepted3/33ms2700 KiB
6Runtime error0/33ms2920 KiB
7Accepted3/33ms3024 KiB
8Runtime error0/33ms3076 KiB
9Accepted3/33ms3184 KiB
10Runtime error0/33ms3188 KiB
11Runtime error0/33ms3184 KiB
12Runtime error0/33ms3068 KiB
13Accepted3/33ms3200 KiB
14Accepted3/33ms3280 KiB
15Wrong answer0/23ms3276 KiB
16Runtime error0/23ms3280 KiB