51562023-04-20 17:14:44idkOszthatóság 31-gyelcpp11Wrong answer 0/503ms3760 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;
    }while(kulonbseg>0);

    
    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/03ms1872 KiB
2Wrong answer0/02ms2068 KiB
3Wrong answer0/33ms2280 KiB
4Wrong answer0/33ms2492 KiB
5Wrong answer0/43ms2740 KiB
6Wrong answer0/43ms2916 KiB
7Wrong answer0/42ms2996 KiB
8Wrong answer0/42ms3120 KiB
9Wrong answer0/43ms3364 KiB
10Wrong answer0/43ms3364 KiB
11Wrong answer0/43ms3576 KiB
12Wrong answer0/43ms3564 KiB
13Wrong answer0/42ms3648 KiB
14Wrong answer0/42ms3652 KiB
15Wrong answer0/22ms3760 KiB
16Wrong answer0/22ms3652 KiB