Skip to main content
added 182 characters in body
Source Link
Robin Ryder
  • 15.6k
  • 2
  • 24
  • 70

R, 119 117 bytes, score=24 22

Thanks to Dominic van Essen for spotting a bug.

cat('Hello, Wo',intToUtf8(nchar("#$%&*-./012479:;<>?@ABDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwyz{|}~")+53),"\x6Cd!",sep="")

Try it online!

Uses the hex code trick to encode the last l as \x6C. This saves 2 bytes: 1 by avoiding the reuse of the l (none of the other characters are used anywhere else), and 1 by avoiding having to escape the \ (as \\) in the string.

The long string in the middle is 61 characters long. They are all necessary to get the character r (ASCII code 114), which is produced by the intToUtf8(nchar("...")+53) part.

R, 119 117 bytes, score=24 22

Thanks to Dominic van Essen for spotting a bug.

cat('Hello, Wo',intToUtf8(nchar("#$%&*-./012479:;<>?@ABDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwyz{|}~")+53),"\x6Cd!",sep="")

Try it online!

Uses the hex code trick to encode the last l as \x6C. This saves 2 bytes: 1 by avoiding the reuse of the l (none of the other characters are used anywhere else), and 1 by avoiding having to escape the \ (as \\) in the string.

R, 119 117 bytes, score=24 22

Thanks to Dominic van Essen for spotting a bug.

cat('Hello, Wo',intToUtf8(nchar("#$%&*-./012479:;<>?@ABDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwyz{|}~")+53),"\x6Cd!",sep="")

Try it online!

Uses the hex code trick to encode the last l as \x6C. This saves 2 bytes: 1 by avoiding the reuse of the l (none of the other characters are used anywhere else), and 1 by avoiding having to escape the \ (as \\) in the string.

The long string in the middle is 61 characters long. They are all necessary to get the character r (ASCII code 114), which is produced by the intToUtf8(nchar("...")+53) part.

added 311 characters in body
Source Link
Robin Ryder
  • 15.6k
  • 2
  • 24
  • 70

R, 119119 117 bytes, score=24score=24 22

Thanks to Dominic van Essen for spotting a bug.

cat('H''Hello, Wo',intToUtf8(nchar("\\#$%&*"#$%&*-./0124579012479:;<>?@ABCDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwxyz@ABDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwyz{|}~")+36+53),'llo, World"\x6Cd!'",sep="")

Try it online!Try it online!

Uses the hex code trick to encode the last l as \x6C. This saves 2 bytes: 1 by avoiding the reuse of the l (none of the other characters are used anywhere else), and 1 by avoiding having to escape the \ (as \\) in the string.

R, 119 bytes, score=24

Thanks to Dominic van Essen for spotting a bug.

cat('H',intToUtf8(nchar("\\#$%&*-./0124579:;<>?@ABCDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwxyz{|}~")+36),'llo, World!',sep="")

Try it online!

R, 119 117 bytes, score=24 22

Thanks to Dominic van Essen for spotting a bug.

cat('Hello, Wo',intToUtf8(nchar("#$%&*-./012479:;<>?@ABDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwyz{|}~")+53),"\x6Cd!",sep="")

Try it online!

Uses the hex code trick to encode the last l as \x6C. This saves 2 bytes: 1 by avoiding the reuse of the l (none of the other characters are used anywhere else), and 1 by avoiding having to escape the \ (as \\) in the string.

Post Undeleted by Robin Ryder
added 56 characters in body
Source Link
Robin Ryder
  • 15.6k
  • 2
  • 24
  • 70

R, 117119 bytes, score=22score=24

Thanks to Dominic van Essen for spotting a bug.

cat('H',intToUtf8(nchar("\\#$%&*-./012346790124579:;<>?@ABCDEFGHIJKLMNOPQRSVXYZ[]^_`bgjkmquvwxyz@ABCDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwxyz{|}~")+5+36),'ello'llo, World!',sep="")

Try it online!Try it online!

R, 117 bytes, score=22

cat(intToUtf8(nchar("\\#$%&*-./01234679:;<>?@ABCDEFGHIJKLMNOPQRSVXYZ[]^_`bgjkmquvwxyz{|}~")+5),'ello, World!',sep="")

Try it online!

R, 119 bytes, score=24

Thanks to Dominic van Essen for spotting a bug.

cat('H',intToUtf8(nchar("\\#$%&*-./0124579:;<>?@ABCDEFGIJKLMNOPQRSVXYZ[]^_`bgjkmquvwxyz{|}~")+36),'llo, World!',sep="")

Try it online!

Post Deleted by Robin Ryder
Source Link
Robin Ryder
  • 15.6k
  • 2
  • 24
  • 70
Loading