Codeforces: A. Next Round

My code: didn’t passed all testcase:

Then looked out the solution but din’t understand one thing but implemented my own:

http://itisadumbblog.blogspot.com/2015/05/codeforces-158a-next-round-solution.html

https://tausiq.wordpress.com/2014/07/13/cf-158a-next-round/

Spread the love