This problem was used in the following GFU competitions:
GFU 2024 D3 Q2
You have been tasked by Ramsey Gordon to find the lamb sauce, but you are having trouble. You need to write a program to determine if the dish you are given has lamb in it.
The first input will contain a single integer n that represents the number of data sets that follow. Each data set will consist of a string of ASCII characters, each data set will be on its own line.
If the input string contains the string "lamb", ignoring spaces, punctuation, and case, output the
string "Lamb location confirmed.". If not, output the string "Where's the Lamb
Sauce?!?"
Example Input:
5
Lamb with lemon sauce
hello la, mb
Roast Chicken with Vegetables
New York Strip
LaMB sauce
Example Output:
Lamb location confirmed.
Lamb location confirmed.
Where's the lamb sauce?!?
Where's the lamb sauce?!?
Lamb location confirmed.
*** Note, there would not be a blank line in the output
This problem only cares about letters. Remove all other symbols (or put only letters into a new String)
Inputs
10
Lamb with lemon sauce
hello la, mb
Roast Chicken with Vegetables
New York Strip
LaMB sauce
L a ,,M !.? b
L a ,,Mm !.? b
your upside down
lamblamblamblamblamb
duck confit
Outputs
Lamb location confirmed.
Lamb location confirmed.
Where's the lamb sauce?!?
Where's the lamb sauce?!?
Lamb location confirmed.
Lamb location confirmed.
Where's the lamb sauce?!?
Where's the lamb sauce?!?
Lamb location confirmed.
Where's the lamb sauce?!?