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

int main(){
   int n;
   cin>>n;
   vector<int>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(int x : cucc) {
        if(x>=0) cout<<x<<" ";
   }
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1812 KiB
2Accepted0/03ms2008 KiB
3Accepted3/33ms2220 KiB
4Accepted3/32ms2460 KiB
5Accepted4/43ms2668 KiB
6Accepted4/42ms2876 KiB
7Accepted4/43ms3100 KiB
8Accepted5/52ms3184 KiB
9Accepted5/52ms3288 KiB
10Accepted5/52ms3180 KiB
11Accepted5/52ms3208 KiB
12Accepted6/62ms3408 KiB
13Accepted6/62ms3648 KiB
14Accepted6/62ms3700 KiB
15Wrong answer0/22ms3796 KiB
16Wrong answer0/22ms3804 KiB