Thread: May monthly contest

  1. #31
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Perhaps 'guarantee' was a too strong word.

    I don't see how an explicit formula would be impossible to derive in a similar manner as the formula for the first problem (using the generating function for the difference equation). I'm not able to do it though.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  2. #32
    Registered User manofsteel972's Avatar
    Join Date
    Mar 2004
    Posts
    317

    PM medium

    Just found out today was deadline so just posted code for medium.
    "Knowledge is proud that she knows so much; Wisdom is humble that she knows no more."
    -- Cowper

    Operating Systems=Slackware Linux 9.1,Windows 98/Xp
    Compilers=gcc 3.2.3, Visual C++ 6.0, DevC++(Mingw)

    You may teach a person from now until doom's day, but that person will only know what he learns himself.

    Now I know what doesn't work.

    A problem is understood by solving it, not by pondering it.

    For a bit of humor check out xkcd web comic http://xkcd.com/235/

  3. #33
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Ok everyone, the contest is over. I'll start going through and grading the submissions tonight, should have the results real soon. I haven't quite decided yet if I'm going to be grading them extensively or not, one of the issues with these problems I didn't realize until after I already started the contest was that you either knew the answer or not, so pretty much everybody had the same solutions. So we quite likely will have multiple winners for each problem.

    In the meantime, I'm looking for feedback on these problems. Too hard, too easy, just right? Would you prefer problems that are more involved and require more code since each of these problems could be written in only a few lines? Let me know, don't worry you won't hurt my feelings. We had a LOT more entries this time than the last time which is good, but I'm afraid I really didn't challenge anyone who wanted a serious challenge. Of course, when I did that last time, nobody sent an entry
    Last edited by PJYelton; 05-16-2005 at 11:11 AM.

  4. #34
    Registered User
    Join Date
    Jul 2004
    Posts
    17
    Challenges were ok, but it seemed that for the more difficult ones, people either knew or didn't, meaning that they didn't nessecarily work out the solutions themselves but already knew. I think challenges that encourage people to think for themselves, resulting in a range of solutions could be more interesting

    Pete

  5. #35
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Agreed that was the issue with the original hard problem which is why I created the second version which did require you to think it through and create an algorithm.

    Next time I will be more aware of creating problems that can be solved in many ways. I just didn't realize this until after I had already submitted the contest.

  6. #36
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by PJYelton
    one of the issues with these problems I didn't realize until after I already started the contest was that you either knew the answer or not,
    The second version of the hard problem I solved myself. The first version is a standard example of combinatorics.

    The problems are more about combinatorics than programming, but I'm not complaining. Combinatorics is very useful to a programmer.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  7. #37
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Oops, that sentence from me should read "you either GOT the answer or not", which I meant was that if you got the correct answer, you almost certainly had the same impementation as anyone else making it hard for me to give scores.

    I think next time I'll bring in some graph problems.

  8. #38
    -AppearingOnThis..........
    Join Date
    May 2005
    Location
    Netherlands
    Posts
    44
    Personally I liked your challenges a lot, including the shortness of them, as I find hours of mindless coding a little boring in its lack of creativity. As for hardness, I think you could have upped the amount of difficulty on the medium one, as I actually found that one easier than the easy one. Then again, I shouldn't be berating your competitions as I am absolutely horrid at coming up with any sort of programming challenge myself.

    In regard to any future competition, if you plan on doing one, do you think you could include something that is based on low-level limits, ie. a timestamp incrementor which dosn't use any of the C runtime library functions. I always loved those type of problems.

  9. #39
    Registered User
    Join Date
    Mar 2005
    Posts
    38
    I think the challenges were a little too easy. But I enjoyed them nonetheless! Mathematical problems / shortcuts are fun, keep 'em coming.

    A totally different kind of contest is "code brevity". I don't know if that's been done before on this board, but I had a lot of fun on the CPP-home (example 1, 2, 3) contests. The problem can be really simple, the fun is to minimize the number of coding tokens. So the emphasis is more on pure C++ knowledge / tricks than creating an algorithm. A 'disadvantage' is that the resulting code will be quite obfuscated sometimes.
    Would this be something for the future?
    Last edited by Togra; 05-17-2005 at 08:40 AM. Reason: added examples

  10. #40
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by Togra
    A totally different kind of contest is "code brevity". I don't know if that's been done before on this board,
    This is the most recent:
    http://cboard.cprogramming.com/showthread.php?t=57330
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  11. #41
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Yeah, hard core or low level C/C++ are not my expertise so I tend to leave those types of problems to the experts. As for code brevity, as long as you aren't using macros 90% of the time IMO the shorter the algorithm the better and more efficient the algorithm and would be judged accordingly. Unfortunately the May problems didn't leave too much room for that, next time though

  12. #42
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    Since the contest is over, here is my submission for medium.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  13. #43
    Very odd... programminggeek's Avatar
    Join Date
    May 2005
    Posts
    1
    good, fun problems, i think...

  14. #44
    Registered User manofsteel972's Avatar
    Join Date
    Mar 2004
    Posts
    317
    Just a thought. Since you said last time that you thought the problems were too hard why not provide a hint or spoiler. bascially you deduct points for needing a hint but if some people are really stumped on where to start they could ask for a hint each hint being more helpful but deducting more points. You could setup a special page to automate giving out the hints so you don't have to be emailing everyone all the time.
    **Edit** either that or send out hints automatically at the end of each week. So you are encouraged to send in your answers as soon as possible. each week that goes by deducts from your score as hints are sent out.
    Last edited by manofsteel972; 05-18-2005 at 06:47 PM.
    "Knowledge is proud that she knows so much; Wisdom is humble that she knows no more."
    -- Cowper

    Operating Systems=Slackware Linux 9.1,Windows 98/Xp
    Compilers=gcc 3.2.3, Visual C++ 6.0, DevC++(Mingw)

    You may teach a person from now until doom's day, but that person will only know what he learns himself.

    Now I know what doesn't work.

    A problem is understood by solving it, not by pondering it.

    For a bit of humor check out xkcd web comic http://xkcd.com/235/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. May Monthly Contest Results
    By PJYelton in forum Contests Board
    Replies: 28
    Last Post: 05-27-2005, 01:43 AM
  2. Results of March Monthly Contest
    By PJYelton in forum Contests Board
    Replies: 23
    Last Post: 04-17-2005, 09:46 AM
  3. New Monthly Contest!
    By PJYelton in forum Contests Board
    Replies: 50
    Last Post: 03-22-2005, 08:27 PM
  4. WANTED: Contest Master
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-23-2003, 10:15 PM