Super Small Quine
Super Small Quine
Hmm, I'm getting penalised for printing a newline after the last line. If my input ends with a newline, the area calculation charges me for a whole additional line. I think that's a bit unfair - the next line should only be counted if it's non-empty. The final newline ought to be considered a terminator for the previous line.
-
- Posts: 144
- Joined: Fri Mar 28, 2008 11:29 pm
- Location: #hacker.org on Freenode
-
- Posts: 144
- Joined: Fri Mar 28, 2008 11:29 pm
- Location: #hacker.org on Freenode
@therethinker:
My solution:
Have you got the same? If not, please post yours too!
My solution:
Code: Select all
0@@@@@@ 01^gx?s!P1+$
I took a completely different approach for this which seems to work by luck
Code: Select all
0@s!@~@~@@@~01^gP1+$
-
- Posts: 144
- Joined: Fri Mar 28, 2008 11:29 pm
- Location: #hacker.org on Freenode
mine:
And, it seems that printing some more \0 will result in 'incorrect', but the return message will not contain those \0 in the tail. So I gets something like:
Code: Select all
0@s!@ @@@ @ 01^gP1+$
Code: Select all
<font color=red>Expected:
'0@s!@@@@@@ x01vgP1+$', got:
'0@s!@@@@@@ x01vgP1+$'</font><br> Your King of the Hill score is 20. <font color=aa0000><b>'0@s!@@@@@@ x01vgp1+$' is incorrect.</b></font><p>
I posted the same as gfoot except I have used ShardFires positions, I was lazy to submit vertical one using x instead of 1^.
Actually vertical solution is a nonsense:(.
I have improved my solution to @s!@0@ @@@ 01^gP1+$? length 19 with a dummy char.
With option to use @0@@ @@ instead and write all except the $ just to shorten it one char...
Actually vertical solution is a nonsense:(.
I have improved my solution to @s!@0@ @@@ 01^gP1+$? length 19 with a dummy char.
With option to use @0@@ @@ instead and write all except the $ just to shorten it one char...