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 55 characters in body
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47

Retina 0.8.2, (削除) 16 (削除ここまで) 12 bytes

T`-:(|)D`__d

Try it online!

T`

The d replaces each ofEnter transliteration mode

(|)D`d

Replace the mouth characters (|)Dcharacter with athe corresponding digit from 0(0 to 3. The __ removes)

-:`__

Remove each of :- and -: from the string.

Implicitly output the result, which will be a single digit.

Retina 0.8.2, (削除) 16 (削除ここまで) 12 bytes

T`-:(|)D`__d

Try it online!

The d replaces each of the mouth characters (|)D with a digit from 0 to 3. The __ removes : and - from the string.

Implicitly output the result, which will be a single digit.

Retina 0.8.2, (削除) 16 (削除ここまで) 12 bytes

T`-:(|)D`__d

Try it online!

T`

Enter transliteration mode

(|)D`d

Replace the mouth character with the corresponding digit (0 to 3)

-:`__

Remove each of - and : from the string.

Implicitly output the result, which will be a single digit.

added 11 characters in body
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47

Retina 0.8.2, 16(削除) 16 (削除ここまで) 12 bytes

T`-:(|)D`0123
!`\dD`__d

Try it online! Try it online!

T`(|)D`0123

ReplaceThe d replaces each of the mouth characters(|)D with their corresponding valuea digit from 0 to 3. The __ removes : and - from the string.

!`\d

Output all numbers inImplicitly output the resulting string (whichresult, which will just be 0, 1, 2 or 3)a single digit.

Retina 0.8.2, 16 bytes

T`(|)D`0123
!`\d

Try it online!

T`(|)D`0123

Replace each of the mouth characters with their corresponding value.

!`\d

Output all numbers in the resulting string (which will just be 0, 1, 2 or 3)

Retina 0.8.2, (削除) 16 (削除ここまで) 12 bytes

T`-:(|)D`__d

Try it online!

The d replaces each of the mouth characters(|)D with a digit from 0 to 3. The __ removes : and - from the string.

Implicitly output the result, which will be a single digit.

deleted 4 characters in body
Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47

Retina 0.8.2, 16 bytes

T`(|)D`0123
!`\d

Try it online!

T`(|)D`0123

T`(|)D`0123

Replace each of the mouth characters with their corresponding value.

!`\d

!`\d

Output all numbers in the resulting string (which will just be 0, 1, 2 or 3)

Retina 0.8.2, 16 bytes

T`(|)D`0123
!`\d

Try it online!

T`(|)D`0123

Replace each of the mouth characters with their corresponding value.

!`\d

Output all numbers in the resulting string (which will just be 0, 1, 2 or 3)

Retina 0.8.2, 16 bytes

T`(|)D`0123
!`\d

Try it online!

T`(|)D`0123

Replace each of the mouth characters with their corresponding value.

!`\d

Output all numbers in the resulting string (which will just be 0, 1, 2 or 3)

Source Link
math junkie
  • 7.3k
  • 1
  • 23
  • 47
Loading

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