AtCoder Beginners Contest 087[A to C]

Tasks

 

A. Buying Sweets … Simple print modulus (=changes) result

 

B. Coins … This takes N^3, and it’s much costly. And obviously there is a room for improvement.

 

C. Candies … Iterate index one by one, so the cost is N.

 

Leave a Reply

Your email address will not be published. Required fields are marked *