[Solution] Construct N CodeChef Solution
You are given an integer . Find if it is possible to represent as the sum of several(possibly zero) 's and several(possibly zero) 's.
Formally, find if there exist two integers such that .
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of a single line containing an integer .
👇👇👇👇👇
Output Format
For each test case, print on a new line YES
if it is possible to represent as the sum of several(possibly zero) 's and several(possibly zero) 's and NO
otherwise.
You may print each character of the string in either uppercase or lowercase (for example, the strings yEs
, yes
, Yes
, and YES
will all be treated as identical).
No comments:
Post a Comment