AtCoder Beginners Contest 089[A to C]

Tasks

 

A. Grouping 2 … Simply print the result of the floor result

 

B. Hina Arare … As I use set(), I just need to add everything in this set. And print out the result to get the unique numbers of colors.

 

C. March … At the first sight, I thought I used regular expression to get the matching result. but soon realized it would be too slow in this case as N is a way big. Instead I use simple dictionary to store just the numbers of person whose name starts with any character in “MARCH”. With this, the cost would be N, and it should be completed within the necessary timeframe.