I've tried many test cases and it is giving correct answer but judge keeps showing wrong answer ;-(
i have given an awful time to this problem and still not getting AC.any help will be highly appreciated
It's all in the forum
And your code fails e.g. for input size of three digits.
yaa i read that topic and i generated many test cases which were correct.and it seems that my code is giving correct answer for the input size of three digits that i have tried so far.
can u give me a particular test case for which my code fails??
So you did not generate and check all possible 3digit test cases?
Try this one:
thanks a ton.I skipped an important case.that was a big mistake i did.finally i got AC coz of u
again, thanks a lot!!!
You know how I found this case? By adding 4 lines of code to generate test cases