69832023-12-23 18:55:57MagyarKendeSZLGOszthatóság 31-gyelcpp17Accepted 50/503ms4348 KiB
#include <iostream>
using namespace std;
int main() {
    cin.tie(0); ios::sync_with_stdio(0);
    long long N;
    cin >> N;
    cout << (N % 31 ? "NEM\n" : "IGEN\n");
    while (N > 0) {
        N = N / 10 - (N % 10) * 3;
        if (N >= 0) {
            cout << N << ' ';
        }
    }
    cout << '\n';
}
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/03ms1888 KiB
2Accepted0/03ms2128 KiB
3Accepted3/33ms2444 KiB
4Accepted3/33ms2652 KiB
5Accepted4/43ms2812 KiB
6Accepted4/43ms2832 KiB
7Accepted4/43ms2936 KiB
8Accepted4/43ms3152 KiB
9Accepted4/43ms3360 KiB
10Accepted4/43ms3576 KiB
11Accepted4/43ms3788 KiB
12Accepted4/43ms4008 KiB
13Accepted4/43ms4216 KiB
14Accepted4/43ms4088 KiB
15Accepted2/23ms4300 KiB
16Accepted2/23ms4348 KiB