51582023-04-20 17:16:04BalintGezaOszthatóság 31-gyelcpp11Wrong answer 25/503ms3508 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int szam;
    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;
        for(i=0;i<a.size();i++)
        cout<<a.at(i)<<" ";
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/03ms1844 KiB
2Wrong answer0/03ms2000 KiB
3Wrong answer0/33ms2216 KiB
4Accepted3/33ms2572 KiB
5Accepted4/43ms2800 KiB
6Wrong answer0/43ms3072 KiB
7Wrong answer0/42ms2996 KiB
8Accepted4/43ms3060 KiB
9Accepted4/43ms3084 KiB
10Wrong answer0/43ms3236 KiB
11Accepted4/42ms3228 KiB
12Wrong answer0/43ms3352 KiB
13Wrong answer0/43ms3364 KiB
14Accepted4/43ms3492 KiB
15Accepted2/23ms3508 KiB
16Wrong answer0/22ms3508 KiB