ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1014. Product of Digits

Anyone Please Tell Me what is Test #8
Posted by K P Charith Chowdary 3 Oct 2007 18:32
I've tried 0 it gives 10
I've tried 1 it gives 1
I've tried nos <10 and >1 gives the same
I've tried characters and strings gives -1
I've tried 1000 000 000 it gives 555 555 555 888
I've tried 12 It gives 26 Not 34
I've used the method of coming back from 9 To 1 dividing the number..
Please tell what is Test #8
Re: Anyone Please Tell Me what is Test #8
Posted by maksay 29 Nov 2007 21:42
Thanks for 12 test It really helped me If you still don't know how to solve - 426287475
Re: Anyone Please Tell Me what is Test #8
Posted by K P Charith Chowdary 3 Dec 2007 17:23
Hey Got the Mistake...

I declared the array small.... That is the array that is used to store the digits...
Re: Anyone Please Tell Me what is Test #8
Posted by Kholdi 13 Dec 2007 19:40
I think I know whats the problem. My program had error on T#8 too. and it couldn't work for 100000000.
Re: Anyone Please Tell Me what is Test #8
Posted by Alias (Alexander Prudaev) 14 Dec 2007 20:04
try 910 = 13 * 7 * 5 * 2
answer is -1
try 26