124452024-12-18 07:49:48feheristvanOszthatóság 31-gyelcpp17Time limit exceeded 23/50300ms5856 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;
    while((n / 10 - n % 10 * 3) >= 0){
        usz = n % 10;
        n /= 10;
        n = (n - usz * 3);
        cout << n <<" ";
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Time limit exceeded0/0286ms5432 KiB
2Accepted0/01ms320 KiB
3Accepted3/31ms320 KiB
4Time limit exceeded0/3286ms5496 KiB
5Time limit exceeded0/4298ms5680 KiB
6Accepted4/41ms320 KiB
7Accepted4/41ms320 KiB
8Time limit exceeded0/4300ms5604 KiB
9Time limit exceeded0/4282ms5300 KiB
10Accepted4/41ms320 KiB
11Time limit exceeded0/4298ms5612 KiB
12Accepted4/41ms320 KiB
13Accepted4/41ms320 KiB
14Time limit exceeded0/4300ms5856 KiB
15Time limit exceeded0/2300ms5528 KiB
16Wrong answer0/21ms320 KiB