GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Sunday 15 May 2022

[Solution] Apples and Oranges CodeChef Solution | CodeChef Problem Solution 2022

Bob has X rupees and goes to a market. The cost of apples is Rs. A per kg and the cost of oranges is Rs. B per kg.

Determine whether he can buy at least 1 kg each of apples and oranges.

Solution Click Below:-  CLICK HERE

Input Format

  • The first line of input will contain an integer X, the amount of money Bob has.

  • The second line of input contains two space-separated integers A and B, the cost per kg of apples and oranges respectively.

Output Format

Print a single line containing Yes if Bob can buy the fruits and No otherwise.

You may print each character of the string in uppercase or lowercase (for example, the strings yesYesyEs, and YES will all be treated as identical).

Constraints

  • 1X,A,B105

Subtasks

  • Subtask 1 (100 points):
    • Original constraints.

Join Now for Solution:- 

No comments:

Post a Comment