36872023-03-02 10:50:20KevinOszthatóság 17-tel (60 pont)cpp17Wrong answer 56/603ms3608 KiB
#include <iostream>

using namespace std;

int main()
{
    int x;
    cin >> x;
    if (x%17==0)
        cout << "IGEN" << endl;
    else
        cout << "NEM" << endl;

    while (x/10-x%10*5>0){
        x=x/10-x%10*5;
        cout << x << " ";
    }
    if (x/10-x%10*5==0)
        cout << 0;
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1744 KiB
2Accepted0/03ms1996 KiB
3Accepted3/33ms2204 KiB
4Accepted3/32ms2296 KiB
5Accepted4/42ms2420 KiB
6Accepted4/43ms2660 KiB
7Accepted4/42ms2876 KiB
8Accepted5/52ms2880 KiB
9Accepted5/52ms3004 KiB
10Accepted5/52ms3124 KiB
11Accepted5/52ms3328 KiB
12Accepted6/62ms3264 KiB
13Accepted6/62ms3392 KiB
14Accepted6/62ms3480 KiB
15Wrong answer0/22ms3596 KiB
16Wrong answer0/22ms3608 KiB