Skip to main content
added 1530 characters in body
Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

CJam (389 bytes + 3533.0509 penalty => 424422.0509)

xxd-encoded:

"V22|$ùq0000000: 2256 3232 7c24 1bf9 7116 2f43 c82b 110e  "V22|$..q./CÈ+kE%³AJüM\"áZ¼V<8äblûkÂC.+..
0000010: 6b93 4525 1cb3 4118 4afc 4d05 5c22 e15a  k.E%..A.J.M.\".Z
0000020: 11bc 563c 38e4 626c 1efb 6b10 c229 0e35  ..V<8.bl..k..)5=ß.5
0000030: 873d 15df 2f71 36ca 404d 54d9 4979 17ba  .=../q6Ê@MTÙIyºI8©So¶_uð\"\k9å0so½4>û6Oÿ5|6ó;<7Í[email protected]..
0000040: 4938 a953 6fb6 5f04 75f0 5c22 5c6b 39e5  I8.So._.u.\"\k9.
0000050: 3073 6fbd 343e fb36 4fff 357c 8c36 10f3  0so.4>.6O.5|.6..
0000060: 3b3c 37cd 3f1c 10a1 3f06 933d 0f1d fa3d  ;<7.?¡...?=ú=gèEIj..=...=
0000070: 67e8 4549 6a9c 2f7f 24be 3f99 4713 e147  g.EIj./.$.?GáGáO.G..G
0000080: ÕWf011c e14f 20d5 577f 668d 2135 30c2 2d47  ...O .W.f.!50Â50.-GEÑ1^¼56G
0000090: 8^Ò8z45d1 315e bc35 8936 0987 385e d238 7a9f  E.1^.5.6..8^.8z.
00000a0:ñ;UôA 3af1 3b55 f441 2cbc 3c4e 8843 7ceb 2e25  :.;U.A,¼<NC|ë.<N.C|..%
00000b0:`ñB7 1d93 3a60 15f1 4237 3fb0 4404 f949 e750  ..:`..B7?°DùIçPB=²&[|ö.D..I.P
00000c0: 423d b21e 265b 7cf6 2958 df2c 4edf 2c27  B=..&[|.)X.,N.,'Ã+ä'
00000d0: c32b e42c 992c d32d 1394 2d2e 3cd9 3119  .+.,.,Ó.-..-.<Ù1²<.1.
00000e0: b22e 74c3 2f41 cb30 9630 6ea4 313c dd32  ..t./AË00n¤1<Ý2¡+4á6Lo¸<2a¯>tâ>UÃA`¯CoCjõDs=ëIà0nq´;*×A.0.0n.1<.2
00000f0:$¯AÓE\"ÈJ J>¥*04a1 2b34 0be1 364c 6fb8 3c32 61af 3e74  ..+4..6Lo.<2a.>t
Ë+0000100: e23e 55c3 4160 af43 6f8e 436a f544 733d  .>U.A`.Co.Cj.Ds=
0000110: eb49 e030 6e71 b43b 2ad7 3a24 af41 d345  .I.0nq.;*.:$.A.E
0000120: 5c22 c84a 7f9d 204a 3ea5 2a1d 0dcb 2b05  \".J.. J>.*...+.
0000130: 2cfd 32ba af31 46da 320f ef30 1ab5 2fe5  ,ý2º¯1FÚ2ï0µ.2..1F.2..0../å.
0000140: 2ff7 314a c632 20ba 3278 b6b4 34d1 b5a7  /÷1JÆ2.1J.2 º2x¶´4ѵ§°¶¾½¼".2x..4...
0000150: b0b6 bebd bc22 7b69 3235 362b 3262 283b  ....."{i256+2b(;
0000160: 287d 2531 6125 7b32 253a 2b5f 323e 315c  (}%1a%{2%:+_2>1\+2b2@_+_2>1\
0000170: 2b32 6232 405f 2c33 2d5c 323c 3262 2d23  +2b2@_,3-\2<2b-#d#
0000180: 642f 4e7d 2f                             d/N}/

Online demo Basically this is

"MAGIC STRING"{i256+2b(;(}%1a%{2%:+_2>1\+2b2@_,3-\2<2b-#d/N}/

There seems to be some corruption going on when I copy the magic string from the output of the generator program (below) to the code section of a new TIO window: the penalty risesmake an online demo, so that scores about 2 penalty points as a resultmore. I'll have to figure out how to build the URL directly...

CJam (389 bytes + 35.05 penalty => 424.05)

"V22|$ùq/CÈ+kE%³AJüM\"áZ¼V<8äblûkÂ)5=ß/q6Ê@MTÙIyºI8©So¶_uð\"\k9å0so½4>û6Oÿ5|6ó;<7Í?¡?=ú=gèEIj/?GáGáO ÕWf!50Â-GEÑ1^¼56 8^Ò8z:ñ;UôA,¼<NC|ë.%:`ñB7?°DùIçPB=²&[|ö),,'Ã+ä,,Ó--.<Ù1²./AË00n¤1<Ý2¡+4á6Lo¸<2a¯>tâ>UÃA`¯CoCjõDs=ëIà0nq´;*×:$¯AÓE\"ÈJ J>¥*
Ë+,ý2º¯1FÚ2ï0µ/å/÷1JÆ2 º2x¶´4ѵ§°¶¾½¼"{i256+2b(;(}%1a%{2%:+_2>1\+2b2@_,3-\2<2b-#d/N}/

Online demo

There seems to be some corruption going on when I copy the magic string from the output of the generator program (below) to the code section of a new TIO window: the penalty rises 2 points as a result.

CJam (389 bytes + 33.09 penalty => 422.09)

xxd-encoded:

0000000: 2256 3232 7c24 1bf9 7116 2f43 c82b 110e  "V22|$..q./C.+..
0000010: 6b93 4525 1cb3 4118 4afc 4d05 5c22 e15a  k.E%..A.J.M.\".Z
0000020: 11bc 563c 38e4 626c 1efb 6b10 c229 0e35  ..V<8.bl..k..).5
0000030: 873d 15df 2f71 36ca 404d 54d9 4979 17ba  .=../[email protected]..
0000040: 4938 a953 6fb6 5f04 75f0 5c22 5c6b 39e5  I8.So._.u.\"\k9.
0000050: 3073 6fbd 343e fb36 4fff 357c 8c36 10f3  0so.4>.6O.5|.6..
0000060: 3b3c 37cd 3f1c 10a1 3f06 933d 0f1d fa3d  ;<7.?...?..=...=
0000070: 67e8 4549 6a9c 2f7f 24be 3f99 4713 e147  g.EIj./.$.?.G..G
0000080: 011c e14f 20d5 577f 668d 2135 30c2 2d47  ...O .W.f.!50.-G
0000090: 45d1 315e bc35 8936 0987 385e d238 7a9f  E.1^.5.6..8^.8z.
00000a0: 3af1 3b55 f441 2cbc 3c4e 8843 7ceb 2e25  :.;U.A,.<N.C|..%
00000b0: 1d93 3a60 15f1 4237 3fb0 4404 f949 e750  ..:`..B7?.D..I.P
00000c0: 423d b21e 265b 7cf6 2958 df2c 4edf 2c27  B=..&[|.)X.,N.,'
00000d0: c32b e42c 992c d32d 1394 2d2e 3cd9 3119  .+.,.,.-..-.<.1.
00000e0: b22e 74c3 2f41 cb30 9630 6ea4 313c dd32  ..t./A.0.0n.1<.2
00000f0: 04a1 2b34 0be1 364c 6fb8 3c32 61af 3e74  ..+4..6Lo.<2a.>t
0000100: e23e 55c3 4160 af43 6f8e 436a f544 733d  .>U.A`.Co.Cj.Ds=
0000110: eb49 e030 6e71 b43b 2ad7 3a24 af41 d345  .I.0nq.;*.:$.A.E
0000120: 5c22 c84a 7f9d 204a 3ea5 2a1d 0dcb 2b05  \".J.. J>.*...+.
0000130: 2cfd 32ba af31 46da 320f ef30 1ab5 2fe5  ,.2..1F.2..0../.
0000140: 2ff7 314a c632 20ba 3278 b6b4 34d1 b5a7  /.1J.2 .2x..4...
0000150: b0b6 bebd bc22 7b69 3235 362b 3262 283b  ....."{i256+2b(;
0000160: 287d 2531 6125 7b32 253a 2b5f 323e 315c  (}%1a%{2%:+_2>1\
0000170: 2b32 6232 405f 2c33 2d5c 323c 3262 2d23  +2b2@_,3-\2<2b-#
0000180: 642f 4e7d 2f                             d/N}/

Basically this is

"MAGIC STRING"{i256+2b(;(}%1a%{2%:+_2>1\+2b2@_,3-\2<2b-#d/N}/

There seems to be some corruption going on when I copy the magic string to make an online demo, so that scores about 2 penalty points more. I'll have to figure out how to build the URL directly...

deleted 57 characters in body
Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

CJam (390389 bytes + 35.05 penalty => 425424.05)

"V22|$ùq/CÈ+kE%³AJüM\"áZ¼V<8äblûkÂCÈ+kE%³AJüM\"áZ¼V<8äblûkÂ)5=ß5=ß/q6Ê@MTÙIyºI8©So¶_uð\"\k9å0so½4>û6Oÿ5|6ó;<7Íq6Ê@MTÙIyºI8©So¶_uð\"\k9å0so½4>û6Oÿ5|6ó;<7Í?¡?=ú=gèEIj=ú=gèEIj/$¾?GáGáOGáGáO ÕWf!50Â-GEÑ1^¼56    8^Ò8z:ñ;UôA,¼<NC|ë.%:`ñB7?°DùIçPB=²&[|ö)Xß,Nß,'Ã+ä,,Ó--.<Ù1².tÃ/AË00n¤1<Ý2¡+4á6Lo¸<2a¯>tâ>UÃA`¯CoCjõDs=ëIà0nq´;*×AË00n¤1<Ý2¡+4á6Lo¸<2a¯>tâ>UÃA`¯CoCjõDs=ëIà0nq´;*×:$¯AÓE\"ÈJ J>¥*
Ë+,ý2º¯1FÚ2ï0µý2º¯1FÚ2ï0µ/å/÷1JÆ2 º2x¶´4ѵ§°¶¾½¼"{i256+2b(;(}%[1]%%1a%{2%:+_2>1\+2b2@_,3-\2<2b-#d/N}/

Online demoOnline demo

This uses a custom variable-width floating point format to store the numbers. Two bits suffice for the exponent; the mantissa gets anywhere from 5 bits to 47 bits, in multiples of 7. The remaining bit per byte serves as the separator.

There seems to be some corruption going on when I copy the magic string from the output of the generator program (below) to the code section of a new TIO window: the penalty rises 2 points as a result.


Generation program:

e# Score calculation
{1$`'.+'.%1=,10\#_@*@@*-z 4*1- 0e> ml10ml/0e>}:E;

q~]

e# Custom float format
e# Exponent goes from 2^1 to 2^4, so 2 bits
e# Each byte has 1 bit for continuation, so 7 bits available
e# That means the options for the mantissa are 5 bits, 12 bits, 19 bits, 26 bits, 33 bits, 40 bits, 47 bits
{
  :X
  0\{2/\)\_2<!}g
  e# Stack: exponent mantissa
  2 47#*i2b(;
  e# Stack: exponent mantissa-bits
  W%7/W%Wf%:M
  7,{
    )M<e_
    1_$+2b2@,#d/
  }%
  2 3$#f*
  X\f{E}
  _,,.+
  _:e<
  #)<

  \(4+2b(;\+e_7/
  _,,:!W%\.+2fb:c
}%
""*`

Online demo

CJam (390 bytes + 35.05 penalty => 425.05)

"V22|$ùq/CÈ+kE%³AJüM\"áZ¼V<8äblûkÂ)5=ß/q6Ê@MTÙIyºI8©So¶_uð\"\k9å0so½4>û6Oÿ5|6ó;<7Í??=ú=gèEIj/$¾?GáGáO ÕWf!50Â-GEÑ1^¼56    8^Ò8z:ñ;UôA,¼<NC|ë.%:`ñB7?°DùIçPB=²&[|ö)Xß,Nß,'Ã+ä,,Ó--.<Ù1².tÃ/AË00n¤1<Ý2¡+4á6Lo¸<2a¯>tâ>UÃA`¯CoCjõDs=ëIà0nq´;*×:$¯AÓE\"ÈJ J>¥*
Ë+,ý2º¯1FÚ2ï0µ/å/÷1JÆ2 º2x¶´4ѵ§°¶¾½¼"{i256+2b(;(}%[1]%{2%:+_2>1\+2b2@_,3-\2<2b-#d/N}/

Online demo

This uses a custom variable-width floating point format to store the numbers. Two bits suffice for the exponent; the mantissa gets anywhere from 5 bits to 47 bits, in multiples of 7. The remaining bit per byte serves as the separator.

There seems to be some corruption going on when I copy the magic string from the output of the generator program (below) to the code section of a new TIO window: the penalty rises 2 points as a result.


Generation program:

e# Score calculation
{1$`'.+'.%1=,10\#_@*@@*-z 4*1- 0e> ml10ml/0e>}:E;

q~]

e# Custom float format
e# Exponent goes from 2^1 to 2^4, so 2 bits
e# Each byte has 1 bit for continuation, so 7 bits available
e# That means the options for the mantissa are 5 bits, 12 bits, 19 bits, 26 bits, 33 bits, 40 bits, 47 bits
{
  :X
  0\{2/\)\_2<!}g
  e# Stack: exponent mantissa
  2 47#*i2b(;
  e# Stack: exponent mantissa-bits
  W%7/W%Wf%:M
  7,{
    )M<e_
    1_$+2b2@,#d/
  }%
  2 3$#f*
  X\f{E}
  _,,.+
  _:e<
  #)<

  \(4+2b(;\+e_7/
  _,,:!W%\.+2fb:c
}%
""*`

Online demo

CJam (389 bytes + 35.05 penalty => 424.05)

"V22|$ùq/CÈ+kE%³AJüM\"áZ¼V<8äblûkÂ)5=ß/q6Ê@MTÙIyºI8©So¶_uð\"\k9å0so½4>û6Oÿ5|6ó;<7Í?¡?=ú=gèEIj/$¾?GáGáO ÕWf!50Â-GEÑ1^¼56 8^Ò8z:ñ;UôA,¼<NC|ë.%:`ñB7?°DùIçPB=²&[|ö)Xß,Nß,'Ã+ä,,Ó--.<Ù1².tÃ/AË00n¤1<Ý2¡+4á6Lo¸<2a¯>tâ>UÃA`¯CoCjõDs=ëIà0nq´;*×:$¯AÓE\"ÈJ J>¥*
Ë+,ý2º¯1FÚ2ï0µ/å/÷1JÆ2 º2x¶´4ѵ§°¶¾½¼"{i256+2b(;(}%1a%{2%:+_2>1\+2b2@_,3-\2<2b-#d/N}/

Online demo

This uses a custom variable-width floating point format to store the numbers. Two bits suffice for the exponent; the mantissa gets anywhere from 5 bits to 47 bits, in multiples of 7. The remaining bit per byte serves as the separator.

There seems to be some corruption going on when I copy the magic string from the output of the generator program (below) to the code section of a new TIO window: the penalty rises 2 points as a result.


Generation program:

e# Score calculation
{1$`'.+'.%1=,10\#_@*@@*-z 4*1- 0e> ml10ml/0e>}:E;

q~]

e# Custom float format
e# Exponent goes from 2^1 to 2^4, so 2 bits
e# Each byte has 1 bit for continuation, so 7 bits available
e# That means the options for the mantissa are 5 bits, 12 bits, 19 bits, 26 bits, 33 bits, 40 bits, 47 bits
{
  :X
  0\{2/\)\_2<!}g
  e# Stack: exponent mantissa
  2 47#*i2b(;
  e# Stack: exponent mantissa-bits
  W%7/W%Wf%:M
  7,{
    )M<e_
    1_$+2b2@,#d/
  }%
  2 3$#f*
  X\f{E}
  _,,.+
  _:e<
  #)<

  \(4+2b(;\+e_7/
  _,,:!W%\.+2fb:c
}%
""*`

Online demo

Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

CJam (390 bytes + 35.05 penalty => 425.05)

"V22|$ùq/CÈ+kE%³AJüM\"áZ¼V<8äblûkÂ)5=ß/q6Ê@MTÙIyºI8©So¶_uð\"\k9å0so½4>û6Oÿ5|6ó;<7Í?¡?=ú=gèEIj/$¾?GáGáO ÕWf!50Â-GEÑ1^¼56    8^Ò8z:ñ;UôA,¼<NC|ë.%:`ñB7?°DùIçPB=²&[|ö)Xß,Nß,'Ã+ä,,Ó--.<Ù1².tÃ/AË00n¤1<Ý2¡+4á6Lo¸<2a¯>tâ>UÃA`¯CoCjõDs=ëIà0nq´;*×:$¯AÓE\"ÈJ J>¥*
Ë+,ý2º¯1FÚ2ï0µ/å/÷1JÆ2 º2x¶´4ѵ§°¶¾½¼"{i256+2b(;(}%[1]%{2%:+_2>1\+2b2@_,3-\2<2b-#d/N}/

Online demo

This uses a custom variable-width floating point format to store the numbers. Two bits suffice for the exponent; the mantissa gets anywhere from 5 bits to 47 bits, in multiples of 7. The remaining bit per byte serves as the separator.

There seems to be some corruption going on when I copy the magic string from the output of the generator program (below) to the code section of a new TIO window: the penalty rises 2 points as a result.


Generation program:

e# Score calculation
{1$`'.+'.%1=,10\#_@*@@*-z 4*1- 0e> ml10ml/0e>}:E;

q~]

e# Custom float format
e# Exponent goes from 2^1 to 2^4, so 2 bits
e# Each byte has 1 bit for continuation, so 7 bits available
e# That means the options for the mantissa are 5 bits, 12 bits, 19 bits, 26 bits, 33 bits, 40 bits, 47 bits
{
  :X
  0\{2/\)\_2<!}g
  e# Stack: exponent mantissa
  2 47#*i2b(;
  e# Stack: exponent mantissa-bits
  W%7/W%Wf%:M
  7,{
    )M<e_
    1_$+2b2@,#d/
  }%
  2 3$#f*
  X\f{E}
  _,,.+
  _:e<
  #)<

  \(4+2b(;\+e_7/
  _,,:!W%\.+2fb:c
}%
""*`

Online demo