37672023-03-02 21:05:24BttrngOszthatóság 17-tel (60 pont)cpp17Wrong answer 56/603ms3688 KiB
#include<bits/stdc++.h>
using namespace std;

int main(){
   long long n;
   cin>>n;
   vector<long long>cucc;
   while(n>0){
        int k=n%10;
        n=((n-k)/10)-5*k;
        cucc.push_back(n);
   }
   if(cucc[cucc.size()-1]%17==0) cout<<"IGEN"<<endl;
   else cout<<"NEM"<<endl;
   for(long long x : cucc) {
        if(x>=0) cout<<x<<" ";
   }
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1808 KiB
2Accepted0/03ms2056 KiB
3Accepted3/33ms2312 KiB
4Accepted3/33ms2520 KiB
5Accepted4/43ms2732 KiB
6Accepted4/42ms2804 KiB
7Accepted4/43ms3156 KiB
8Accepted5/52ms3152 KiB
9Accepted5/52ms3032 KiB
10Accepted5/53ms3192 KiB
11Accepted5/52ms3268 KiB
12Accepted6/62ms3232 KiB
13Accepted6/62ms3308 KiB
14Accepted6/63ms3384 KiB
15Wrong answer0/23ms3604 KiB
16Wrong answer0/22ms3688 KiB