[Solution] Water Consumption CodeChef Solution
Problem
Recently, Chef visited his doctor. The doctor advised Chef to drink at least ml of water each day.
Chef drank ml of water today. Determine if Chef followed the doctor's advice or not.
Input Format
- The first line contains a single integer — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains one integer — the amount of water Chef drank today.
Output Format
For each test case, output YES
if Chef followed the doctor's advice of drinking at least ml of water. Otherwise, output NO
.
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).
Explanation:
Test case : Chef followed the doctor's advice since he drank ml of water which is ml.
Test case : Chef did not follow the doctor's advice since he drank ml of water which is ml.
Test case : Chef followed the doctor's advice since he drank ml of water which is ml.
No comments:
Post a Comment