15232022-11-22 00:16:01TomaSajtOszthatóság 31-gyelcpp14Wrong answer 48/503ms3632 KiB
#include <bits/stdc++.h>
#define speed ios::sync_with_stdio(0);cin.tie(0)
using namespace std;

int main() {
    speed;
    int n; cin >> n;
    vector<int> res;
    while (n > 0) {
        n = n / 10 - 3 * (n % 10);
        if (n >= 0) res.push_back(n);
    }
    cout << (n == 0 ? "IGEN" : "NEM") << '\n';
    for (auto a : res) cout << a << ' ';
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms1832 KiB
2Accepted0/02ms2024 KiB
3Accepted3/32ms2228 KiB
4Accepted3/32ms2432 KiB
5Accepted4/42ms2636 KiB
6Accepted4/42ms2836 KiB
7Accepted4/42ms3072 KiB
8Accepted4/42ms3528 KiB
9Accepted4/42ms3388 KiB
10Accepted4/42ms3388 KiB
11Accepted4/42ms3388 KiB
12Accepted4/42ms3632 KiB
13Accepted4/42ms3460 KiB
14Accepted4/42ms3344 KiB
15Accepted2/22ms3344 KiB
16Wrong answer0/22ms3472 KiB