sum 1 plz help…heres my solution …seem’s to be working for all test cases,but still showing wrong answer…http://www.codechef.com/viewsolution/4102672
sorry i gave the wrong link.this is my corrected solution link which is also giving wrong answer.http://www.codechef.com/viewsolution/4102841
@prem_93 I am sorry with the cases I have given. I understood the question wrong.
See what’s happening to those with the cases in second link with the same in first link.
the answers must be 9100,910,990010 right?
oh!!!that was an initialization mistake…no problem in I/O…bug found…solution accepted…still pondering over the weird way in which my program behaved due to an initialization mistake…and thanks for that find.