16
还有一个程序,我出去了!
给定一个正整数嵌套级n和字符串s的打印的ASCII字符(到~,输出一个。方案,其中,以相同的语言运行时,输出一个程序,其输出程序输出该串s。 总计 n应该生成程序,所有程序都应以与您的答案相同的语言运行。 注意:您可以输出程序或函数-默认情况下,您可以将任何内容作为提交提交。 您可以s使用转义字符输入,以您的语言编写的程序或函数通常会如何输入字符串。 例 例如,给定n=1和s="recursion",Python 2程序可能输出: print "recursion" 运行此命令将输出: recursion 给定n=2和s =“ PPCG”,Python 2程序可能输出: print "print \"PPCG\" " 运行此输出: print "PPCG" 运行此输出: PPCG 相关(+标题灵感):还有一个LUL,我出门了 也相关(在沙箱中-现在已删除,但仍然可以以足够的信誉查看):源代码递归 测试用例 确保您的代码适用于以下测试用例(每行一个): n s 2 PPCG 4 Robert'); DROP TABLE Students;-- 17 Deep 2 Spaces In Here 3 "Don't forget quotes!" 5 'Backt`cks …
21
code-golf
recursion
code-golf
kolmogorov-complexity
board-game
code-golf
number-theory
polynomials
code-golf
code-golf
array-manipulation
polyglot
alphabet
answer-chaining
code-golf
sequence
math
atomic-code-golf
abstract-algebra
proof-golf
code-golf
internet
code-golf
internet
code-golf
ascii-art
kolmogorov-complexity
code-golf
math
ascii-art
number
integer
code-golf
decision-problem
binary-matrix
code-golf
number
sequence
number-theory
code-golf
math
decision-problem
matrix
abstract-algebra
code-golf
string
keyboard
code-golf
fractal
code-golf
math
sequence
combinatorics
hello-world
vim
code-golf
sequence
code-golf
graphical-output
image-processing
code-golf
decision-problem
matrix
linear-algebra
code-golf
ascii-art
code-golf
math
code-golf
ascii-art
graphical-output
code-golf
string
code-golf
string
substitution
code-golf
string
ascii-art
code-golf
arithmetic
code-golf
number
array-manipulation
decision-problem
code-golf
kolmogorov-complexity
code-generation
fractal
code-golf
ascii-art
kolmogorov-complexity
code-golf
ascii-art
code-golf
string
array-manipulation
code-golf
music
code-golf
array-manipulation
code-golf
internet
stack-exchange-api
math
fastest-algorithm
code-golf
binary
bitwise
code-golf
date
code-golf
string
code-golf
sequence
integer
code-golf
arithmetic
number-theory
code-golf
string
random