28762023-02-01 13:23:52KristófOszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms4024 KiB
#include <iostream>

using namespace std;

int main()
{
     int n;
     cin>>n;
     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/03ms1748 KiB
2Accepted0/03ms1988 KiB
3Accepted3/33ms2208 KiB
4Accepted3/33ms2412 KiB
5Accepted4/43ms2624 KiB
6Accepted4/43ms2772 KiB
7Accepted4/42ms2856 KiB
8Accepted5/53ms2984 KiB
9Accepted5/53ms3200 KiB
10Accepted5/52ms3284 KiB
11Accepted5/53ms3408 KiB
12Accepted6/63ms3764 KiB
13Accepted6/63ms3820 KiB
14Accepted6/63ms3908 KiB
15Wrong answer0/23ms4024 KiB
16Wrong answer0/22ms4020 KiB