51502023-04-20 17:02:01MarkopoloOszthatóság 31-gyelcpp11Wrong answer 0/503ms3704 KiB
#include <iostream>

using namespace std;
void szamol(int n)
{
    int x,m;
    if(n<=0)
    {
        if(n==0)
            cout<<" 0\nigen"<<endl;
        if(n<0)
            cout<<"\nnem"<<endl;
    }
    else
    {
        m=n%10;
        n=n/10;
        x=n-(3*m);
        n=x;
        cout<<n<<" ";
        szamol(n);
    }
}
int main()
{
    int n;
    cout << "Add meg a szamot, es en leellenorzom, h oszthato-e harminc egyel!" << endl;
    cin>>n;
    szamol(n);
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/03ms1876 KiB
2Wrong answer0/03ms2116 KiB
3Wrong answer0/33ms2368 KiB
4Wrong answer0/33ms2420 KiB
5Wrong answer0/43ms2668 KiB
6Wrong answer0/43ms2724 KiB
7Wrong answer0/43ms2812 KiB
8Wrong answer0/43ms2944 KiB
9Wrong answer0/43ms3176 KiB
10Wrong answer0/43ms3108 KiB
11Wrong answer0/43ms3352 KiB
12Wrong answer0/42ms3352 KiB
13Wrong answer0/43ms3432 KiB
14Wrong answer0/43ms3436 KiB
15Wrong answer0/23ms3704 KiB
16Wrong answer0/23ms3452 KiB