124432024-12-18 07:45:22feheristvanOszthatóság 31-gyelcpp17Wrong answer 0/501ms592 KiB
#include <iostream>

using namespace std;

int main(){
    long long n;
    cin >> n;
    if(n % 31 == 0){
        cout << "IGEN \0";
        int usz;
        while(n > 0){
            usz = n % 10;
            n /= 10;
            n = (n - usz * 3);
            cout << n <<" ";
        }
    }
    else{
        cout << "NEM";
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms320 KiB
2Wrong answer0/01ms320 KiB
3Wrong answer0/31ms320 KiB
4Wrong answer0/31ms320 KiB
5Wrong answer0/41ms320 KiB
6Wrong answer0/41ms320 KiB
7Wrong answer0/41ms320 KiB
8Wrong answer0/41ms320 KiB
9Wrong answer0/41ms320 KiB
10Wrong answer0/41ms320 KiB
11Wrong answer0/41ms320 KiB
12Wrong answer0/41ms320 KiB
13Wrong answer0/41ms320 KiB
14Wrong answer0/41ms320 KiB
15Wrong answer0/21ms592 KiB
16Wrong answer0/21ms320 KiB