#C2609. Overconsumption Checker
Overconsumption Checker
Overconsumption Checker
You are given the daily consumption values of various supplies along with their respective safe limits. Your task is to determine which supplies have been overconsumed. A supply is considered overconsumed if its daily consumption value is strictly greater than its safe limit.
Note: Compare the values directly without any rounding. For example, if the water consumption is 120 units and its safe limit is 100 units, then water is considered overconsumed.
This problem requires you to read input from stdin and print the result to stdout. The output should list the supply IDs that exceed their safe limits in the same order as the input. If all supplies are within their limits, print an empty line.
The relationship can be mathematically represented as follows:
\( consumption > safe\_limit \)
inputFormat
The input is taken from standard input (stdin) and has the following format:
- The first line contains an integer \( n \) representing the number of supplies.
- The next \( n \) lines each contain a string and two integers separated by spaces: the supply ID, its daily consumption, and its safe limit.
outputFormat
Output the list of supply IDs that have exceeded their safe limits, separated by a single space, in the order they appear in the input. If no supply exceeds its safe limit, output an empty line.
## sample3
water 80 100
oxygen 60 60
food 100 120