Algorithm


Problem

Chef categorises an instagram account as spam, if, the following count of the account is more than 10 times the count of followers.

Given the following and follower count of an account as  and  respectively, find whether it is a spam account.

Input Format

  • The first line of input will contain a single integer , denoting the number of test cases.
  • Each test case consists of two space-separated integers  and  — the following and follower count of an account, respectively.

Output Format

For each test case, output on a new line, YES, if the account is spam and NO otherwise.

You may print each character of the string in uppercase or lowercase. For example, the strings YESyesYes and yES are identical.

Constraints

  • 1≤�≤100
  • 1≤�,�≤100

Sample 1:

Input
 
Output
 
4
1 10
10 1
11 1
97 7
NO
NO
YES
YES

Explanation:

Test case 1: The following count is 1 while the follower count is 10. Since the following count is not more than 10 times the follower count, the account is not spam.

Test case 2: The following count is 10 while the follower count is 1. Since the following count is not more than 10 times the follower count, the account is not spam.

Test case 3: The following count is 11 while the follower count is 1. Since the following count is more than 10 times the follower count, the account is spam.

Test case 4: The following count is 97 while the follower count is 7. Since the following count is more than 10 times the follower count, the account is spam.

Code Examples

Advertisements

Demonstration


CodeChef solution  SIXFRIENDS  - Six Friends CodeChef solution in C, C++

Previous
CodeChef solution ADVANCE - Rating Improvement solution in Codechef solution in C,C++
Next
CodeChef solution HS08TEST ATM - HS08TEST ATM solution in C,C++