51542023-04-20 17:13:51BalintGezaOszthatóság 31-gyelcpp11Wrong answer 25/503ms3864 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int szam;     //598645646  ->59864564-18 ->59864546
    cin>>szam;
    int  kulombseg=szam, eleje, utolso, i;
    vector<int> a;

    do
    {
        eleje=kulombseg/10;
        utolso=kulombseg%10;
        kulombseg=eleje-3*utolso;
        a.push_back(kulombseg);

    }while(kulombseg>0);

    if(kulombseg==0)
    {
        cout<<"IGEN"<<endl;
        for(i=0;i<a.size();i++)
        cout<<a.at(i)<<" ";
    }

    else
    {
        cout<<"NEM"<<endl;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/03ms1808 KiB
2Wrong answer0/03ms2056 KiB
3Wrong answer0/33ms2248 KiB
4Accepted3/33ms2496 KiB
5Accepted4/42ms2576 KiB
6Wrong answer0/43ms2784 KiB
7Wrong answer0/43ms2916 KiB
8Accepted4/43ms3064 KiB
9Accepted4/43ms3152 KiB
10Wrong answer0/43ms3388 KiB
11Accepted4/43ms3520 KiB
12Wrong answer0/43ms3632 KiB
13Wrong answer0/43ms3656 KiB
14Accepted4/43ms3736 KiB
15Accepted2/22ms3864 KiB
16Wrong answer0/22ms3816 KiB