Xmas competitions

This is a discussion on Xmas competitions within the Contests Board forums, part of the Community Boards category; I think the purpose of #2, was to come up with the exact same output, obfuscating the method in which ...

  1. #61
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    I think the purpose of #2, was to come up with the exact same output, obfuscating the method in which it was done.

    Might want to redo your submission, also your supose to mail it to him. So look up the email he supplied in the first thread some where to make sure he actually gets it.
    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.)

  2. #62
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169
    ... wow...

    so i guess this means i don't win then?
    Last edited by heat511; 12-10-2003 at 01:11 PM.
    "uh uh uh, you didn't say the magic word"
    -Jurassic Park

  3. #63
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    When and how can we expect to hear the results of #1?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #64
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >When and how can we expect to hear the results of #1?
    I imagine we'll get the results of all of them at the same time.
    My best code is written with the delete key.

  5. #65
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    Seeing as the deadline for #2 is up, can we post our code for free judement comparison amongst peers? eh?
    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.)

  6. #66
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    Originally posted by Prelude
    >When and how can we expect to hear the results of #1?
    I imagine we'll get the results of all of them at the same time.
    noooooooooo, I don't want to wait another 2 weeks for the results of #1 and #2, and I'm not going to take part in #3 anyway.

  7. #67
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,161
    I decided to go ahead and post #2, since the contest is closed:
    Code:
                                                    char
                                                   b[120]
                                                ={0x66,0x69,
                                               0x72,0x73,0x74,
                                               0x00,0x00,0x00,
                                             0x00,0x00,0x73,0x65,
                                             0x63,0x6f,0x6e,0x64,
                                          0x00,0x00,0x00,0x00,0x74,
                                          0x68,0x69,0x72,0x64,0x00,
                                               0x00,0x00,0x00,
                                               0x00,0x66,0x6f,
                                            0x75,0x72,0x74,0x68,
                                            0x00,0x00,0x00,0x00,
                                          0x66,0x69,0x66,0x74,0x68,
                                          0x00,0x00,0x00,0x00,0x00,
                                       0x73,0x69,0x78,0x74,0x68,0x00,
                                       0x00,0x00,0x00,0x00,0x73,0x65,
                                     0x76,0x65,0x6e,0x74,0x68,0x00,0x00,
                                     0x00,0x65,0x69,0x67,0x74,0x68,0x00,
                                  0x00,0x00,0x00,0x00,0x6e,0x69,0x6e,0x74,
                                  0x68,0x00,0x00,0x00,0x00,0x00,0x74,0x65,
                                       0x6e,0x74,0x68,0x00,0x00,0x00,
                                       0x00,0x00,0x65,0x6c,0x65,0x76,
                                     0x65,0x6e,0x74,0x68,0x00,0x00,0x74,
                                     0x77,0x65,0x6c,0x66,0x74,0x68,0x00,
                                   0x00,0x00};char c[337]={0x70,0x61,0x72,
                                   0x74,0x72,0x69,0x64,0x67,0x65,0x20,0x69,
                                0x6e,0x20,0x61,0x20,0x70,0x65,0x61,0x72,0x20,
                                0x74,0x72,0x65,0x65,0x2e,0x0a,0x00,0x00,0x20,
                             0x54,0x77,0x6f,0x20,0x74,0x75,0x72,0x74,0x6c,0x65,
                             0x20,0x64,0x6f,0x76,0x65,0x73,0x2c,0x00,0x00,0x00,
                           0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x54,0x68,0x72,
                           0x65,0x65,0x20,0x66,0x72,0x65,0x6e,0x63,0x68,0x20,0x68,
                        0x65,0x6e,0x73,0x2c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
                        0x00,0x20,0x46,0x6f,0x75,0x72,0x20,0x63,0x61,0x6c,0x6c,0x69,
                             0x6e,0x67,0x20,0x62,0x69,0x72,0x64,0x73,0x2c,0x00,
                             0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x46,0x69,
                           0x76,0x65,0x20,0x67,0x6f,0x6c,0x64,0x65,0x6e,0x20,0x72,
                           0x69,0x6e,0x67,0x73,0x2c,0x00,0x00,0x00,0x00,0x00,0x00,
                        0x00,0x00,0x00,0x20,0x53,0x69,0x78,0x20,0x67,0x65,0x65,0x73,
                        0x65,0x20,0x61,0x2d,0x6c,0x61,0x79,0x69,0x6e,0x67,0x2c,0x00,
                      0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x53,0x65,0x76,0x65,0x6e,
                      0x20,0x73,0x77,0x61,0x6e,0x73,0x20,0x61,0x2d,0x73,0x77,0x69,0x6d,
                   0x6d,0x69,0x6e,0x67,0x2c,0x00,0x00,0x00,0x00,0x20,0x45,0x69,0x67,0x68,
                   0x74,0x20,0x6d,0x61,0x69,0x64,0x73,0x20,0x61,0x2d,0x6d,0x69,0x6c,0x6b,
                 0x69,0x6e,0x67,0x2c,0x00,0x00,0x00,0x00,0x00,0x20,0x4e,0x69,0x6e,0x65,0x20,
                 0x6c,0x61,0x64,0x69,0x65,0x73,0x20,0x64,0x61,0x6e,0x63,0x69,0x6e,0x67,0x2c,
              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x54,0x65,0x6e,0x20,0x6c,0x6f,0x72,0x64,
              0x73,0x20,0x61,0x2d,0x6c,0x65,0x61,0x70,0x69,0x6e,0x67,0x2c,0x00,0x00,0x00,0x00,
            0x00,0x00,0x00,0x20,0x45,0x6c,0x65,0x76,0x65,0x6e,0x20,0x70,0x69,0x70,0x65,0x72,0x73,
            0x20,0x70,0x69,0x70,0x69,0x6e,0x67,0x2c,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x54,0x77,
         0x65,0x6c,0x76,0x65,0x20,0x64,0x72,0x75,0x6d,0x6d,0x65,0x72,0x73,0x20,0x64,0x72,0x75,0x6d,
         0x6d,0x69,0x6e,0x67,0x2c,0x00,0x00,};char prnt[]={0x4F,0x6E,0x20,0x74,0x68,0x65,0x20,0x25,
       0x73,0x20,0x64,0x61,0x79,0x20,0x6F,0x66,0x20,0x43,0x68,0x72,0x69,0x73,0x74,0x6D,0x61,0x73,0x2C,
       0x20,0x6D,0x79,0x20,0x74,0x72,0x75,0x65,0x20,0x6C,0x6F,0x76,0x65,0x20,0x67,0x61,0x76,0x65,0x20,
     0x74,0x6F,0x20,0x6D,0x65,0x0A,0x00,0x00};char a1[]={0x20,0x20,0x41,0x00};char a2[]={0x20,0x20,0x41,
    0x6E,0x64,0x20,0x61,0x00,};char a3[]={0x20,0x25,0x73,0x0A,0x00,0x00};char a4[]={0x20,0x20,0x00,0x00};
    //-------------------------------------------------------------------------------------------------\\
                                              #include <stdio.h>
                                              main(){int a,d;for
                                              (a=0; a< 12; a++){
                                              printf( prnt,&b[a*
                                              10]);for(d=a;d>-1;
                                              d--){printf(a4);if
                                              (d==0)printf("%s",
                                              (a?a1:a2));printf(
                                               a3, &c[d*28]);}}
                                                 return(0);};
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  8. #68
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    very nice.

    Here was mine:


    Code:
    #/*I*/i/*N*/nclude <std/*I*/io.h>
    #/*I*/i/*N*/nclude <stdl/*I*/i/*B*/b.h>
    #/*I*/i/*N*/nclude </*F*/fstre/*A*/am.h>
    /*I*/i/*N*/nt /*N*/n[12]/*EQUAL*/= { 5,6,5,6, 5, 5, 7, 6, 5, 5, 8, 7 };
    ch/*A*/ar c[71]/*EQUAL*/= /*QUOTE*/"/*B*/bE/*N*/nO/*P*/pO/*A*/a?KJ@/*P*/pDE/*N*/n@/*B*/bKQ/*N*/n/*P*/pD/*B*/bE/*B*/b/*P*/pDOET/*P*/pDO/*A*/aR/*A*/aJ/*P*/pD/*A*/aECD/*P*/pDJEJ/*P*/pD/*P*/p/*A*/aJ/*P*/pD/*A*/aH/*A*/aR/*A*/aJ/*P*/pD/*P*/pS/*A*/aHR/*P*/pD/*QUOTE*/";
    /*I*/i/*N*/nt t[12] /*EQUAL*/= { 27, 22, 18, 19, 18, 19, 23, 22, 20, 20, 21, 25};
    ch/*A*/ar s[257] /*EQUAL*/= /*QUOTE*/"eD”…–˜–ˆ‹‰D’D…D”‰…–D˜–‰‰_x›“D˜™–˜‰Dˆ“š‰—/*P*/pD…’ˆ_xŒ–‰‰Dj–‰’‡ŒDŒ‰’—/*P*/pj“™–D‡…’‹D†–ˆ—/*P*/pjš‰D‹“ˆ‰’D–’‹—/*P*/pwœD‹‰‰—‰D…Q…’‹/*P*/pw‰š‰’D—›…’—D…Q—›‘‘’‹/*P*/p/*I*/i‹Œ˜D‘…ˆ—D…Q‘’‹/*P*/pr’‰D…ˆ‰—Dˆ…’‡’‹/*P*/px‰’D“–ˆ—D…Q‰…”’‹/*P*/p/*I*/i‰š‰’D””‰–—D””’‹/*P*/px›‰š‰Dˆ–™‘‘‰–—Dˆ–™‘‘’‹/*P*/p_$/*QUOTE*/";
    /*I*/i/*N*/nt /*I*/i /*EQUAL*/= 2;
    /*I*/i/*N*/nt j /*EQUAL*/= 5;
    /*I*/i/*N*/nt m/*A*/a/*I*/i/*N*/n() { o/*F*/fstre/*A*/am /*F*/fout; /*F*/fout.o/*P*/pe/*N*/n(/*QUOTE*/"co/*N*/n/*F*/f.txt/*QUOTE*/", /*I*/ios::/*A*/a/*P*/p/*P*/p); /*I*/i/*N*/nt /*I*/i/*N*/n /*EQUAL*/= 0; /*I*/i/*N*/nt d /*EQUAL*/= 0;
    	/*F*/for( j /*EQUAL*/= 0; j < 12; j++ ) {	/*P*/pr/*I*/i/*N*/nt/*F*/f(/*QUOTE*/"O/*N*/n the /*QUOTE*/"); /*I*/i/*N*/n /*EQUAL*/= 0; /*F*/for( /*I*/i/*N*/nt /*I*/i /*EQUAL*/= 0; /*I*/i < j; /*I*/i++ )	/*I*/i/*N*/n +/*EQUAL*/= *(&/*N*/n[0]+/*I*/i); /*F*/for(/*I*/i/*N*/nt l /*EQUAL*/= 0; l < *(&/*N*/n[0]+j); l++ ) /*P*/pr/*I*/i/*N*/nt/*F*/f(/*QUOTE*/"%c/*QUOTE*/", ch/*A*/ar((*(&c[0]+/*I*/i/*N*/n+l))+36) );	/*P*/pr/*I*/i/*N*/nt/*F*/f(/*QUOTE*/" d/*A*/ay o/*F*/f Chr/*I*/istm/*A*/as my true love se/*N*/nt to me\/*N*/n/*QUOTE*/");
    		/*F*/for( /*I*/i/*N*/nt x /*EQUAL*/= j; x >/*EQUAL*/= 0; x-- ) {	/*I*/i/*N*/n /*EQUAL*/= 0;	/*F*/for( /*I*/i /*EQUAL*/= 0; /*I*/i < x; /*I*/i++ ) /*I*/i/*N*/n +/*EQUAL*/= *(&t[0]+/*I*/i); /*F*/for(/*I*/i/*N*/nt m /*EQUAL*/= 0; m < *(&t[0]+x); m++ )	/*P*/pr/*I*/i/*N*/nt/*F*/f(/*QUOTE*/"%c/*QUOTE*/", *(&s[0]+/*I*/i/*N*/n+m)-36); /*P*/pr/*I*/i/*N*/nt/*F*/f(/*QUOTE*/"\/*N*/n/*QUOTE*/"); }	/*P*/pr/*I*/i/*N*/nt/*F*/f(/*QUOTE*/"\/*N*/n\/*N*/n/*QUOTE*/");	}
    	/*F*/fout << /*F*/flush; /*F*/fout.close();
    retur/*N*/n 0;
    }
    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.)

  9. #69
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Heh, all of those programs can be restructured into readable form by inserting newlines, indentation, removing comments and such. However, my submission (which will remain classified at the time) requires more than that

    Liked the tree though.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  10. #70
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    actualy mine requires a bit of understaning with pointers and references.
    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.)

  11. #71
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    I can't compile your code in either VC nor Borland. Cannot use comments inside preprocessor commands.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  12. #72
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    Yes, you can.
    THe problem has to do with cprogramming.com's post conversion of ascii characters.

    I assure you, I've compiled the actual code (submited through email) in turboC++ and vc++ 6.0
    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.)

  13. #73
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    //-------------------------------------------------------------------------------------------------\\
    The final \ makes the comment continue on the next row in VC, not in Borland though.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  14. #74
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    thats not in my code....
    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.)

  15. #75
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Never said it was. Look in the post before yours.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Page 5 of 6 FirstFirst 123456 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The Xmas Tree competition results
    By Salem in forum Contests Board
    Replies: 10
    Last Post: 12-30-2003, 04:26 AM
  2. Xmas
    By Stoned_Coder in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 12-25-2002, 03:58 AM
  3. Competitions
    By Shakespeare in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2002, 04:00 AM

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