在这个问题中,我要求你根据它的输出来猜测一个anagram quine。然而,看起来我们还没有一个问题来问高尔夫,一个阿格拉姆奎因。因此,你的任务将是做最短的安格拉奎因,你可以。
anagram quine是一个非空程序,它打印其源代码的字谜,而不是原始源代码。
下面是Python 2中的一个anagram quine示例:
print`'`print`*2'*2`你不应该为这个挑战阅读你自己的资料来源。
发布于 2017-06-07 17:35:13
发布于 2017-06-07 21:58:01
>>--<<-[[<+>->+>->+++<<<]>-]<<<<<<[--->>.<<]>>++<<<[->>>.<<<]>>-<<<[--->>>.<<<]>>>--<<<<[++>>>>.<<<<]>>>>+++>--.[---<.>]>+.......++.......<<<>>>>>>>>>-----+++它可能不是最短的版本,但至少它能工作。
有趣的是,输出代码实际上可以被执行(并且它确实终止)。
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--------------------------++++++++++++++++++<....................[[[[[[[]]]]]]]>>--<<-[[<+>->+>->+++<<<]>-] Initializes the tape with the
help of a recurrence relation.
<<<<<<[--->>.<<]>>++<<<[->>>
.<<<]>>-<<<[--->>>.<<<]>>>-- Prints the characters using
<<<<[++>>>>.<<<<]>>>>+++>--. classic loops.
[---<.>]>+.......++.......
<<<>>>>>>>>>-----+++ Junk to complete the anagram.https://codegolf.stackexchange.com/questions/125053
复制相似问题