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.
King Mouse
Here we go
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!
- livinskull
- Posts: 22
- Joined: Fri Jun 26, 2009 12:01 pm
- Location: /dev/null
- Contact:
Go through that array from behind
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
well, it worked
Code: Select all
54*1-0^<0<:1+5?0^<0>1-0^2?5c<p
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
-
- Posts: 16
- Joined: Wed Jul 16, 2008 2:33 am
- Location: here
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 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
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
hack the planet
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany