28772023-02-01 13:27:09KristófOszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms3792 KiB
#include <iostream>

using namespace std;

int main()
{
     int n;
     cin>>n;
     if(n==0){
        cout<<"IGEN"<<endl<<0;
        return 0;
     }
     if(n%17==0)
        cout<<"IGEN"<<endl;
     else
        cout<<"NEM"<<endl;
        while(n>0){
            n=(n/10)-(n%10*5);
        if(n>=0){
            cout<<n<<" ";
           }
        }
        return 0;
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1876 KiB
2Accepted0/03ms2072 KiB
3Accepted3/33ms2312 KiB
4Accepted3/33ms2528 KiB
5Accepted4/42ms2800 KiB
6Accepted4/42ms2884 KiB
7Accepted4/42ms2972 KiB
8Accepted5/52ms3084 KiB
9Accepted5/53ms3164 KiB
10Accepted5/53ms3376 KiB
11Accepted5/52ms3488 KiB
12Accepted6/62ms3560 KiB
13Accepted6/62ms3564 KiB
14Accepted6/62ms3684 KiB
15Wrong answer0/22ms3668 KiB
16Wrong answer0/22ms3792 KiB