AtCoder Beginners Contest 085[A to C]

Tasks

 

A. Already 2018 … String concatenation and slicing

 

B. Kagami Mochi … I used set. As all values added into the set is unique(duplicated values will be ignored), I just need to output the numbers of the set once all input is completed.

 

C. Otoshidama … I used simple two for loops to iterate the numbers of 10,000 notes and 5,000 notes. Hence the cost is N^2.