51622023-04-20 17:18:08idkOszthatóság 31-gyelcpp11Wrong answer 25/503ms4152 KiB
#include <iostream>
#include<vector>
using namespace std;

int main()
{
    int n;
    cin>>n;
    int eredmeny,kulonbseg=n,eleje,utolso;
    eredmeny=n;
    vector <int>a;
    do
    {
        eleje=kulonbseg/10;
        utolso=kulonbseg%10;
        kulonbseg=eleje-3*utolso;
        a.push_back(kulonbseg);
    }while(kulonbseg>0);


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

    else
    {
        cout<<"NEM"<<endl;
        for(int i=0;i<a.size();i++)
        {
            cout<<a.at(i)<<" ";
        }
    }


    return 0;
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/03ms1812 KiB
2Wrong answer0/02ms2004 KiB
3Wrong answer0/33ms2244 KiB
4Accepted3/33ms2432 KiB
5Accepted4/43ms2644 KiB
6Wrong answer0/43ms2880 KiB
7Wrong answer0/42ms3088 KiB
8Accepted4/43ms3208 KiB
9Accepted4/43ms3292 KiB
10Wrong answer0/43ms3420 KiB
11Accepted4/43ms3504 KiB
12Wrong answer0/43ms3760 KiB
13Wrong answer0/43ms3880 KiB
14Accepted4/42ms3940 KiB
15Accepted2/22ms4072 KiB
16Wrong answer0/22ms4152 KiB