124472024-12-18 07:51:27feheristvanOszthatóság 31-gyelcpp17Wrong answer 4/501ms500 KiB
#include <iostream>

using namespace std;

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