I used the paragraph too but my large test case failed because I used
"cin.getline(line,500)". It was reading exactly 500 characters and ignoring
the "\n" character which is read as the next line :(

On Mon, Sep 7, 2009 at 9:32 PM, David M. <[email protected]> wrote:

> No. I used that paragraph too, and my program worked ok with it, but with
> the large data set didn“t. Neither solved the first case... :(
>
> 2009/9/7 Lucas Piva <[email protected]>
>
>>
>> I actually used the first paragraph as a test case. If you copy&paste
>> the first paragraph, it has exactly 400263727 occurrences of "welcome
>> to code jam" as a substring, as mentioned on the second paragraph. I
>> think that test was strong enough for any code.
>>
>>
-- 
Best Regards,
Sandaruwan Gunathilake

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