I recently solved this problem( http://codeforces.net/problemset/problem/2/B ) but when i submit my solution it says that i have a wrong answer on test-case 6, but when i run this test-case on my computer it gives the correct answer! Please someone look at my submission ( http://www.codeforces.com/contest/2/submission/2204652 ) and inform me if i am doing something wrong!
You should fix this mistake first: