51532023-04-20 17:13:16idkOszthatóság 31-gyelcpp11Wrong answer 0/503ms3428 KiB
#include <iostream>
#include<vector>
using namespace std;

int main()
{
    int n;
    cin>>n;  //598645646 -> 59864564-18 -> 59864546
    int eredmeny,kulonbseg=n,eleje,utolso;
    eredmeny=n;

    vector <int>a;


    do
    {
        eleje=kulonbseg/10;
        utolso=kulonbseg%10;
        kulonbseg=eleje-3*utolso;
        cout<<kulonbseg<<" ";

    }while(kulonbseg>0);

    cout<<endl;
    if(kulonbseg==0)
        cout<<"IGEN"<<endl;
    else
        cout<<"NEM"<<endl;

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

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/03ms1744 KiB
2Wrong answer0/03ms1912 KiB
3Wrong answer0/33ms2124 KiB
4Wrong answer0/32ms2208 KiB
5Wrong answer0/43ms2332 KiB
6Wrong answer0/42ms2420 KiB
7Wrong answer0/42ms2420 KiB
8Wrong answer0/43ms2548 KiB
9Wrong answer0/43ms2760 KiB
10Wrong answer0/43ms2976 KiB
11Wrong answer0/42ms3052 KiB
12Wrong answer0/42ms3056 KiB
13Wrong answer0/43ms3300 KiB
14Wrong answer0/43ms3324 KiB
15Wrong answer0/22ms3300 KiB
16Wrong answer0/23ms3428 KiB