25182023-01-15 18:06:35szabosamuelOszthatóság 17-tel (60 pont)cpp17Wrong answer 56/603ms3696 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/03ms1872 KiB
2Accepted0/02ms2120 KiB
3Accepted3/32ms2200 KiB
4Accepted3/32ms2272 KiB
5Accepted4/42ms2348 KiB
6Accepted4/42ms2476 KiB
7Accepted4/42ms2676 KiB
8Accepted5/52ms2880 KiB
9Accepted5/52ms2960 KiB
10Accepted5/52ms3096 KiB
11Accepted5/52ms3088 KiB
12Accepted6/62ms3204 KiB
13Accepted6/62ms3296 KiB
14Accepted6/62ms3492 KiB
15Wrong answer0/22ms3616 KiB
16Wrong answer0/22ms3696 KiB