#C4566. Stock Replenishment Checker
Stock Replenishment Checker
Stock Replenishment Checker
You are given a number of test cases T. For each test case, you are provided with a minimum required stock level R and a product identifier ID. The product identifier is an alphanumeric string that contains one or more sections separated by the letter 'L'. The last section of this identifier contains the stock quantity (after extracting only the digit characters).
Let the extracted stock quantity be denoted as S. If \(S < R\), then the stock is insufficient and you should output "REPLENISH"; otherwise, output "STOCK SUFFICIENT".
inputFormat
The input begins with an integer T indicating the number of test cases. Each of the following T lines contains an integer R and a product identifier separated by a space.
outputFormat
For each test case, output a single line. Print "REPLENISH" if the extracted stock quantity is less than R; otherwise, print "STOCK SUFFICIENT".## sample
1
50 P123L456100
STOCK SUFFICIENT
</p>