132862025-01-07 12:19:19MezeiDavidOszthatóság 17-tel (60 pont)cpp17Wrong answer 0/601ms564 KiB
#include <iostream>

using namespace std;
bool Rush_E(int n){
    if(n / 10- ((n%10) *5) <=0){
        return false;
    }else{
    return true;
    }
}
int main()
{
    int szam;
    cin >> szam;
    while(Rush_E(szam)){
        szam =szam / 10- (szam%10) *5;
        cout << szam << " ";
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/60
1Wrong answer0/01ms500 KiB
2Wrong answer0/01ms508 KiB
3Wrong answer0/31ms316 KiB
4Wrong answer0/31ms316 KiB
5Wrong answer0/41ms404 KiB
6Wrong answer0/41ms316 KiB
7Wrong answer0/41ms316 KiB
8Wrong answer0/51ms512 KiB
9Wrong answer0/51ms316 KiB
10Wrong answer0/51ms316 KiB
11Wrong answer0/51ms508 KiB
12Wrong answer0/61ms496 KiB
13Wrong answer0/61ms316 KiB
14Wrong answer0/61ms316 KiB
15Wrong answer0/21ms564 KiB
16Wrong answer0/21ms316 KiB