30382023-02-08 19:51:16xxxOszthatóság 17-tel (60 pont)cpp14Wrong answer 56/603ms3924 KiB
#include <bits/stdc++.h>
using namespace std;

#define int long long

signed main() {
    int n, nelozo;
    cin >> n;
    vector<int> a;
    while (n > 0) {
        nelozo = n;
        n /= 10;
        n -= (nelozo % 10) * 5;
        a.push_back(n);
    }

    if (a[a.size()-1] % 17 == 0)
        cout << "IGEN" << endl;
    else cout << "NEM" << endl;

    for (int i = 0; i < a.size(); i++)
        if (a[i] >= 0)
        cout << a[i] << " ";

	return 0;
}

SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1808 KiB
2Accepted0/03ms2060 KiB
3Accepted3/33ms2148 KiB
4Accepted3/33ms2324 KiB
5Accepted4/43ms2428 KiB
6Accepted4/43ms2644 KiB
7Accepted4/43ms2728 KiB
8Accepted5/53ms2728 KiB
9Accepted5/53ms2852 KiB
10Accepted5/53ms2964 KiB
11Accepted5/53ms3064 KiB
12Accepted6/63ms3204 KiB
13Accepted6/63ms3376 KiB
14Accepted6/63ms3588 KiB
15Wrong answer0/23ms3672 KiB
16Wrong answer0/23ms3924 KiB