66132023-12-12 19:39:10horvathabelOszthatóság 37-telcpp17Time limit exceeded 33/40300ms3800 KiB
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main()
{
    ll n;
    cin>>n;
    cout<<(n%37 ?  "NEM" : "IGEN")<<endl;
    while (n>=0){
        int most=n%10;
        n/=10;
        n-=most*11;
        if (n>=0) cout<<n<<" ";
    }
}
SubtaskSumTestVerdictTimeMemory
base33/40
1Accepted0/03ms1876 KiB
2Accepted0/03ms2120 KiB
3Accepted3/33ms2276 KiB
4Accepted3/33ms2360 KiB
5Accepted3/33ms2360 KiB
6Accepted3/33ms2496 KiB
7Accepted3/33ms2704 KiB
8Accepted3/33ms3096 KiB
9Accepted3/33ms3292 KiB
10Accepted3/33ms3356 KiB
11Accepted3/33ms3436 KiB
12Accepted3/33ms3588 KiB
13Accepted3/33ms3468 KiB
14Time limit exceeded0/3300ms2812 KiB
15Wrong answer0/23ms3600 KiB
16Wrong answer0/23ms3800 KiB