66122023-12-12 19:38:50horvathabelOszthatóság 37-telcpp17Wrong answer 36/403ms3128 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
base36/40
1Accepted0/03ms1880 KiB
2Accepted0/03ms2120 KiB
3Accepted3/33ms2340 KiB
4Accepted3/33ms2492 KiB
5Accepted3/33ms2704 KiB
6Accepted3/33ms2788 KiB
7Accepted3/33ms2804 KiB
8Accepted3/33ms2900 KiB
9Accepted3/33ms2904 KiB
10Accepted3/33ms2904 KiB
11Accepted3/33ms2936 KiB
12Accepted3/33ms2896 KiB
13Accepted3/33ms2888 KiB
14Accepted3/33ms2888 KiB
15Wrong answer0/23ms3016 KiB
16Wrong answer0/23ms3128 KiB