C₄+ç
ลองออนไลน์หรือตรวจสอบอินพุตที่เป็นไปได้ทั้งหมดตรวจสอบปัจจัยการผลิตที่เป็นไปได้ทั้งหมด
ดูลิงก์ตรวจสอบอินพุตที่เป็นไปได้ทั้งหมดด้านบนเพื่อดูการแมปที่ใช้สำหรับแต่ละอินพุต
คำอธิบาย:
สิ่งนี้ละเมิดกฎที่ระบุ:
วิธีที่คุณใช้แสดงผลนั้นขึ้นอยู่กับคุณ - สัญลักษณ์ Unicode หรือ ASCII เดียว , ASCII art, grafically, หรืออะไรก็ตามที่คุณคิดได้ อย่างไรก็ตามแต่ละอินพุตจะต้องมีเอาต์พุตที่แตกต่างกัน
C # Convert the (implicit) input from binary to integer
₄+ # Increase it by 1000
ç # Convert it to a unicode character with this value (and output implicitly)
ทางเลือกมากขึ้นในจิตวิญญาณของความท้าทายโดยใช้รูปแบบผลลัพธ์:
-
| |
-
| |
-
Σ•L7וNè}εi" -| | "14∍2ôNèëðº]J24S5∍£»
สามารถเล่นกอล์ฟได้แน่นอน ..
ลองมันออนไลน์หรือตรวจสอบปัจจัยการผลิตที่เป็นไปได้ทั้งหมด
คำอธิบาย:
Σ } # Sort the (implicit) input-digits by:
•L7וNè # The digit at the same index in the compressed integer 1367524
# i.e. "1101101" → ["1","0","1","1","1","0","1"]
ε # Then map each digit to:
i # If it's a 1:
" -| | " # Push string " -| | "
14∍ # Lengthen it to size 14: " -| | -| | -"
2ô # Split it into parts of 2: [" -","| ","| "," -","| ","| "," -"]
Nè # Index into it
ë # Else (it's a 0):
ðº # Push " " (two spaces) instead
] # Close both the if-else and map
# i.e. ["1","0","1","1","1","0","1"]
# → [" -"," ","| "," -","| "," "," -"]
J # Join everything together to a single string
# i.e. [" -"," ","| "," -","| "," "," -"] → " - | -| -"
24S # Push [2,4]
5∍ # Lengthened to size 5: [2,4,2,4,2]
£ # Split the string into parts of that size
# i.e. " - | -| -" → [" -"," | "," -","| "," -"]
» # Join by newlines (and output implicitly)
# i.e. [" -"," | "," -","| "," -"] → " -\n | \n -\n| \n -"
ดู 05AB1E นี้เคล็ดลับของฉัน ( ส่วนวิธีการบีบอัดจำนวนเต็มขนาดใหญ่? )จะเข้าใจว่าทำไมเป็น•L7ו1367524