http://www.codechef.com/viewsolution/2180244
what’s wrong in this code…
check out the editorial for this problem
http://discuss.codechef.com/questions/3632/bestbats-editorial
after that if u have problem then you can ask
2 Likes
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
i’ll try that method too. but is error in this code
thanks man… it pissed me off.