25192023-01-15 18:10:04szabosamuelOszthatóság 17-tel (60 pont)cpp11Wrong answer 56/603ms3872 KiB
#include <iostream>
using namespace std;

int main()
{
    int n;
    cin >> n;
    if(n%17==0) cout << "IGEN" << endl;
    else cout << "NEM" << endl;
    int mar;
    do
    {
        mar=n%10;
        n=n-mar;
        n=n/10;
        n=n-5*mar;
        if(n>=0) cout << n << " ";
    } while(n>0);



    return 0;
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1748 KiB
2Accepted0/02ms1916 KiB
3Accepted3/32ms2152 KiB
4Accepted3/32ms2320 KiB
5Accepted4/42ms2524 KiB
6Accepted4/42ms2640 KiB
7Accepted4/42ms2720 KiB
8Accepted5/52ms2724 KiB
9Accepted5/52ms2804 KiB
10Accepted5/52ms2940 KiB
11Accepted5/52ms3152 KiB
12Accepted6/62ms3352 KiB
13Accepted6/62ms3556 KiB
14Accepted6/62ms3632 KiB
15Wrong answer0/22ms3872 KiB
16Wrong answer0/22ms3836 KiB