36692023-03-02 10:28:47DalmaKártya (80 pont)cpp17Wrong answer 4/803ms4228 KiB
#include <iostream>

using namespace std;

int main()
{
    int N;
    cin >> N;
    if (N%17==0)
    {
        cout << "IGEN" << endl;
        int oszthatosag=N;
        int ellenor=0;
        oszthatosag=(oszthatosag/10)-(5*oszthatosag%10);
        while (oszthatosag>=0&&ellenor<1)
        {
            cout << oszthatosag << " ";
            if (oszthatosag==0)
                ellenor++;
            oszthatosag=(oszthatosag/10)-(5*(oszthatosag%10));
        }
    }
    else
    {
        cout << "NEM" << endl;
        int oszthatosag=N;
        int ellenor=0;
        oszthatosag=(oszthatosag/10)-(5*oszthatosag%10);
        while (oszthatosag>=0&&ellenor<1)
        {
            cout << oszthatosag << " ";
            if (oszthatosag==0)
                ellenor++;
            oszthatosag=(oszthatosag/10)-(5*(oszthatosag%10));
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base4/80
1Wrong answer0/03ms1880 KiB
2Wrong answer0/03ms2392 KiB
3Wrong answer0/43ms2452 KiB
4Wrong answer0/52ms2664 KiB
5Wrong answer0/52ms2812 KiB
6Wrong answer0/52ms2940 KiB
7Wrong answer0/52ms3104 KiB
8Accepted4/42ms3168 KiB
9Wrong answer0/42ms3412 KiB
10Wrong answer0/53ms3568 KiB
11Wrong answer0/52ms3644 KiB
12Wrong answer0/52ms3668 KiB
13Wrong answer0/62ms3752 KiB
14Wrong answer0/63ms3744 KiB
15Wrong answer0/73ms3940 KiB
16Wrong answer0/72ms4032 KiB
17Wrong answer0/73ms4228 KiB