-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWater_Consumption.py
More file actions
19 lines (18 loc) · 901 Bytes
/
Water_Consumption.py
File metadata and controls
19 lines (18 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Water Consumption
# Recently, Chef visited his doctor. The doctor advised Chef to drink at least 2000 ml of water each day.
#
# Chef drank X ml of water today. Determine if Chef followed the doctor's advice or not.
#
# Input Format
# The first line contains a single integer T — the number of test cases. Then the test cases follow.
# The first and only line of each test case contains one integer X — 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 2000 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).
t = int(input())
for i in range(0,t):
x = int(input())
if(x>=2000):
print("YES")
else:
print("NO")