whatdoesthefoxsay - bradendubois/competitive-programming GitHub Wiki

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.