wip
Time Limit: 1 seconds
Memory Limit: 128 MB
Rating: 900
Problem StatementA new intern works in the underworld, he has to feed Cerberus and help Cerberus guard the door to the underworld. Cerberus has a keen sense of smell to bad karma (people who do very bad things), and everytime Cerberus smells someone bad, Cerberus lets out a growl. Create a program that helps Hiroto record Cerberus’ growls. - When Cerberus lets out a growl (“*Growl”), Hiroto needs to add the “very bad” count by $1$ When Cerberus lets out a slight growl (“slight *growl”), Hiroto needs to add the “bad” count by 1 When Cerberus lets out a hungry sound (“ruff”), Hiroto needs to add the “meal” count by 1 and minus 1 from the very bad count. Output your results in the order of very bad, bad, meal on the same line seperated by space
InputA long string
OutputIntegers in the order $very bad$, $bad$, and $meal$ separated by spaces.
Sample CasesSample Input 0: ruff, slight*growl, *Growl, slight*growl, slight*growl Sample Output 0: 0 3 1Explanation
Not available for this problem.
SourcesKL Coding Cup October 2024 > Problem 6
Submit | Back