http://www.codechef.com/viewsolution/2180244
what’s wrong in this code…
check out the editorial for this problem
after that if u have problem then you can ask
2 Likes
i’ll try that method too. but is error in this code
your code is perfectly fine…just the 1 error is that u r printing all the answers in the same line…just include a \n in ur printf statement and u’ll be through…
3 Likes
thanks man… it pissed me off.