这是LAPACK,一个广泛使用的数值线性代数软件库的标志。

您的任务是打印徽标(颜色和矩阵括号不需要)作为这个确切的字符串。允许尾随换行符。
L A P A C K
L -A P -A C -K
L A P A -C -K
L -A P -A -C K
L A -P -A C K
L -A -P A C -K发布于 2020-07-03 02:40:16
发布于 2020-07-02 23:35:25
n←96⍴¯2↓∊'LAPACK',¨⊂' '⋄n[⎕av⍳'ì↑⍋+.28;EHRU^']←'-'⋄6 16⍴n解释:
'LAPACK',¨⊂' ' concatenate 2 spaces to each letter in LAPACK
96⍴¯2↓∊ convert to a vector, drop last 2 spaces and replicate to form a 96 element vector
⎕av⍳'ì↑⍋+.28;EHRU^' convert characters to ascii code point integers
n[.....]←'-' use integers as index positions to assign - character
6 16⍴n reshape vector as a 6 16 matrixhttps://codegolf.stackexchange.com/questions/206682
复制相似问题