Friday, April 8, 2022

Ezio and Guards

 Ezio can manipulate at most

number of guards with the apple of eden.

Given that there are

number of guards, predict if he can safely manipulate all of them.

Input Format

  • First line will contain
  • , number of test cases. Then the test cases follow.
  • Each test case contains of a single line of input, two integers
  • and
    • .

    Output Format

    For each test case, print

    if it is possible for Ezio to manipulate all the guards. Otherwise, print

    .

    You may print each character of the string in uppercase or lowercase (for example, the strings

    , , and

    will all be treated as identical).

    Constraints

    Sample Input 1

    3
    5 7
    6 6
    9 1
    

    Sample Output 1

    NO
    YES
    YES
    

    Explanation

    Test Case

    : Ezio can manipulate at most guards. Since there are

    guards, he cannot manipulate all of them.

    Test Case

    : Ezio can manipulate at most guards. Since there are

    guards, he can manipulate all of them.

    Test Case

    : Ezio can manipulate at most guards. Since there is only guard, he can manipulate the guard.

    No comments:

    Post a Comment

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

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