Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 5 characters in body
Source Link
G B
  • 23.4k
  • 1
  • 24
  • 55

Ruby -n, 19(削除) 22 (削除ここまで) 16 bytes

p !!p~/[p\\ \[p\\\/\]\[!]\]\[~]/

Try it online! Try it online!

Thanks Value Ink as usual for -3 bytes

Ruby -n, 19 bytes

p !!/[p\\ \/\]\[!]/

Try it online!

Thanks Value Ink as usual for -3 bytes

Ruby -n, (削除) 22 (削除ここまで) 16 bytes

p~/[p\\\/\]\[~]/

Try it online!

Thanks Value Ink as usual for -3 bytes

added 40 characters in body
Source Link
G B
  • 23.4k
  • 1
  • 24
  • 55

Ruby -pn, 22+219 bytes

$_=p !!/[\[\\\$_\![p\\ \/\]]\]\[!]/

Try it online! Try it online!

Thanks Value Ink as usual for -3 bytes

Ruby -p, 22+2 bytes

$_=!!/[\[\\\$_\!\/\]]/

Try it online!

Ruby -n, 19 bytes

p !!/[p\\ \/\]\[!]/

Try it online!

Thanks Value Ink as usual for -3 bytes

Source Link
G B
  • 23.4k
  • 1
  • 24
  • 55

Ruby -p, 22+2 bytes

$_=!!/[\[\\\$_\!\/\]]/

Try it online!

AltStyle によって変換されたページ (->オリジナル) /