Please tell the doubt in this one. http://codeforces.com/problemset/problem/447/B
@cbcao263 this is your corrected code
please mark your doubt as resolved and rate as well