#C2774. Auction Results
Auction Results
Auction Results
You are given a list of auction items. Each item has a name, a minimum price and a current highest bid. Your task is to determine for each item whether the highest bid meets or exceeds its minimum price. For each item, output YES
if the bid is greater than or equal to the minimum price, otherwise output NO
.
The input is read from standard input (stdin) and the output should be written to standard output (stdout). Each result should be on a separate line.
Note: All monetary values are integers. The first line of input contains an integer n representing the number of items. The following n lines each contain an item's name, its minimum price, and its highest bid, separated by spaces.
inputFormat
The first line contains a single integer n
denoting the number of auction items.
Each of the next n
lines contains an item's description in the following format:
name minimum_price highest_bid
where name
is a string (without spaces), and minimum_price
and highest_bid
are integers.
outputFormat
For each auction item, output YES
if the highest_bid
is greater than or equal to minimum_price
; otherwise, output NO
. Each answer should be printed on a separate line.
3
Painting 100 150
Vase 200 180
Sculpture 300 300
YES
NO
YES
</p>