124482024-12-18 07:52:04feheristvanOszthatóság 31-gyelcpp17Time limit exceeded 23/50300ms5796 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);
        cout << n <<" ";
        usz = n % 10 * 3;
        n /= 10;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Time limit exceeded0/0284ms5532 KiB
2Accepted0/01ms320 KiB
3Accepted3/31ms320 KiB
4Time limit exceeded0/3284ms5476 KiB
5Time limit exceeded0/4300ms5688 KiB
6Accepted4/41ms320 KiB
7Accepted4/41ms320 KiB
8Time limit exceeded0/4300ms5796 KiB
9Time limit exceeded0/4280ms5196 KiB
10Accepted4/41ms320 KiB
11Time limit exceeded0/4300ms5688 KiB
12Accepted4/41ms320 KiB
13Accepted4/41ms376 KiB
14Time limit exceeded0/4300ms5584 KiB
15Time limit exceeded0/2300ms5688 KiB
16Wrong answer0/21ms320 KiB