Heh well had to try
Bah, add a fgets in there, and call it quits.I do require that you actually read the file.
Can we use STL things like std::string?
>Can we use STL things like std::string?
If you want to. As long as the resulting program is fast.
My best code is written with the delete key.
BTW how are you going to be determining the speed? On my machine the info came up in the blink of an eye (actually faster). And I do mean the program that read the info.
>BTW how are you going to be determining the speed?
I'm going to compare all of the programs using a profiler or speed test scaffolding using the time functions.
My best code is written with the delete key.
I've got this thing mostly coded. But I realized that I only accept positive integers. Is there a possibility of negative? That would cause me to have to add a bunch 'o code!!!!!
edit: Never Mind. Submitted. I am to hasty to care about it potentially being wrong.
Last edited by FillYourBrain; 08-15-2003 at 12:11 PM.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
>I am to hasty to care about it potentially being wrong.
My best code is written with the delete key.
I've got mine coded, but for some reason, turning on the optimizer makes it incorrect.
I get the feeling that prelude's smiley is trying to tell me something.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
submitted mine. My problem was an uninitialized variable...
anyway, mine should blaze sufficiently fast. I'm curious to see how everyone else does.
Can we assume that the numbers in the file are unsigned (not negative)? Because if they are unsigned, I'm done and ready to submit.
>Can we assume that the numbers in the file are unsigned (not negative)?
Yes.
My best code is written with the delete key.
Submitted my hyper fast entry now. yay
prelude, any early results?
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
>prelude, any early results?
All I can say is that so far the entries have been very creative and close. The winner and second place(*) differ by about 9ms.
(*) Up to this point. You never know what might happen until it's over.
Last edited by Prelude; 08-16-2003 at 08:51 PM.
My best code is written with the delete key.