Here are two soln's that are almost same...
1 is ac :-- http://www.codechef.com/viewsolution/4128188 ..
nd other shows wa :-- http://www.codechef.com/viewsolution/4129571 ...(mine)
the one that shows wa is built with respect to constraints... the constraints that shows max value of n as 10000 is wrong(i suppose correct me if i m wrong)...
Plz tell me the error in my code it cost me 3 WA's
Thnx for ur help