66142023-12-12 19:40:10horvathabelOszthatóság 37-telcpp17Wrong answer 36/403ms3992 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){
        n=n/10-n%10*11;
        if (n>=0) cout<<n<<" ";
    }
}
SubtaskSumTestVerdictTimeMemory
base36/40
1Accepted0/03ms1912 KiB
2Accepted0/03ms2220 KiB
3Accepted3/33ms2600 KiB
4Accepted3/33ms2888 KiB
5Accepted3/33ms2668 KiB
6Accepted3/33ms2916 KiB
7Accepted3/33ms3128 KiB
8Accepted3/33ms3080 KiB
9Accepted3/33ms3108 KiB
10Accepted3/33ms3208 KiB
11Accepted3/33ms3312 KiB
12Accepted3/33ms3396 KiB
13Accepted3/33ms3640 KiB
14Accepted3/33ms3784 KiB
15Wrong answer0/23ms3992 KiB
16Wrong answer0/23ms3992 KiB