124492024-12-18 07:52:27feheristvanOszthatóság 31-gyelcpp17Time limit exceeded 23/50300ms5764 KiB
#include <iostream>

using namespace std;

int main(){
    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);
        cout << n <<" ";
        usz = n % 10 * 3;
        n /= 10;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Time limit exceeded0/0282ms5436 KiB
2Accepted0/01ms320 KiB
3Accepted3/31ms320 KiB
4Time limit exceeded0/3282ms5432 KiB
5Time limit exceeded0/4298ms5764 KiB
6Accepted4/41ms320 KiB
7Accepted4/41ms320 KiB
8Time limit exceeded0/4300ms5404 KiB
9Time limit exceeded0/4280ms5404 KiB
10Accepted4/41ms508 KiB
11Time limit exceeded0/4298ms5668 KiB
12Accepted4/41ms320 KiB
13Accepted4/41ms320 KiB
14Time limit exceeded0/4298ms5708 KiB
15Time limit exceeded0/2300ms5640 KiB
16Wrong answer0/21ms508 KiB