30392023-02-08 19:52:07xxxOszthatóság 17-tel (60 pont)cpp14Wrong answer 29/603ms3728 KiB
#include <bits/stdc++.h>
using namespace std;

#define int long long
signed main() {
    int n, nelozo, neredeti;
    cin >> 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
base29/60
1Accepted0/03ms1812 KiB
2Wrong answer0/03ms2056 KiB
3Wrong answer0/33ms2136 KiB
4Accepted3/33ms2232 KiB
5Accepted4/43ms2432 KiB
6Wrong answer0/43ms2676 KiB
7Wrong answer0/43ms2884 KiB
8Accepted5/52ms2868 KiB
9Accepted5/53ms2964 KiB
10Wrong answer0/53ms3048 KiB
11Wrong answer0/53ms3172 KiB
12Accepted6/63ms3392 KiB
13Accepted6/63ms3500 KiB
14Wrong answer0/63ms3604 KiB
15Wrong answer0/23ms3724 KiB
16Wrong answer0/22ms3728 KiB