30422023-02-08 20:01:03xxxOszthatóság 17-tel (60 pont)cpp14Wrong answer 56/603ms3784 KiB
#include <bits/stdc++.h>
using namespace std;

#define int long long
signed main() {
    int n;
    cin >> n;
    if (n % 17 == 0)
        cout << "IGEN" << endl;
    else cout << "NEM" << endl;

    if (n == 0)
        cout << 0 << endl;
    vector<int> a;
    while (n > 0) {
        n = (n / 10) - (n % 10 * 5);
        if (n >= 0) {
            cout << n << " ";
        }
    }

	return 0;
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1876 KiB
2Accepted0/03ms2116 KiB
3Accepted3/33ms2336 KiB
4Accepted3/33ms2568 KiB
5Accepted4/43ms2688 KiB
6Accepted4/43ms2856 KiB
7Accepted4/43ms2936 KiB
8Accepted5/53ms3124 KiB
9Accepted5/53ms3340 KiB
10Accepted5/52ms3420 KiB
11Accepted5/53ms3668 KiB
12Accepted6/63ms3784 KiB
13Accepted6/63ms3756 KiB
14Accepted6/63ms3756 KiB
15Wrong answer0/22ms3752 KiB
16Wrong answer0/22ms3752 KiB