exomo wrote:ps: where is gamma? I allways liked his code.
Hey, I have a fan!
I'll try to enter the next obfuscated contest (although the contest is not obfuscated... I think it should be obfuscating contest.)
Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard, raimo
exomo wrote:ps: where is gamma? I allways liked his code.
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}Sounds like a real challenge as I have not participated in this contest. Sounds like a good evening fillerCorsix wrote:I vote Exomo and Beer Hunter
PS. gamma - cud u plz 'decode' Beer Hunter's - it makes my head hurt
(although the contest is not obfuscated... I think it should be obfuscating contest.)
Very true. I should learn to read somedayexomo wrote:(although the contest is not obfuscated... I think it should be obfuscating contest.)
That's why I call it obfiscated code contest.
:twisted:. I'll take that is a compliment then.exomo wrote:@ gamma: I tried to decrypt your code for the last contest, but I couldn't get it; it's just too good (or should I say bad)
Last one was easy. Definately. Most of them are actually. The last ones I had to solve involved writing longer programs, not necessarily more difficult. With some, I "cheated" as in used Mathematica, most where straight forward c-style C++-programs though. If you need a hint somewhere, I can be of assistence, too. Kept all me programs.exomo wrote:Another one who has 100% @ mathchallenge, it's scary. But I have done the last one, too, it was not that hard as they said.
beerhunter5.cc: In constructor `cs::cs()':
beerhunter5.cc:222: no matching function for call to `cs::setp(int, int, int)'
/usr/include/g++-v3/bits/std_streambuf.h:428: candidates are: void
std::basic_streambuf<_CharT, _Traits>::setp(_CharT*, _CharT*) [with _CharT = char, _Traits = std::char_traits<char>]
Cheater! Spolier!Beer Hunter wrote:Eh, I'll just tell you how it works.
Yep, already saw that. Was in my decryption yesterday.Beer Hunter wrote:struct T is a tokeniser class.
That was kinda obvious, too. I was busty trying to understand where "lol" would fit in. As it is a bunce of if-else-if-else-ifs, I needed a good nights sleep.Beer Hunter wrote:class cs is a stream buffer. At the beginning of execution, I replace cout's buffer with a cs object
This part was give-away-candy. char pei[52]. A deck has 52 cards and it is initialized in main with 1s to 10s. And "tense" is pronounced the same as "tens" which was also an easy guess. And then in main() it is filled with 'T', 'J' etc. Also giveaway candy.Beer Hunter wrote:The global variable 'pei' is the deck of cards. Every card has a value of 1 to 10. This also means that the ten-valued cards are indistinguishable, so I also hold a separate list of ten-valued cards in the variable 'tense'.
I'm sure I would have found that in the end.Beer Hunter wrote:There is one final bit of trickery in how I store the player's and dealer's hands.
Beer Hunter wrote:Eh, I'll just tell you how it works.
for (std::cout << ">_>!"; flour < 5 || flour/*readBet*/ > pie/*money*/; std::cout << ">_>!"); while (floorcaek/*scoreDealer*/ < 17)OMG, not the embrace-and-extend(TM) againBeer Hunter wrote:I really don't think that Microsoft created a three-parameter setp function by accident.It is an extension, and I presume that it sets the third streambuf pointer.
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}Users browsing this forum: No registered users and 1 guest