9 
 
        
      
      蛇化字符串
      
  修饰后的字符串如下所示: T AnE eOf ifi ing h s x l A k e r isI amp Sna dSt 你的任务 取一个字符串s和一个size n,然后输出连串的字符串。输入ThisIsAnExampleOfaSnakifiedString和3将产生上面的示例。 技术指标 s 只会在代码点33和126之间(含端点)包含ASCII字符(不包含空格或换行符)。 s 长度在1到100个字符之间。 n是一个整数,代表每个输出字符串段的大小。组成“蛇”中曲线的每一行字符(上/下或左/右)都是n字符长。有关示例,请参见测试用例。 n 介于3到10之间(含3和10)。 输出字符串始终开始指向下方。 每行上都可以使用尾随空格。 在输出末尾也可以尾随换行符。 不允许前导空格。 code-golf表示以字节为单位的最短代码获胜。 测试用例 a 3 a ---------- Hello,World! 3 H Wor e , l llo d! ---------- ProgrammingPuzzlesAndCodeGolf …
      
        
          
                   35
                
        
        
          
                  
                    code-golf 
                  
                    string 
                  
                    ascii-art 
                  
                    code-golf 
                  
                    code-golf 
                  
                    string 
                  
                    balanced-string 
                  
                    decision-problem 
                  
                    code-golf 
                  
                    string 
                  
                    geometry 
                  
                    grid 
                  
                    code-golf 
                  
                    tips 
                  
                    lisp 
                  
                    code-golf 
                  
                    quine 
                  
                    tips 
                  
                    king-of-the-hill 
                  
                    code-challenge 
                  
                    math 
                  
                    code-golf 
                  
                    string 
                  
                    palindrome 
                  
                    math 
                  
                    fastest-code 
                  
                    code-golf 
                  
                    string 
                  
                    counting 
                  
                    code-golf 
                  
                    code-golf 
                  
                    internet 
                  
                    code-golf 
                  
                    quine 
                  
                    source-layout 
                  
                    hello-world 
                  
                    code-golf 
                  
                    math 
                  
                    number 
                  
                    sequence 
                  
                    arithmetic 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    grid 
                  
                    code-golf 
                  
                    number 
                  
                    grid 
                  
                    code-golf 
                  
                    string 
                  
                    crossword 
                  
                    code-golf 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    grid 
                  
                    counting 
                  
                    code-golf 
                  
                    code-golf 
                  
                    math 
                  
                    sequence 
                  
                    arithmetic 
                  
                    number-theory 
                  
                    code-golf 
                  
                    code-golf 
                  
                    graphical-output 
                  
                    geometry 
                  
                    random 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    grid 
                  
                    counting 
                  
                    code-golf 
                  
                    string 
                  
                    ascii-art 
                  
                    code-challenge 
                  
                    test-battery 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    kolmogorov-complexity 
                  
                    code-golf 
                  
                    interpreter 
                  
                    code-golf 
                  
                    math 
                  
                    sequence 
                  
                    code-golf 
                  
                    math 
                  
                    primes 
                  
                    set-partitions 
                  
                    code-golf