[Solution] Enough Space CodeChef Solution
Chef's computer has GB of free space. He wants to save files, each of size 1
GB and files, each of size 2
GB on his computer. Will he be able to do so?
Chef can save all the files on his computer only if the total size of the files is less than or equal to the space available on his computer.
Input Format
- The first line contains an integer , denoting the number of test cases. The test cases then follow:
- The first and only line of each test case contains three integers , denoting the free-space in computer, the number of
1
and2
GB files respectively.
Output Format
For each test case, print YES
if Chef is able to save the files and NO
otherwise.
Enough Space CodeChef Solution
Chef Drinks Tea CodeChef Solution
High Accuracy CodeChef Solution
Xor Permutation CodeChef Solution
Permutation And Median CodeChef Solution
Segmentation Fault CodeChef Solution
You may print each character of the string in uppercase or lowercase (for example, the strings yEs
, yes
, Yes
and YES
will all be treated as identical).
No comments:
Post a Comment