Skip to main content
added 88 characters in body
Source Link
corvus_192
  • 5.9k
  • 16
  • 26

AWK -vRS=-(.), 4837 bytes

RT~/+/{gsub(x++}RT~/[^+]-/,"");x+=length;printf("%c"{printf"%c",x--%256)}

Attempt This Online!Attempt This Online!

Uses a regex as a record seperator to split the input into seperate characters and matches them one-by-one.

AWK -vRS=-, 48 bytes

{gsub(/[^+]/,"");x+=length;printf("%c",x--%256)}

Attempt This Online!

AWK -vRS=(.), 37 bytes

RT~/+/{x++}RT~/-/{printf"%c",x--%256}

Attempt This Online!

Uses a regex as a record seperator to split the input into seperate characters and matches them one-by-one.

deleted 52 characters in body
Source Link
corvus_192
  • 5.9k
  • 16
  • 26

AWK -vRS=-, 3848 bytes

{gsub(/+[^+]/{x+=length$1}RT{printf"%c","");x+=length;printf("%c",x--%256)}

Attempt This Online!

Uses the RT variable in gawk to test for the - used as the record seperator.Attempt This Online!

AWK -vRS=-, 38 bytes

/+/{x+=length$1}RT{printf"%c",x--%256}

Attempt This Online!

Uses the RT variable in gawk to test for the - used as the record seperator.

AWK -vRS=-, 48 bytes

{gsub(/[^+]/,"");x+=length;printf("%c",x--%256)}

Attempt This Online!

doc
Source Link
corvus_192
  • 5.9k
  • 16
  • 26

AWK -vRS=-, 3938 bytes

/+/{x+=length$1}" "RT{printf"%c",x--%256}

Attempt This Online!Attempt This Online!

Uses the RT variable in gawk to test for the - used as the record seperator.

AWK -vRS=-, 39 bytes

/+/{x+=length$1}" "{printf"%c",x--%256}

Attempt This Online!

AWK -vRS=-, 38 bytes

/+/{x+=length$1}RT{printf"%c",x--%256}

Attempt This Online!

Uses the RT variable in gawk to test for the - used as the record seperator.

Source Link
corvus_192
  • 5.9k
  • 16
  • 26
Loading