I'm new to codeforces I was practicing and I decided to solve this problem: Problem 899A I'm getting a runtime error although the algorithm runs smoothly on my pc here is a link to my submission: http://codeforces.com/contest/899/submission/33360057
Runtime error
I'm new to codeforces I was practicing and I decided to solve this problem: Problem 899A I'm getting a runtime error although the algorithm runs smoothly on my pc here is a link to my submission: http://codeforces.com/contest/899/submission/33360057