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 40 characters in body
Source Link
ngn
  • 15.6k
  • 2
  • 45
  • 90

APL (Dyalog Classic), 23(削除) 23 (削除ここまで) 22 bytes

-1 byte thanks to @H.PWiz

{∧/1=1↓(⊃∨⊢)1⌈4⌽1=1↓∨∘⊃⍨1⌈4⌽,⍵}⌺3 3

Try it online! Try it online!

doesn't support matrices smaller than 3x3 due to a bug in the interpreter

APL (Dyalog Classic), 23 bytes

{∧/1=1↓(⊃∨⊢)1⌈4⌽,⍵}⌺3 3

Try it online!

doesn't support matrices smaller than 3x3 due to a bug in the interpreter

APL (Dyalog Classic), (削除) 23 (削除ここまで) 22 bytes

-1 byte thanks to @H.PWiz

{∧/1=1↓∨∘⊃⍨1⌈4⌽,⍵}⌺3 3

Try it online!

doesn't support matrices smaller than 3x3 due to a bug in the interpreter

Source Link
ngn
  • 15.6k
  • 2
  • 45
  • 90

APL (Dyalog Classic), 23 bytes

{∧/1=1↓(⊃∨⊢)1⌈4⌽,⍵}⌺3 3

Try it online!

doesn't support matrices smaller than 3x3 due to a bug in the interpreter

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