I used fgets of C, but I forgot to trim the newline(\n) of each input line

It is so tricky that my output  for small input is correct....


On Fri, Sep 4, 2009 at 4: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?
>
> >
>


-- 
Thanks,
Rick

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to