30412023-02-08 19:58:44xxxOszthatóság 17-tel (60 pont)cpp14Wrong answer 56/603ms3788 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;

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

	return 0;
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1812 KiB
2Accepted0/03ms2052 KiB
3Accepted3/33ms2412 KiB
4Accepted3/32ms2424 KiB
5Accepted4/43ms2552 KiB
6Accepted4/43ms2648 KiB
7Accepted4/42ms2728 KiB
8Accepted5/53ms2976 KiB
9Accepted5/53ms3100 KiB
10Accepted5/53ms3316 KiB
11Accepted5/52ms3400 KiB
12Accepted6/62ms3424 KiB
13Accepted6/62ms3408 KiB
14Accepted6/63ms3528 KiB
15Wrong answer0/23ms3560 KiB
16Wrong answer0/23ms3788 KiB