Why is this solution not working for this problem?
https://codeforces.com/problemset/problem/404/A
Why is this solution not working for this problem?
Hello @cbcao263,
Your logic for this question might be incorrect.
Refer to the following code:
Hope this would help.
@S18ML0016
i think it was my mistake only 
,
he has created two different thread for the same doubt ,and i have replied to wrong thread.
extremely sorry for this
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
