51572023-04-20 17:15:38idkOszthatóság 31-gyelcpp11Wrong answer 0/503ms3884 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/03ms1880 KiB
2Wrong answer0/03ms2112 KiB
3Wrong answer0/33ms2328 KiB
4Wrong answer0/32ms2360 KiB
5Wrong answer0/43ms2488 KiB
6Wrong answer0/43ms2704 KiB
7Wrong answer0/42ms2784 KiB
8Wrong answer0/43ms2788 KiB
9Wrong answer0/43ms2916 KiB
10Wrong answer0/42ms2996 KiB
11Wrong answer0/43ms3004 KiB
12Wrong answer0/43ms3136 KiB
13Wrong answer0/43ms3348 KiB
14Wrong answer0/43ms3592 KiB
15Wrong answer0/23ms3836 KiB
16Wrong answer0/22ms3884 KiB