Hey ya right friends, even m having the same problem, I solved the code mathematically, then implemented it, and m sure that my loops are not infinite, still they keep on running in case of large input files for hours... :-(
On Sun, Sep 6, 2009 at 12:06 AM, Bartholomew Furrow <[email protected]>wrote: > Bey > Your algorithm sounds right, but there are lots of small ways in which it > could be wrong. I'd suggest going to "View my submissions," downloading > your input file and your output file, and then downloading the winner's code > and running it on the input. Compare that output to your output, and you've > found a case that exercises your bug... it's all debugging from there. > > Cheers, > Bartholomew > > On Fri, Sep 4, 2009 at 1:59 PM, Bey <[email protected]> wrote: > >> >> Hi >> I noticed that there are a large number of people who go the small >> input correct for prob C but not the large input. I was wondering why >> that might be. I am one of those people. I think I applied Dynamic >> Programming, and it worked on the small input, but not the large >> input. I still can't figure it out. Does anyone know why a lot of >> people are in the same lot? Basically, I think I am counting the >> number of ways so far of being in one of the 18 states, of having >> observed 'w', 'we', 'wel' etc. And then I write out the number of >> ways of being in the 18th state at the end. Why do I fail on large >> values? I also mod everytime I add numbers. >> >> What is going on? Did you fail on large input too? Did you figure out >> why? >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-code?hl=en -~----------~----~----~----~------~----~------~--~---
