Python 3.7, 231 bytes
class C:pass
def g():
async def f():return;yield;await[3for()in()];nonlocal f
if None:
with lambda:3or 7and 8as q:del x
elif False:raise
else:assert 1is not 5
try:...
JavaScript, 43 bytes
s=>"ABCDE"[Math.log2(s.slice(0,3)^255|8)^7]
Try it online!
Taking the first 3 characters of the string is always enough to include the first octet, while including at...
Python, 88 bytes
import abc,code,fcntl,graphlib,json,pickle,cmd,errno,heapq,re,struct,csv,pwd,xml,sys,bz2
Attempt This Online!
Requires a Unix-like operating system for fcntl and pwd, and at l...
JavaScript, 48 bytes
_=>[..."41506372"].map(x=>1e8/9+10**x|0).join`
`
Try it online!
The string "41506372" encodes the position of the queen in each row.
1e8/9 gives 11111111.1111......
JavaScript, 102 bytes
s=>[...x=s.split``].concat(x.reverse()).reduce((l,c,i,a)=>l+`
`+(a[i+1]?c+' '.repeat(i-1)+c:a.join``))
The first part creates the 'mirrored' string in an array. red...
x86-64 machine code, 32 bytes
A4 FF CA 6A 06 58 F6 F2 50 3C 03 59 51 74 08 AC F3 AA FF CA 75 F5 F3 66 AD 66 F3 AB 58 B0 07 C3
Try it online!
Following the standard calling convention for Unix-...
x86 machine code, 3 bytes
31 FF AB
Try it online!
In assembly:
xor edi, edi
stosd
Set EDI to 0 by XORing it with itself, then use the 1-byte stosd instruction to try to write EAX to tha...
Python 3.8, 64 bytes
lambda s,_:((n:=s.count("1"))*"1"+"0"+n*"1010")*(len(s)-n)+n*"1"
Try it online!
Let Tn consist of (2n+1) 0s and 2n 1s alternating. Tn can consume a 1 on either side and ...