Beginners Brevity Contest: BUZZ

Online C++ programming contests.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard, raimo

Postby Darryl » Wed Sep 28, 2005 6:20 am

Togra wrote:Now at 111, running out of ideas.
BTW, where is BeerHunter? This would not only be a fun contest, but also a nice drinking game for him ;)!

[edit]
Wait, he posted to be at 112. Gamma is already at 101, so they can also be added to the ranking.


That's what's posted, not what I've received... I believe there have been "postings" under Corsix's 101 but again not received
User avatar
Darryl
 
Posts: 1342
Joined: Wed Sep 01, 2004 10:50 am
Location: Cayman Islands

Postby Corsix » Wed Sep 28, 2005 9:12 am

Darryl wrote:I believe there have been "postings" under Corsix's 101 but again not received
If they are then I can think of better things to do than stare at my code some more...
Code: Select all
#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);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

Postby gamma » Thu Sep 29, 2005 12:41 am

I just sent my 101-solution. Not sure whether it will compile with his compiler. I'll keep my fingers crossed. I counted 4 exploits. eep.
while (true){sleep(28800);work(57600);}
"Free" as in speech is so much better than "free" as in beer.
User avatar
gamma
 
Posts: 178
Joined: Mon Dec 01, 2003 9:16 am
Location: The Netherlands

Postby Safari » Thu Sep 29, 2005 3:08 am

exomo wrote:I am the winner, I need most tokens
... and in 5 years you don't have a chance 8)

Will you then need 300 tokens :lol:

Btw, 117 tokens (wating for Darryl to confim my last entry) and completly out of ideas
你 好!
User avatar
Safari
 
Posts: 1362
Joined: Sun Sep 19, 2004 11:07 am

Postby gamma » Thu Sep 29, 2005 3:21 am

Anonymous coward says:
If you run of of ideas: cheat!
while (true){sleep(28800);work(57600);}
"Free" as in speech is so much better than "free" as in beer.
User avatar
gamma
 
Posts: 178
Joined: Mon Dec 01, 2003 9:16 am
Location: The Netherlands

Postby Safari » Thu Sep 29, 2005 4:48 am

I did that! My solutions works! But thanks to - no name - (you know if your solution isn't working) I had to make a minor change, now I have 123 tokens.

So if there was I rule that saying: "only send in working solution" mine would be @ 117 tokens.

Baahh, that's no excuse :wink:

So is someone < 100 tokens?
你 好!
User avatar
Safari
 
Posts: 1362
Joined: Sun Sep 19, 2004 11:07 am

Postby gamma » Thu Sep 29, 2005 7:40 am

Safari wrote:So is someone < 100 tokens?
Yes, I'm at 98. Compiles with g++, but not with Darryl's compiler..
while (true){sleep(28800);work(57600);}
"Free" as in speech is so much better than "free" as in beer.
User avatar
gamma
 
Posts: 178
Joined: Mon Dec 01, 2003 9:16 am
Location: The Netherlands

Postby gamma » Thu Sep 29, 2005 7:48 am

Damn, forgot to erase some old code. Make that 83. Currently working with g++ (on Intel x86 platform).

Edit:
Note: it still doesn't work on Darryl's compiler, but I don't care about that too much now. Just going for ultra low tokencount :-)
while (true){sleep(28800);work(57600);}
"Free" as in speech is so much better than "free" as in beer.
User avatar
gamma
 
Posts: 178
Joined: Mon Dec 01, 2003 9:16 am
Location: The Netherlands

Postby Darryl » Thu Sep 29, 2005 9:39 am

Ok, Gamma, I just tried out your solution(the last one you sent me) in Dev-C and it compiles and works


I think for future contest I think I will make you guys add version info to your entries so I can keep up with the latest version
User avatar
Darryl
 
Posts: 1342
Joined: Wed Sep 01, 2004 10:50 am
Location: Cayman Islands

Postby Alvaro » Thu Sep 29, 2005 11:55 am

Are we allowed to make a solution that only works for the first one million numbers and that is several megabytes in size?
User avatar
Alvaro
Moderator
 
Posts: 5185
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Postby Corsix » Thu Sep 29, 2005 12:04 pm

Alvaro wrote:Are we allowed to make a solution that only works for the first one million numbers and that is several megabytes in size?
A) File I/O is not permitted
B) String literals can't go over 2,048 bytes in MSVC
C) It might go to two million
Code: Select all
#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);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

Postby c2.0 » Thu Sep 29, 2005 12:08 pm

Embedding cpu instruction code in strings is just redicoulous, anyone can compile and rip out the binary.... where's the fun in that?
c2.0
 
Posts: 43
Joined: Sun Nov 07, 2004 5:50 pm
Location: Scotland

Postby Corsix » Thu Sep 29, 2005 12:16 pm

No, I don't think that was Alvaro's idea - it was more along the lines of my contest 45 entry
Code: Select all
#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);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

Postby Dante Shamest » Thu Sep 29, 2005 12:20 pm

Any chance the entries for Contest 45 are still available for download somewhere? They don't seem to be on the link specified on this page anymore.
User avatar
Dante Shamest
Moderator
 
Posts: 3131
Joined: Wed Oct 22, 2003 10:29 pm
Location: Malaysia

Postby Safari » Thu Sep 29, 2005 12:37 pm

OMG! What a dumbass I've been!
Down to 112 tokens :D
你 好!
User avatar
Safari
 
Posts: 1362
Joined: Sun Sep 19, 2004 11:07 am

PreviousNext

Return to Contests

Who is online

Users browsing this forum: No registered users and 1 guest