51702023-04-20 17:24:37BalintGezaOszthatóság 31-gyelcpp14Time limit exceeded 23/50239ms64472 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++)
        {
            if(a.at(i)>0)
                cout<<a.at(i)<<" ";
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base23/50
1Time limit exceeded0/0239ms62180 KiB
2Accepted0/03ms2280 KiB
3Accepted3/33ms2344 KiB
4Runtime error0/364ms64472 KiB
5Runtime error0/475ms64268 KiB
6Accepted4/43ms2812 KiB
7Accepted4/43ms3040 KiB
8Runtime error0/475ms63604 KiB
9Runtime error0/464ms63364 KiB
10Accepted4/43ms3572 KiB
11Runtime error0/475ms63364 KiB
12Accepted4/42ms3588 KiB
13Accepted4/43ms3724 KiB
14Runtime error0/464ms63204 KiB
15Runtime error0/263ms63192 KiB
16Wrong answer0/23ms3900 KiB