69822023-12-23 18:51:21MagyarKendeSZLGOszthatóság 31-gyelcpp17Wrong answer 48/503ms3300 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" : "IGEN") << '\n';
    while (N > 0) {
        N = N / 10 - (N % 10) * 3;
        if (N >= 0) {
            cout << N << ' ';
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base48/50
1Accepted0/03ms2072 KiB
2Accepted0/03ms2208 KiB
3Accepted3/33ms2440 KiB
4Accepted3/33ms2552 KiB
5Accepted4/42ms2552 KiB
6Accepted4/43ms2684 KiB
7Accepted4/43ms2768 KiB
8Accepted4/43ms2896 KiB
9Accepted4/43ms2976 KiB
10Accepted4/43ms3104 KiB
11Accepted4/43ms3172 KiB
12Accepted4/43ms3172 KiB
13Accepted4/43ms3168 KiB
14Accepted4/43ms3168 KiB
15Accepted2/23ms3296 KiB
16Wrong answer0/23ms3300 KiB