36962023-03-02 11:13:40MatematikaOszthatóság 17-tel (60 pont)cpp17Wrong answer 56/603ms3708 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    int ellenor;
    cin >> n;
    vector<int> vec;
    while(n/10-(n%10*5)>=0 && ellenor==0)
    {
        vec.push_back(n/10-(n%10*5));
        n=n/10-(n%10*5);
        if(n==0)
        {
            ellenor++;
        }
    }
    if(n%17==0)
    {
        cout << "IGEN" << endl;
    }
    else{cout << "NEM" << endl;}
    for(int i=0;i<vec.size();i++)
    {
        cout << vec[i] << " ";

    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base56/60
1Accepted0/03ms1816 KiB
2Accepted0/03ms2052 KiB
3Accepted3/32ms2296 KiB
4Accepted3/32ms2536 KiB
5Accepted4/42ms2624 KiB
6Accepted4/43ms2680 KiB
7Accepted4/43ms2884 KiB
8Accepted5/52ms3024 KiB
9Accepted5/52ms3144 KiB
10Accepted5/52ms3360 KiB
11Accepted5/53ms3564 KiB
12Accepted6/62ms3576 KiB
13Accepted6/63ms3604 KiB
14Accepted6/62ms3572 KiB
15Wrong answer0/22ms3576 KiB
16Wrong answer0/23ms3708 KiB