Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges 8 coexisting queens

Vyxal, 9 bytes ×»∇ḂẆ»f꘍§ Try it Online! Uses spaces for empty and asterisks for queen. Add a › at the end to replace spaces with zeros. ×»∇ḂẆ»f꘍§ »∇ḂẆ»f # 13572064 as a list of digits × ...

posted 2y ago by steffan153‭  ·  edited 2y ago by steffan153‭

Answer
#6: Post edited by user avatar steffan153‭ · 2022-09-30T17:10:30Z (about 2 years ago)
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 9 bytes
  • ```
  • ×»∇ḂẆ»f꘍§
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLDl8K74oiH4biC4bqGwrtm6piNwqciLCIiLCIiXQ==)
  • Uses spaces for empty and asterisks for queen. Add a `›` at the end to replace spaces with zeros.
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 9 bytes
  • ```
  • ×»∇ḂẆ»f꘍§
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLDl8K74oiH4biC4bqGwrtm6piNwqciLCIiLCIiXQ==)
  • Uses spaces for empty and asterisks for queen. Add a `›` at the end to replace spaces with zeros.
  • ```
  • ×»∇ḂẆ»f꘍§
  • »∇ḂẆ»f # 13572064 as a list of digits
  • × ꘍ # For each, prepend that many spaces to an asterisk
  • § # Vertical join: transpose filling with spaces, and join on newlines
  • ```
#5: Post edited by user avatar steffan153‭ · 2022-09-30T17:07:48Z (about 2 years ago)
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 10 bytes
  • ```
  • »∇ḂẆ»f×$꘍§
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu+KIh+G4guG6hsK7ZsOXJOqYjcKnIiwiIiwiIl0=)
  • Uses spaces for empty and asterisks for queen. Add a `›` at the end to replace spaces with zeros.
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 9 bytes
  • ```
  • ×»∇ḂẆ»f꘍§
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLDl8K74oiH4biC4bqGwrtm6piNwqciLCIiLCIiXQ==)
  • Uses spaces for empty and asterisks for queen. Add a `›` at the end to replace spaces with zeros.
#4: Post edited by user avatar steffan153‭ · 2022-09-30T17:07:23Z (about 2 years ago)
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 16 bytes
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu8Ks4ouPwrbhuo7Cu2Z2w57HlHbhuKLDnuG4nuG5heKBiyIsIiIsIiJd)
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • »¬⋏¶Ẏ» # Compressed number 47382516
  • f # Convert to list of digits
  • vÞǔ # For each, untruth: Create a list with a 1 at that (0-based index).
  • vḢ # Remove the first element of each
  • ÞḞ # Pad with zeros at the end of each to make the matrix rectangular
  • ṅ⁋ # Concatenate each and join on newlines
  • ```
  • This should be 14 bytes without a [bug](https://github.com/Vyxal/Vyxal/issues/1450).
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 10 bytes
  • ```
  • »∇ḂẆ»f×$꘍§
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu+KIh+G4guG6hsK7ZsOXJOqYjcKnIiwiIiwiIl0=)
  • Uses spaces for empty and asterisks for queen. Add a `›` at the end to replace spaces with zeros.
#3: Post edited by user avatar steffan153‭ · 2022-09-30T17:00:35Z (about 2 years ago)
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 16 bytes
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu8Ks4ouPwrbhuo7Cu2Z2w57HlHbhuKLDnuG4nuG5heKBiyIsIiIsIiJd)
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • »¬⋏¶Ẏ» # Compressed number 47382516
  • f # Convert to list of digits
  • vÞǔ # For each, untruth: Create a list with a 1 at that (0-based index).
  • vḢ # Remove the first element of each
  • ÞḞ # Pad with zeros at the end of each to make the matrix rectangular
  • ṅ⁋ # Concatenate each and join on newlines
  • ```
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 16 bytes
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu8Ks4ouPwrbhuo7Cu2Z2w57HlHbhuKLDnuG4nuG5heKBiyIsIiIsIiJd)
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • »¬⋏¶Ẏ» # Compressed number 47382516
  • f # Convert to list of digits
  • vÞǔ # For each, untruth: Create a list with a 1 at that (0-based index).
  • vḢ # Remove the first element of each
  • ÞḞ # Pad with zeros at the end of each to make the matrix rectangular
  • ṅ⁋ # Concatenate each and join on newlines
  • ```
  • This should be 14 bytes without a [bug](https://github.com/Vyxal/Vyxal/issues/1450).
#2: Post edited by user avatar steffan153‭ · 2022-09-30T02:41:31Z (about 2 years ago)
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 16 bytes
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu8Ks4ouPwrbhuo7Cu2Z2w57HlHbhuKLDnuG4nuG5heKBiyIsIiIsIiJd)
  • # [Vyxal](https://github.com/Vyxal/Vyxal), 16 bytes
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • ```
  • [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu8Ks4ouPwrbhuo7Cu2Z2w57HlHbhuKLDnuG4nuG5heKBiyIsIiIsIiJd)
  • ```
  • »¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
  • »¬⋏¶Ẏ» # Compressed number 47382516
  • f # Convert to list of digits
  • vÞǔ # For each, untruth: Create a list with a 1 at that (0-based index).
  • vḢ # Remove the first element of each
  • ÞḞ # Pad with zeros at the end of each to make the matrix rectangular
  • ṅ⁋ # Concatenate each and join on newlines
  • ```
#1: Initial revision by user avatar steffan153‭ · 2022-09-30T02:40:00Z (about 2 years ago)
# [Vyxal](https://github.com/Vyxal/Vyxal), 16 bytes
```
»¬⋏¶Ẏ»fvÞǔvḢÞḞṅ⁋
```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLCu8Ks4ouPwrbhuo7Cu2Z2w57HlHbhuKLDnuG4nuG5heKBiyIsIiIsIiJd)