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

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

    if (neredeti % 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/03ms1816 KiB
2Accepted0/03ms2048 KiB
3Accepted3/32ms2084 KiB
4Accepted3/33ms2212 KiB
5Accepted4/43ms2428 KiB
6Accepted4/43ms2640 KiB
7Accepted4/43ms2860 KiB
8Accepted5/53ms3060 KiB
9Accepted5/53ms3144 KiB
10Accepted5/53ms3280 KiB
11Accepted5/53ms3520 KiB
12Accepted6/63ms3600 KiB
13Accepted6/63ms3988 KiB
14Accepted6/62ms3936 KiB
15Wrong answer0/23ms3816 KiB
16Wrong answer0/23ms3796 KiB