All submissions for this problem are available.
Bhavuk loves to be in limelight. She tries to get attention of everyone around her. In doing so she sometimes uses her most effective technique called shedding tears. This technique has always worked and everyone around her turns their attention towards her when she uses it.
Bhavuk is quite accustomed to this technique and has become a professional in shedding tears. But these days she is finding it difficult to do so and requires few drops of a catalyst to flood her cheeks.
To grab the attention of everyone around, bhavuk has to shed S tears. Each drop of catalyst C helps her to shed two tears and she has a natural ability to shed N tears without using the catalyst.
Given the number of tears S to be shed, the natural ability of shedding N tears and the volume(in drops) of catalyst C present with bhavuk, find out whether bhavuk is able to become the center of attention.
First line of input contains T - the number of test cases.
Each test case consists of 3 numbers S N C
S - number tears to be shed
N - number of tears that can be shed naturally
C - Volume(in drops) of catalyst
For every test case output "NO" if it is not possible for bhavuk to be the center of attention or "YES" followed by the drops of catalyst used.
Input: 3 5 1 4 100 99 1 100 1 2 Output: YES 2 YES 1 NO
|Time Limit:||0.187273 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, JAVA, GO|
Fetching successful submissions