Thread: Almost Daily Contest Details

  1. #1
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897

    Almost Daily Contest Details

    Here's how the "almost daily" contests (ADC's) work now that I've had a chance to see what I can expect.

    Almost daily means that I don't have the time or the energy to come up with and grade entries every 24 hours. Also, if a contest only lasts one day, the number of entries will fall rapidly. Not may people come to these boards daily, even fewer have time to create an entry on such short notice. A weekly contest is too long for the simple tasks I'm planning on, so the timeframe of the "almost daily" contests will be between 2 and 4 days.

    There will be three difficulty levels when I can manage it, but possibly not. A fourth skill level may be thrown in just for giggles too. The four levels will be thus:

    Beginner: You've started learning C/C++, written a few programs, but for the most part see yourself as a newbie. You ask more questions than you answer.

    Intermediate: You know your way around C/C++'s more commonly used features, have written a couple of nontrivial programs and don't ask as many question as you answer because you can either find the answer, or already know it.

    Advanced: You consider yourself an expert in the language syntax and are comfortable with the idioms and tricks. You're most likely a professional or a talented amateur. You rarely ask questions and when you do, they typically only have one or maybe two replies because not many people know the answer.

    l33t: You're a 1337 haX0r that can do anything and everything. Or you're anybody else that wants an odd challenge.

    You aren't required to only submit entries for your skill level because that wouldn't be fun.

    Entries will be graded on four categories unless explicitly stated otherwise:

    Correctness: 0-10
    Speed: 0-10
    Elegance: 0-10
    Portability: 0-10

    The first ADC will be graded on these four even though I said otherwise in the task descriptions. My mistake, I was still getting a feel for grading entries.

    In the event that there are two winning entries, the one that was submitted first will take the prize. In extraordinary cases, a category may be given a score higher than 10. This indicates a truly wonderful entry, whether it be far faster than expected, or a work of art in elegance.

    All entries will be posted for everyone to see and reviewed by the judge or judges. If you don't like your code shredded to ribbons, it's recommended that you get a program like lint or don't participate. However, having harsh code reviews can be very beneficial, so I hope that everyone can tolerate my pedanticism.

    ADC's will not overlap. This saves me the confusion. So the next ADC will come out a short time after the previous one, depending on how long it takes me to develop the tasks.

    Finally, suggestions are most welcome. If you have a task suggestion, PM me with it.

    [Note]
    This post will be edited as I solidify what the ADC is and does.
    [/Note]
    My best code is written with the delete key.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    I'm now taking applications for a code reviewer for ADC contests. Handling every bit of the contest is very draining. Please PM me for further information or to request the job.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    Wish I wasn't a newbie so I could help out. Sounds like it's going to be fun and a great learning experience!

  4. #4
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169
    Quote Originally Posted by curlious
    Wish I wasn't a newbie so I could help out.
    yeah same man

    actually... i may fall under intermediate... not too sure. i just learned tierinary (sp?) operators and can't wait to throw those in some apps.
    "uh uh uh, you didn't say the magic word"
    -Jurassic Park

  5. #5
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Quote Originally Posted by heat511
    actually... i may fall under intermediate... not too sure. i just learned tierinary (sp?) operators and can't wait to throw those in some apps.
    Do not make direct eye contact with me.

  6. #6
    Registered User
    Join Date
    May 2004
    Posts
    1

    how i can participate in c language contest

    hi,
    tell me how can i participate in c language contest, tell me the procedure. do reply me, i m waiting.

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    8
    how can i send answers to the questions raised by others.

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    The exact same way you just asked that question.

  9. #9
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>I'm now taking applications for a code reviewer for ADC contests
    I'd love to do it, but I'm underqualified and overbusy. I could maybe help out once in a while though.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  10. #10
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    I could help with the noobie contests.

    I even have a few good contest ideas!

    :P
    What is C++?

  11. #11
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Feel free to start one up if you feel the need. I'm too busy to take my Contest Master duties seriously these days.
    My best code is written with the delete key.

  12. #12
    This sounds pretty cool. I have been programming for about 6 years, with 3 years of C experience. I could always help out. I'm not a guru none the least, but I do know alot about the langauge and have written data conversion programs, game engines, and much more.

    I could help Vicious with his ideas if seen fit, or even bring some to the table myself. I'm an every-dayer here, so I could even submit some codes for the contest


    Just my two cents,
    - Stack Overflow
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

  13. #13
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I had a great idea for something fun to do, but unfortunately, the beast that is the sig engine ruined it for me. You see that line right above your sig? That was to be the top edge of a maze. So I wrote a maze generator, which gave me the following output:
    Code:
    |         |     |S
    | + +-+-+ + +-+ |I
    | | |       | | |G
    | + +-+-+-+-+ + |M
    | |     |   |   |A
    | +-+-+ + + + +-|Z
    |     |   | |   |E
    ------------------
    It would have lined up perfectly (on a character basis), and that line would have formed the top wall.

    However, it seems that:
    a) The sig doesn't preserve white space.
    b) The sig is in some obscure font.
    c) The line is in some obscure font and sice.
    d) The font tags have stopped working in the sig.
    e) Replacing the spaces with periods doesn't help, because characters aren't a fixed size in the sig.

    And so my idea was ruined. I was going to post the sig, and start a contest thread on it. Two contest actually:
    1) A basic contest to generate a maze to fit that line as the top of it.
    2) A harder contest to see if you could get the code for your maze generator to fit in the 500 character requirement for the sig space.

    My maze generator I made crunched down to some 900+ characters.
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #define A char
    #define B break
    #define C case
    #define D if
    #define P printf
    #define I int
    I t(I y,I x,A m[4][8]){return((y<1?0:m[y-1][x]?0:1)+(x>6?0:m[y][x+1]?0:2)+(y>
    2?0:m[y+1][x]?0:4)+(x<1?0:m[y][x-1]?0:8));}void g(A m[4][8],I*u,I y,I x,I f){
    D(*u<31){I e,d;m[y][x]|=f;d=rand()%4;while((e=t(y,x,m))){switch(d++%4){C 0:D(e&1
    ){m[y][x]|=1;g(m,u,y-1,x,4);D(!t(y,x,m))B;}C 1:D(e&2){m[y][x]|=2;g(m,u,y,x+1,8)
    ;D(!t(y,x,m))B;}C 2:D(e&4){m[y][x]|=4;g(m,u,y+1,x,1);D(!t(y,x,m))B;}C 3:D(e&8){
    m[y][x]|=8;g(m,u,y,x-1,2);D(!t(y,x,m))B;}}}}}I main( void ){A s[4][8]={{0}},m[]
    ="SIGMAZE-";I u=0,y,x;srand((unsigned I)time(0));g(s,&u,rand()%4,rand()%8,0);for
    (y=0;y<4;y++){P("|");for(x=0;x<8;x++)P(!(s[y][x]&2)?" |":"  ");P("%c\n%c",m[y*2
    ],y<3?'|':'-');for(x=0;x<8;x++){P(!(s[y][x]&4)?"-":" ");P(y==3?"-":x==7?
    "|":"+");}P("%c\n",m[y*2+1]);}return 0;}
    I was going to see if I could rewrite it to fit in the required 500, but since the sig engine *CENSORED CENSORED CENSORED*, there's no point.

    So in short, it was a waste of time, amsuing though it was.

    [edit]
    Oooh. Another look at the code, and I've shaved off another 53 charactes.
    [edit]

    Quzah.
    Last edited by quzah; 09-15-2004 at 12:05 PM.
    Hope is the first step on the road to disappointment.

  14. #14
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    hehe, nice quazah. your sig is a bar graph right?

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  15. #15
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    Quzah, if you place the mace between php vbcode tags, i think spaces are kept.

    edit: hrm, but then of course they are seperated.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

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 #4
    By Prelude in forum Contests Board
    Replies: 35
    Last Post: 08-25-2003, 08:54 AM
  3. Almost Daily Contest #3
    By Prelude in forum Contests Board
    Replies: 29
    Last Post: 08-16-2003, 08:48 PM
  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