Page 2 of 2

Posted: Thu Dec 18, 2008 10:40 pm
by soeschmid
Hi there,

i finally found a solution myself.
My solution is a bit different to those above, so i post it, too:
0<11+0>0<<01^3^1^8?:g d0<3cp


Because there is still a "do nothing" opcode in it,
i hope i can get it still one shorter for the next challenge.

Posted: Wed Jan 21, 2009 4:00 pm
by MichaBln
Ok, if you post your solutions I'll post mine ..

0<01^1^<:2/5?0^<1v1+0^<2?3cdp

Since I've already seen a bunch of different approaches ... maybe I can pick up some optimization-ideas ...

Michael

Here we go

Posted: Fri Jun 26, 2009 11:05 am
by Hamstaro
First my solution looked like the one from sigi - but then i decided to add some fun to it:

Code: Select all

45*1-0^<1^0<2^:1+*>0^2?3c0<p!

Posted: Mon Dec 07, 2009 3:00 pm
by livinskull
Go through that array from behind

Code: Select all

54*1-0^<0<:1+5?0^<0>1-0^2?5c<p
So I start with the number after the input number which is 0, like some others did too
Unfortunately this no longer works, cause on the 5th test there are all negative numbers

therefore I decided to cheat a bit and forget about the last number, and just begin with the 19th

Code: Select all

92*0^<0<:1+5?0^<0>1-0^2?3c<p
well, it worked :D

Posted: Sat Feb 19, 2011 6:07 pm
by whattheh@ck
I think that any solution accepted by the server is a valid solution. Even if that means playing the numbers game and having it get the correct number only most of the time :wink: The idea with these challenges is to force hackers to come up with novel solutions to problems. We should not frown on those who use statistics to their advantage...

that said, here's my code for this one:

10^<0^28*?0<:1+5?0^<0>1+1c0<p

I'm guessing i can shorten it quite a bit by moving the position of the first test

Posted: Fri Dec 16, 2011 11:18 pm
by lvhao945
10^<0<1^:1+2/>1+0^45*-2?1c0<p

Posted: Wed May 04, 2016 11:19 pm
by Midnightman82
45*1-0^<0^0<:1+3?0>0d0^2?3c<p

Posted: Fri May 06, 2016 8:17 am
by Hippo
This is really nice challenge series ... except the boring last step (fighting the probability) ... my engine fights for several months already ... and is as far from the solution as after first day (what is further then before start).

Posted: Fri May 06, 2016 10:44 pm
by AMindForeverVoyaging
Hippo wrote:This is really nice challenge series ... except the boring last step (fighting the probability)
That one should never have existed. It doesn't make sense.