Underhanded C contest

This is a discussion on Underhanded C contest within the A Brief History of Cprogramming.com forums, part of the Community Boards category; http://www.brainhz.com/underhanded/ Anyone going to enter? I know I'm not - wouldn't have a clue where to start to be honest....

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Underhanded C contest

    http://www.brainhz.com/underhanded/

    Anyone going to enter? I know I'm not - wouldn't have a clue where to start to be honest.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,673
    > wouldn't have a clue where to start to be honest.
    <tease>I could make a suggestion....</tease>
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    What a dumb contest.

  5. #5
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    A. Choose a platform that uses a ram-drive for file storage.
    B. Choose a platform that uses punch cards for file storage.
    C. Write a few gigabytes of temporary data to file.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,941
    Quote Originally Posted by anonytmouse
    A. Choose a platform that uses a ram-drive for file storage.
    B. Choose a platform that uses punch cards for file storage.
    C. Write a few gigabytes of temporary data to file.
    Wont get the extra points for "genuinely OS-dependent, rather than hardware-dependent."
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    Quote Originally Posted by Bubba
    What a dumb contest.
    Have to agree, though it's pretty funny!
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  8. #8
    Registered User
    Join Date
    Mar 2006
    Posts
    725
    Now I've seen everything......
    Code:
    #include <stdio.h>
    
    void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){
    puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9
    /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i]
    ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][
    t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}

  9. #9
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    This reminded me of something I saw in the MSVC express start page. Looks like microsoft are actively encouraging the creation of malware
    http://msdn.microsoft.com/coding4fun/april-fools/

  10. #10
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    I really hope you're not serious.

  11. #11
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357
    A. Choose a platform that uses a ram-drive for file storage.
    B. Choose a platform that uses punch cards for file storage.
    C. Write a few gigabytes of temporary data to file.
    Those are all things that would be caught easily.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Expression Evaluator Contest
    By Stack Overflow in forum Contests Board
    Replies: 20
    Last Post: 03-29-2005, 09:34 AM
  2. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  3. WANTED: Contest Master
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-23-2003, 09:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21