Affirmative

Discussion of challenges you have already solved
wiz1989
Posts: 10
Joined: Thu Feb 19, 2009 7:00 pm
Location: Germany

Affirmative

Post by wiz1989 »

Ok, took me a lot of time. But I finally did it.
But only because I was so angry about all those "yeses" and wanted to deny^^
Is there any other way to solve this challenge than letting your anger solve it?
michuber
Posts: 57
Joined: Sun Oct 26, 2008 3:30 pm

Re: Affirmative

Post by michuber »

You noticed the capital letters?
wiz1989
Posts: 10
Joined: Thu Feb 19, 2009 7:00 pm
Location: Germany

Post by wiz1989 »

I did, but I didn't filter them. Well, pretty easy challenge after all. No I also recognized the caps-written "NO"^^
blablaSTX
Posts: 11
Joined: Mon Aug 17, 2009 8:12 pm
Contact:

Post by blablaSTX »

tried some other ascii decoding on groups-of-8 bytes of the yes-no bits forst, when suddenly (while looking at the bits in a hex-viewer) I had the aha effect...
markobr
Posts: 17
Joined: Thu May 20, 2010 4:09 pm
Location: Tübingen
Contact:

Post by markobr »

My solution in bad Perl:

Code: Select all

print $_ == 0 ? chr(hex($_)) : $_ < 60 ? "*" : " " foreach @chars;
where @chars contains the hex values.
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Post by teebee »

I like your neat solution. However, it could be written a bit more compact:

Code: Select all

print$_+0?$_<60?"*":" ":chr hex for@chars;
or even "worse":

Code: Select all

print chr($_+0?42-($_&64)/7:hex)for@chars;
Nevertheless, the shortest solution I found so far is

Code: Select all

print chr($_+0?3+($_<60).2:hex)for@chars;
jarel
Posts: 2
Joined: Sun Nov 16, 2008 3:13 pm

Post by jarel »

ouch, that hurt.
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Post by teebee »

Indeed, it was a bit lengthy:

Code: Select all

print chr(-$_?3+($_<60).2:hex)for@chars;
;)
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

I think it's still lengthy:

Code: Select all

print chr(-$_?3+($_<60).2:hex)for@chars
:D
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Post by teebee »

It seems that you are the better golfer here. So, putt it in, please. Perhaps you might also want to take a look at http://golf.shinh.org/.
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

Thanks for the invitation, Teebee.
I tried some problems there.
It's fun! :D
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Post by teebee »

Have I already mentioned that I don't like weekday names ... ;)
aurora
Posts: 54
Joined: Thu Feb 05, 2009 12:31 pm
Location: Bavaria, Germany

Post by aurora »

This one was fun to solve ... imo :)
General_Payne
Posts: 20
Joined: Mon Jun 20, 2011 6:25 pm

Post by General_Payne »

Fun!? Ridiculously frustrating. Looked hard so I left it and left it.

Then come back to it and only find it by sheer fluke. I had spent ages thinking it was binary and trying to work out how the hell it was encoded!
Tabun
Posts: 17
Joined: Wed Feb 05, 2014 12:21 pm

Post by Tabun »

It was pretty funny. I just saw the yesses, tried to 'yes' and 'no', and that was that.
After that, it was super easy to find out how to get 'no' from the actual content, but I'll bet it would've taken a bit longer if I didn't know what to try and get out of it exactly.. :]
Post Reply