Author: Setter’s name
Tester: Tester’s name(roshangupta691 | CodeChef User Profile for Roshan Sah | CodeChef)(shivam1605 | CodeChef User Profile for Shivam Manishbhai Sarang | CodeChef)
Editorialist: Editorialist’s name
On a fine morning, chef leaves his house for the office. after
sometime he found that he has forgot his wallet at home. But he
has X amount of money in his pocket. now he has two option by
which he can go to his office.
- Taxi, it’s one way cost is Y ₹.
- Bus, it’s one way cost is Z ₹.
Your task is to help chef to know whether he can go to his office
and comeback or not with X amount of money.
Sample Test case:
100 45 65
45 25 60
46 25 23
- Test Case1: Chef has 100 ?. He can use taxi to go to office and
come back that will cost 90 ?.
using namespace std;
if((2y<=x) || (2z<=x))