zoo - bradendubois/competitive-programming GitHub Wiki
Un-bear-able Zoo
ID: zoo
Difficulty: 2.0
CPU Time: 1 second
Memory: 1024 MB
Solution
For each case, create a map that tracks an animal and the number of them seen. For each line, turn the last word into lowercase and increase the value that word maps too. Then, go through the keys of this map and output the animal:count pairs.