Dave's ran in 1500ms on my computer using the same optimization level.
Prelude, what system are you running these on? I'm just curious for future comparisons.
Dave's ran in 1500ms on my computer using the same optimization level.
Prelude, what system are you running these on? I'm just curious for future comparisons.
???
You're not gonna get a good preformance reading in each number with fscanf. Every number means the hard drive's being accessed. Even with a cache, it's still a great deal slower than reading it all in at once.
I think we should change the name of these things to "Almost weekly..."
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
>Prelude, what system are you running these on? I'm just curious for future comparisons.
Pentium III 866
512MB RAM
>I think we should change the name of these things to "Almost weekly..."
I agree. It's hard to get a good contest going every third day or so with just me and still give participants enough time to work on it.
My best code is written with the delete key.
weekly work much better for me. i work friday-sunday, and have school monday-thursday. i'll have more time during the week to work on them myself. i just found this board a week or so ago and look forward to participating in the contests. i participate at topcoder.com now, but this will be fun to compete in as well because the focus isn't really on algorithmic knowledge.
???