You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bradendubois edited this page Nov 8, 2021
·
8 revisions
What does the fox say?
ID: whatdoesthefoxsay
Difficulty: 2.3
CPU Time: 1 second
Memory: 1024 MB
Solution
For each of the T test cases, store the fox's message, then go through all of the following lines (until reaching the question), and store the third word on these lines (animal goes sound) in a map, a list, etc. and after reaching the question, go through the fox's original message, word by word; if the word is not in the map/list of non-fox noises, output it.