25202023-01-15 18:14:19szabosamuelOszthatóság 17-tel (60 pont)cpp11Wrong answer 51/603ms4072 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
base51/60
1Accepted0/03ms2028 KiB
2Accepted0/02ms2300 KiB
3Accepted3/32ms2432 KiB
4Accepted3/32ms2412 KiB
5Accepted4/42ms2700 KiB
6Accepted4/42ms2620 KiB
7Accepted4/42ms2816 KiB
8Accepted5/52ms3004 KiB
9Wrong answer0/52ms3128 KiB
10Accepted5/52ms3012 KiB
11Accepted5/52ms3256 KiB
12Accepted6/62ms3460 KiB
13Accepted6/62ms3536 KiB
14Accepted6/62ms3664 KiB
15Wrong answer0/22ms3868 KiB
16Wrong answer0/22ms4072 KiB