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

deleted 233 characters in body
Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) (削除) 63 (削除ここまで) 56(削除) 56 (削除ここまで) 52 bytes

F⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2ΦθNoκ⎇ΣιlilιF⪪"&⌊Oτe¿k⟲iζLbψ#>φuCNoς...X◧9gF→G⌈H≡M*e{-"2Φθ=ι+§κ0§κ3

Try it online! Try it online! Link is to verbose version of code. Explanation: Now a port of @Sok's Pyth answer.

F⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2F⪪"&⌊Oτe¿k⟲iζLbψ#>φuCNoς...X◧9gF→G⌈H≡M*e{-"2

Take the compressed string edyeeebrscckhrpeubivvifa99gohomaamrisiosazemuseypuwhpiorlurrylgebwsrbcorpcryovvlfnlagdccmvcacmsvrearlorsgyppwtpkonbe and loop over each substring of length 2.

ΦθNoκ⎇ΣιlilιΦθ=ι+§κ0§κ3

For each substring print those input strings that contain that substring, unless the substring is 99, in which case look for lil instead.whose first and fourth (lilac iscyclically) characters equal the only colour that does not have a unique two-letter substring; olive includes li; silver includes il and black includes lac. fawn and azure can be detected using just a single letter, but that doesn't help heresubstring.)

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) (削除) 63 (削除ここまで) 56 bytes

F⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2ΦθNoκ⎇Σιlilι

Try it online! Link is to verbose version of code. Explanation:

F⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2

Take the compressed string edyeeebrscckhrpeubivvifa99gohomaamrisiosazemuseypuwhpiorlu and loop over each substring of length 2.

ΦθNoκ⎇Σιlilι

For each substring print those input strings that contain that substring, unless the substring is 99, in which case look for lil instead. (lilac is the only colour that does not have a unique two-letter substring; olive includes li; silver includes il and black includes lac. fawn and azure can be detected using just a single letter, but that doesn't help here.)

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) (削除) 63 (削除ここまで) (削除) 56 (削除ここまで) 52 bytes

F⪪"&⌊Oτe¿k⟲iζLbψ#>φuCNoς...X◧9gF→G⌈H≡M*e{-"2Φθ=ι+§κ0§κ3

Try it online! Link is to verbose version of code. Explanation: Now a port of @Sok's Pyth answer.

F⪪"&⌊Oτe¿k⟲iζLbψ#>φuCNoς...X◧9gF→G⌈H≡M*e{-"2

Take the compressed string rrylgebwsrbcorpcryovvlfnlagdccmvcacmsvrearlorsgyppwtpkonbe and loop over each substring of length 2.

Φθ=ι+§κ0§κ3

For each substring print those input strings whose first and fourth (cyclically) characters equal the substring.

added 260 characters in body
Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) 63(削除) 63 (削除ここまで) 56 bytes

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"xΦθNoκιF⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2ΦθNoκ⎇Σιlilι

Try it online! Try it online! Link is to verbose version of code. Explanation:

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"xF⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2

Take the compressed string edxyexeexbrxscxckxhrxpexubxivxvixfxlilxgoxhoxmaxamxrixsixosxzxemxusxeyxpuxwhxpixorxlu, split it on the letter xedyeeebrscckhrpeubivvifa99gohomaamrisiosazemuseypuwhpiorlu, and loop over each resulting substring of length 2.

ΦθNoκιΦθNoκ⎇Σιlilι

For each substring print those input strings that contain that substring, unless the substring is 99, in which case look for lil instead. (lilac is the only colour that does not have a unique two-letter substring; olive includes li; silver includes il and black includes lac. fawn and azure can be detected using just a single letter, but that doesn't help here.)

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) 63 bytes

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"xΦθNoκι

Try it online! Link is to verbose version of code. Explanation:

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"x

Take the compressed string edxyexeexbrxscxckxhrxpexubxivxvixfxlilxgoxhoxmaxamxrixsixosxzxemxusxeyxpuxwhxpixorxlu, split it on the letter x, and loop over each resulting substring.

ΦθNoκι

For each substring print those input strings that contain that substring.

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) (削除) 63 (削除ここまで) 56 bytes

F⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2ΦθNoκ⎇Σιlilι

Try it online! Link is to verbose version of code. Explanation:

F⪪"E$↥l∧_∧K0RY⸿h⊕ψVG⌕gbW⟧=′′5/2H✳<◨A3?ω↗⊘′′′⭆1"2

Take the compressed string edyeeebrscckhrpeubivvifa99gohomaamrisiosazemuseypuwhpiorlu and loop over each substring of length 2.

ΦθNoκ⎇Σιlilι

For each substring print those input strings that contain that substring, unless the substring is 99, in which case look for lil instead. (lilac is the only colour that does not have a unique two-letter substring; olive includes li; silver includes il and black includes lac. fawn and azure can be detected using just a single letter, but that doesn't help here.)

forgot to update TIO link
Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) 63 bytes

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"xΦθNoκι

Try it online! Try it online! Link is to verbose version of code. Explanation:

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"x

Take the compressed string edxyexeexbrxscxckxhrxpexubxivxvixfxlilxgoxhoxmaxamxrixsixosxzxemxusxeyxpuxwhxpixorxlu, split it on the letter x, and loop over each resulting substring.

ΦθNoκι

For each colour prefixsubstring print those input strings that contain that substring.

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) 63 bytes

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"xΦθNoκι

Try it online! Link is to verbose version of code. Explanation:

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"x

Take the compressed string edxyexeexbrxscxckxhrxpexubxivxvixfxlilxgoxhoxmaxamxrixsixosxzxemxusxeyxpuxwhxpixorxlu, split it on the letter x, and loop over each resulting substring.

ΦθNoκι

For each colour prefix print those input strings that contain that substring.

Charcoal, (削除) 69 (削除ここまで) (削除) 68 (削除ここまで) 63 bytes

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"xΦθNoκι

Try it online! Link is to verbose version of code. Explanation:

F⪪"&⌈∧⊟ξj⎚¤aη0uTXc↗=¶′′#~I |⊞⧴N8›ι%↗¦P9↨)v′′*↷z÷Φ"⎇⦃j|`~ZA"x

Take the compressed string edxyexeexbrxscxckxhrxpexubxivxvixfxlilxgoxhoxmaxamxrixsixosxzxemxusxeyxpuxwhxpixorxlu, split it on the letter x, and loop over each resulting substring.

ΦθNoκι

For each substring print those input strings that contain that substring.

deleted 9 characters in body
Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290
Loading
added 6 characters in body
Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290
Loading
Source Link
Neil
  • 184.4k
  • 12
  • 76
  • 290
Loading

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