Wednesday, April 6, 2022

Monthly Budget

 Akshat has 

rupees to spend in the current month. His daily expenditure is rupees, i.e., he spends

rupees each day.

Given that the current month has

days, find out if Akshat has enough money to meet his daily expenditures for this month.

Input Format

  • The first line will contain
  • - the number of test cases. Then the test cases follow.
  • The first and only line of each test case contains two integers
  • ,
    • - the amount of money Akshat has for the current month and his daily expenditure respectively.

    Output Format

    For each test case, output YES if Akshat has enough money to meet his daily expenditure for

    days of the month, otherwise output NO.

    You may print each character of YES and NO in uppercase or lowercase (for example, yes, yEs, Yes will be considered identical).

    Constraints

    Sample Input 1

    3
    1000 10
    250 50
    1500 50
    

    Sample Output 1

    YES
    NO
    YES
    

    Explanation

    Test Case

    : Akshat has rupees and he wants to spend

    rupees in the entire month. Therefore, he has enough money for the entire month.

    Test Case

    : Akshat has rupees and he wants to spend

    rupees in the entire month. Therefore, he does not have enough money for the entire month.

    Test Case

    : Akshat has rupees and he wants to spend rupees in the entire month. Therefore, he has enough money for the entire month.

    No comments:

    Post a Comment

    मुझे दिल में बसाना आसान नहीं....

    पता है Recently i realised की मुझे दिल में बसाना आसान नहीं है बात-बात पे चिढ़ जाती हूं मैं दिल लगा लूं एक बार तो फिर ज़िद पे अड़...