38722023-03-03 12:44:34norbertvidaOszthatóság 31-gyelcpp17Wrong answer 28/503ms4024 KiB
#include <iostream>
#include <vector>
#define lli long long int

using namespace std;

int main() {
    iostream::sync_with_stdio(0);
    cin.tie(0);
    lli N;
    cin >> N;
    vector<lli> szamok;
    do {
        N = (N / 10) - (N % 10) * 3;
        szamok.push_back(N);
        if(N < 31) break;
    } while(N >= 31);
    cout << (N == 0 ? "IGEN\n" : "NEM\n");
    for(lli szam : szamok) cout << szam << " ";
    cout << "\n";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base28/50
1Accepted0/03ms1980 KiB
2Accepted0/03ms2060 KiB
3Accepted3/33ms2440 KiB
4Accepted3/33ms2536 KiB
5Accepted4/43ms2768 KiB
6Wrong answer0/42ms2800 KiB
7Wrong answer0/43ms3016 KiB
8Accepted4/43ms3160 KiB
9Accepted4/43ms3144 KiB
10Wrong answer0/43ms3156 KiB
11Accepted4/42ms3364 KiB
12Wrong answer0/42ms3452 KiB
13Wrong answer0/43ms3552 KiB
14Accepted4/43ms3684 KiB
15Accepted2/22ms3792 KiB
16Wrong answer0/23ms4024 KiB