Code not working
I have mentioned the mistakes in comment.Please make those changes.
i have made the changes but still not showing correct output
Can you please attach updated code?
Also, you are getting wa or run time error
showing wrong ans even for sample case
hii can you please ans it
I have made some changes to your code.Now it is getting accepted.