what’s wrong in this code…
check out the editorial for this problem
after that if u have problem then you can ask
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…
i’ll try that method too. but is error in this code
http://www.codechef.com/viewsolution/2180317 this is ur solution with the \n and it got AC…
lol hope u found ur mistake @kunal361 (y) gud work !
thanks man… it pissed me off.