132872025-01-07 12:19:49MezeiDavidOszthatóság 17-tel (60 pont)cpp17Wrong answer 0/601ms508 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/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/31ms316 KiB
4Wrong answer0/31ms316 KiB
5Wrong answer0/41ms316 KiB
6Wrong answer0/41ms316 KiB
7Wrong answer0/41ms316 KiB
8Wrong answer0/51ms316 KiB
9Wrong answer0/51ms316 KiB
10Wrong answer0/51ms316 KiB
11Wrong answer0/51ms356 KiB
12Wrong answer0/61ms316 KiB
13Wrong answer0/61ms508 KiB
14Wrong answer0/61ms504 KiB
15Wrong answer0/21ms316 KiB
16Wrong answer0/21ms316 KiB