136642025-01-08 12:29:18markfsibianOszthatóság 31-gyelcpp17Wrong answer 0/501ms500 KiB
#include <iostream>

using namespace std;

int n;
int main()
{
    cin >> n;
    int t = n;
    while (t > 0)
    {
        t = t / 10 - (t % 10 * 3);
    }
    if (t == 0)
        cout << "IGEN";
    else
        cout << "NEM";
    while (n > 0)
    {
        n = n / 10 - (n % 10 * 3);
        cout << n;
    }
    cout << n;
}

SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms500 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/31ms316 KiB
4Wrong answer0/31ms316 KiB
5Wrong answer0/41ms316 KiB
6Wrong answer0/41ms316 KiB
7Wrong answer0/41ms316 KiB
8Wrong answer0/41ms316 KiB
9Wrong answer0/41ms316 KiB
10Wrong answer0/41ms316 KiB
11Wrong answer0/41ms316 KiB
12Wrong answer0/41ms316 KiB
13Wrong answer0/41ms316 KiB
14Wrong answer0/41ms316 KiB
15Wrong answer0/21ms316 KiB
16Wrong answer0/21ms316 KiB