232822026-01-18 13:47:44abcdOszthatóság 37-telcpp17Wrong answer 36/401ms536 KiB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    ll n;
    cin >> n;
    if (n % 37 == 0) cout << "IGEN\n";
    else cout << "NEM\n";

    while (true) {
        ll next = n / 10 - n % 10 * 11;
        if (next < 0) break;
        cout << next << ' ';
        if (next == 0) break;
        n = next;
    }
}
SubtaskSumTestVerdictTimeMemory
base36/40
1Accepted0/01ms316 KiB
2Accepted0/01ms508 KiB
3Accepted3/31ms316 KiB
4Accepted3/31ms316 KiB
5Accepted3/31ms316 KiB
6Accepted3/31ms316 KiB
7Accepted3/31ms316 KiB
8Accepted3/31ms316 KiB
9Accepted3/31ms316 KiB
10Accepted3/31ms352 KiB
11Accepted3/31ms536 KiB
12Accepted3/31ms316 KiB
13Accepted3/31ms500 KiB
14Accepted3/31ms500 KiB
15Wrong answer0/21ms316 KiB
16Wrong answer0/21ms316 KiB