Thread: Almost Daily Contest #3

  1. #16
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

    Talking

    Heh well had to try

  2. #17
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    I do require that you actually read the file.
    Bah, add a fgets in there, and call it quits.


    Can we use STL things like std::string?

  3. #18
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >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.

  4. #19
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    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.

  5. #20
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >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.

  6. #21
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    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

  7. #22
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >I am to hasty to care about it potentially being wrong.
    My best code is written with the delete key.

  8. #23
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    I've got mine coded, but for some reason, turning on the optimizer makes it incorrect.

  9. #24
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    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

  10. #25
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    submitted mine. My problem was an uninitialized variable...

    anyway, mine should blaze sufficiently fast. I'm curious to see how everyone else does.

  11. #26
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    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.

  12. #27
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >Can we assume that the numbers in the file are unsigned (not negative)?
    Yes.
    My best code is written with the delete key.

  13. #28
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Submitted my hyper fast entry now. yay

  14. #29
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    prelude, any early results?
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  15. #30
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Almost Daily Contest Details
    By dagdarian in forum Contests Board
    Replies: 4
    Last Post: 01-25-2005, 05:03 AM
  2. Almost Daily Contest Details
    By Prelude in forum Contests Board
    Replies: 29
    Last Post: 09-19-2004, 10:32 PM
  3. Almost Daily Contest #4
    By Prelude in forum Contests Board
    Replies: 35
    Last Post: 08-25-2003, 08:54 AM
  4. Almost Daily Contest #2
    By Prelude in forum Contests Board
    Replies: 37
    Last Post: 08-09-2003, 10:51 PM
  5. Almost Daily Contest #1
    By Prelude in forum Contests Board
    Replies: 32
    Last Post: 08-05-2003, 08:34 AM