打印升序ASCII,警察


26

这是警察的话题。强盗的线索在这里

编写仅由可打印ASCII字符(不包括制表符和换行符)组成的程序或函数,该程序或函数至少按升序(从空格到代字号/ 32到126)输出5个可打印ASCII字符。字符可以输出多次,只要它们彼此相邻即可。接受一条尾随的换行符。您必须提供完整的输出,并且对于代码中的每6个字符,您必须在代码中显示的位置提供一个字符。如果您的代码包含5个或更少的字符,那么您只需要显示长度即可。您的代码中每6个字符不得超过1个字符。

因此,如果您的代码alphaprinter从az输出字母,那么您需要显示代码的2个字符(对于其他字符,请使用下划线),例如:

al__________  // or
__p__p______  // or
__________er

规则/规格:

  • 您不能追加没有功能的尾随空格。
  • 您不能使用注释(但强盗可以在破解代码时使用注释)
  • 不允许使用内置的加密原语(包括任何rng,加密,解密和哈希)。
  • 默认输出类似于MATLAB:的语言中ans =,则可以接受,只要明确说明并显示ans =输出即可。还应明确说明这是否属于“递增输出”的一部分。
  • 输出必须是确定性的
  • 不接受使用非自由语言
  • 输出不必是连续字符。这两个abcdeabcdg有效输出。
  • 只要输出包含至少5个字符,就不必区分字符。aaaaa并且aaacc有效。
  • 假定具有REPL环境的答案不被视为有效的程序或功能,因此是不允许的。
  • STDERR不被视为有效输出,但是可以将数据写入STDERR。

如果显示的字符带有下划线,则必须按如下所示进行识别。在这种情况下,第二个和第六个字符显示为下划线,而其他字符未知。

_____________
 |   |

注意:强盗仅需要找到产生相同输出的代码。语言,强盗解决方案的长度以及所显示字符的位置也必须匹配。

您的分数就是代码中的字符数。获胜者将是7天内未破解的最低分数。只有2015年(UTC)发布的作品才有资格获奖。欢迎晚于此发布的提交,但不能获胜。

为了获得胜利,您需要显示完整代码(7天后)。

您的帖子应采用以下格式(nn是字符数):


语言,nn个字符

输出:

abcdefghijklmnopqrstuvwxyz

代码(12个字符):

al__________

如果代码被破解,则在标题中插入[Cracked](链接到cracker)。如果提交是安全的,请在标题中插入“安全”,并在答案中显示完整代码。只有显示完整代码的答案才有资格获胜。


1
这是否意味着如果我的代码是print ( "abcde" ),我可以显示三个空格?
阿德南(Adnan)2015年

@Adnan,从技术上讲是可以的。
Stewie Griffin

当有人提出种子答案时,我们甚至可能都不知道代码的长度。
wizzwizz4 2015年

@ wizzwizz4不允许播种
Adnan

@Adnan我想它不需要任何脑力,只需要蛮力即可。
wizzwizz4 2015年

Answers:


6

六角形,8个字符,安全

_______.

版画

123456

您可以在线尝试Hexagony

`&)!."@.

`仅仅是误导使代码看上去像是需要边长3.除非解释与执行-d确定所述布局前倒引号被简单地从源代码剥离。之后,代码适合侧面长度2:

 & )
! . "
 @ .

这会将内存指针(MP)绕内存网格的一个六边形移动,同时将值复制到下一个边缘,将其递增并打印。

这是内存网格的样子,MP开始显示标记的位置:

在此处输入图片说明

最初,所有边都是零。第一个&是no-op,但会)增加边并!打印1。然后"移回左侧(标记为2的边缘)。在那里,&复制一个值。由于当前边缘为零,因此将复制左邻居(在MP方向上),这就是1我们刚刚打印的结果。)增加它,!打印2。只要我们要访问新的边沿并且将所有数字一直打印到,此过程就会继续6。当我们击中边缘时,我们&将复制右边的邻居(因为边缘值是正值),因此边缘0再次变为,控制流跳至最后一行,@ 终止程序。

在线尝试。


我知道了123456,但是它不会停止运行并且需要被杀死。可以吗
阿德南(Adnan)2015年

@Adnan我认为不是。我的程序终止。
马丁·恩德

13

Perl,46个字符(安全)

输出:

((()))*++,---../00011123445556667779::;;<<==??@@AAACEFGHHHIKKMMNOOOPPQQQRRSSSVWXXYY[[[\]]]^^^```aaeeffggghjjjnpppqqrttuwxxyzz{{{

码:

print _______________________________________;

我设法在一周的时间内删除了原件,但是我认为这是对的:

print chr()x(($i=($i*41+7)%97)&3)for(40..123);


9
做得好。您将其变成一台神秘的字符串打印机。ಠ_ಠ+1
艾迪生·克伦普

2
观看它包括一些自制的随机数生成器:P
quintopia

我强烈怀疑输出是来自评估某件事的错误消息的简短列表中的排序字符。
Sparr

11

Brainfuck,48个字符,由Mitch Schwartz 破解

我为强盗做了这个。绝对不会是获奖作品:)

____[_____[_______]__]___[___________]___[_____]

输出:

ABCDEFGHIJKLMNOPQRSTUVWXYZ

解:

++++[>++++[>++++<-]<-]+++[>++++++++<-]>++[>+.<-]

在这里测试

提示:不要试图查找由在线生成器生成的程序。这是手写的,只能通过逻辑思维解决:)



7

CJam,13个字符

_____________
  ||

版画

7LLMYahnsuv

您可以在线尝试CJam。

{`__Jf^er$}_~

我认为以警察为基础的笼子是聪明而新颖的。发布此刻的那一刻,我意识到__并且er完全没有用,这就是为什么我发布8字节CJam警察以获得更高的竞争力。Pietu很快破解了那个,所以我担心他也会弄清楚这个。我认为不必要的繁琐字符音译可以将其保存下来。

无论如何,代码会使用自己的字符(除外_~),将每个字符与19进行XOR进行混淆,然后对其进行排序。

这个警察使我想到了xorting的“发现” ,尽管我实际上并没有在这里使用它(并且可能几乎不可能用简短的广义quine使用它)。


7

嘈杂的3SP,89个字符(安全)

0 _____________________________ _ _ _ _ _ _ _ _ _ __2_2__________________________________

原始程序:

0 0 0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 0 3 2 2 2 2 0 3 0 1

该程序打印

 !"#$$

(注意前导空格),仅此而已!

说明(* n表示内存中的第n个单元):

0 0 0                                Increment *0 to 3 (via the 0s in *0, *1, and *2)
2 (32 times)                         Increment *3 to 32 (via the 0 in *2 and the 3 in *0)
                                      (Note that *3 mod 256 is the character that prints)
0                                    Increment *32 (via the 3 in *0 and the 32 in *3)
3                                    Increment *1 (via the 32 in *3 and the 1 in *32)
                                      (Note that printing is on when *1 mod 2 is 1,
                                       which means " " prints right here)
2 (4 times)                          Increment *3 to 36 (printing '!"#$')
0                                    Increment *36 (via *3) (printing "$" again)
3                                    Increment *1 to 2 (via *36) (printing turns off)
0                                    Increment *36 to 2 (via *3)
1                                    Increment *0 to 4 (via *2)

最后两个命令足以防止在以后通过程序时再次将1递增,这意味着不再打印任何内容,尽管它将继续将所有内存地址从* 36开始永久设置为值36 。


2
an esolang in which structured programming is impossible and every program has to be written from scratch.0_0加我一个。
Conor O'Brien 2015年

不要被吓到 的确如此This is probably not that language。如果坐下来尝试编写给出该输出的程序,则可能会得到非常相似的结果。
quintopia,2015年

谢谢,但是不用了,^ _ ^规格使我迷失了方向。这就像遍地都是***,除了更糟,
Conor O'Brien

1
期待看到您的程序揭晓。我想不出一种修改答案的方法,这样我在那些地方得到2而不是5。你击败了我!很酷的语言:)
Emigna

噢......总是痛心地看到有人放弃:/
quintopia

6

JavaScript(ES6),60个字符,由user81655破解

不希望赢得比赛,但希望能乐在其中:

e_e_______a__a____e___e________e__o___________o______o______

此函数返回:

    :ERacddeeeeeeffiinnnoorrrrst
^^^^ -> 4 whitespaces

编辑

user81655逐个字符地破解

e=e=>{try{a}catch(e){return[...e.toString()].sort().join``}}


5

Matlab Octave,27个字符,安全

挑战

关于新的语言限制:它也适用于Octave。

____________3_3___4_3______

输出(以八度为单位):(ans =不是输出的一部分,输出的第一个字符是"

ans = """""""""""""""""""""""""""""""""""""""""""########$$$$$$%%%%&&&&'''(()))**++,,-../001223456789:;<=>?@BCDFGHJKMNPRTUWY[]_acehjloq

输出(在Matlab中):(ans = \n\n不是输出的一部分,输出只是最后一行)

ans =

"""""""""""""""""""""""""""""""""""""""""""########$$$$$$%%%%&&&&'''(()))**++,,-../001223456789:;<=>?@BCDFGHJKMNPRTUWY[]_acehjloq

[fix((0:.07/3:3).^4+34),'']

我们基本上是在看转换为ASCII值的函数。 在此处输入图片说明


1
这可能是五次方的底y值吗?
LegionMammal978


@ LegionMammal978我不明白您的意思,但是因为您在问,我认为这很可能是=)
更加虚假的2015年

@MartinBüttner我不知道这个最近的限制,也许应该指出这个问题。
flawr

1
+1代表It also works in Octave.
Conor O'Brien


4

Jolf,27个字符,由Adnan破解

________W___________--_____
                         |

版画

abcdefghijklmnopqrst

口译员

原始代码:

on*2toHEWn)oH+H `pl$--$n}_H
on                          set n
  *2t                        to twenty
     oHE                    set H to the empty string
        Wn)                 while(n){
           oH+H             append to H
                `pl$--$n     get the nth character of the alphabet, decrement n before
                        }   }
                         _H print H reversed

恭喜阿德南!你吓到我了。


在这里,您可以测试提交的内容,以查看必须删除的字符数。

setInterval(function(){r=document.querySelector("textarea").value;document.getElementById("output").innerHTML=r.length/6-r.split("").filter(function(x){return x=="_"}).length|0},20)
*{font-family:Consolas,monospace}textarea{width:100%;resize:none;height:auto;min-height:1.2em;}b{color:red;}
<textarea>Example Program</textarea><div>You must reveal <b id="output">n</b> characters.</div>




4

Fortran,45个字符,安全

完整的输出:

 !"$)0<Ka|

试图在这里破解它

代码(45个字符):

pr_gr_m____________________/___3____________

程序代码:

program t;print*,(char(i**3/8+33),i=1,9);end



@猫不,不破解。输出错误:没有结尾/
亚历山大·沃格特

显然,我是盲人,对不起。

这是一个很大的挑战。(好吧,我不了解Fortran,但这是一门相当容易掌握的语言)
cat

@cat我很高兴您喜欢它;-)
Alexander Vogt

4

PHP,46个字符,安全

资源:

for(_______________________=________________);

输出一个84个字符长的字符串:

!!"#$%&'()*+,-./0123456789::;<=>?@AABCDEEFGHIIJKLLMNNOPPQRRSTTUUVWWXXYYZZ[[\\]]^^__`

暗示

你说什么 我的表亲参与其中?

公开代码

此方法相对简单,因为它最多可以打印64个字符chr(32)。令人困惑的是,迭代器i不是线性增加的。它以自己的余弦值递增,这将导致重复和丢​​失字符。

for(;$i<64;)echo chr(32+$i+=cos(deg2rad($i)));
for(_______________________=________________);



3

05AB1E,13个字符,被quintopia 破解

我是个白痴。我忘了执行电源功能(-_-。)。这是混淆的代码:

__D____<_____

我的原始代码是:

99DF2}r<F*}bR

说明:

99DF2}r<F*}bR

99            # Pushes 99
  D           # Duplicates the top item
   F }        # Creates a for loop: For N in range(0, 99)
    2         # Pushes 2 (this will be done 99 times)
      r       # Reverses the stack
       <      # Decrement on the last item
        F }   # Creates a for loop: For N in range(0, 98)
         *    # Multiplies the last two item of the stack, which now looks like
              # [2, 2, 2, 2, 2, 2, 2, 2, ...]. Basically we're calculating 2^99
           b  # Converts the last item to binary
            R # Reverses the last item of the stack

这将输出:

0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001

是的,那是99个零,后跟一个1。


注意,我现在实现了幂函数。因此,这可以用六个字节完成:

Y99mbR

它的发音像“ Osabie”吗?
cat

3
@cat有些人说“ Osabie”,其他人说“可用”,他们都是正确的哈哈:)
Adnan

3
@Adnan对不起,你忘了我。我说的是“三十七万一千四百八十六”;)
ev3commander

字符串乘以数字不能用作字符串重复。:(
Conor O'Brien 2015年

@CᴏɴᴏʀO'BʀɪᴇɴHehehe :)(这是字符串本身也是数字的情况,例如"4"3*= 12)
Adnan

3

Python 3.4,127个字符

这是我的第一个铜柱。我认为/希望它不太难或不太明显。

混淆的代码:

_______inspect__________________getsource_____________________________________________print__________c*s_______________________

创建此输出(开头有5个空格;总长度为7740个字符):

     """"""""""""(((((((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))**********************...................................................................................................................;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;==============================[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooopppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppprrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

3

Pyth,17个字符,被Pietu1998破解

输出:

""''''''''''''''''''''0000000000111111111122222222223333333333XXXXXXXXXX[[[[[[]]]]]]

码:

___________#____1

我的解决方案:

Sjkm^dT%"'%#X"291

Pietu1998的解决方案:

S`u]G6*T`t"#X0231


我真的很喜欢你的代码。我在破解时曾考虑过十六进制,但是我对Python的字符串格式了解不足以获取相同的代码。(特别是,#备用表格对我来说是新的。)
PurkkaKoodari 2015年

3

Malbolge,254个字符,由Adnan破解

码:

_____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ __

输出:

`AB\cd`

我为每个第6个角色都留了一个空格而有点作弊。那好吧...


Adnan的破解代码:

('&%: ^"!65 4Xzyx w4-Qs rpo'K mlk"' ~Dfdc ba}v< ::8[Z XnVlq }0/mO ,*MbK JH^6# 4`C|0 ?U=Sw uPsaq L4on2 Mjjh, ged)c '<$$p ]!};Y WiVxS eRQ>= ).K]l Ij"Fh gfedc b,=;z L\q%H X3E2C /ng-k N*KJI 8%6#D ~2^Ai >g<<d tUr`6 oJ"!1 /|{CU f)d>b <A_^! \};Yj yUxTS dtsr` ML

原始代码:

bCBA@ ?>=<; :9876 54321 0/.-, +*)(' &%$#" !~}|{ zyxwv utsrq ponml kjihg fedcb a`_^] \[ZYX WVUTS RQPON MLKJI HGFED CBA@? >=<;: 9y165 43210 /.-,+ *)('& }C#"! ~wv<z \xwvu tsrqp onmlk jihgf e^$ba `_^W\ UyYXW VUTSR QPONM FKJIH GFEDC BA@9] =<;:9 27654 3210) M:

我再次使用此代码的文本转Malbage生成器作弊。



3

Mathematica 10.1,98个字符,安全

输出在这里。整个输出有838,316个字符和尾随换行符。

码:

Print[""<>Chara__________________________________________________________________________________]

是的,必须在10.1中运行。(提示)原始程序:

Print[""<>Characters@ToCamelCase@ExampleData@{"Text","DonQuixoteIEnglish"}~SortBy~ToCharacterCode]

起初我很古怪的哪个ASCII标准包含了十万码点,但现在我明白了,

从什么时候开始Mathematica免费?
mbomb007'1

@ mbomb007您将不得不问马丁·布特纳。
LegionMammal978 '16

@ LegionMammal978不需要。您可以使用Wolfram Cloud
user48538 2013年

3

MATL,8个字符,安全

希望能在Octave中运行的稳定版本的编译器早日面世。同时,此GitHub commit可以正常运行,尤其是运行产生指定输出的原始代码。

此提交计数为2015年12月28日世界标准时间15:30发布的时间

输出:

$**0016688??@HHQ

代码(8个字符):

_:______

6:9tX*Sc

它能做什么:

6:9          % numeric vector [6 7 8 9]
t            % duplicate
X*           % Kronecker tensor product
S            % sort in ascending order 
c            % convert to char. Implicit display

4
我不确定这是否合法,因为MATL似乎需要对Matlab进行解释。(meta.codegolf.stackexchange.com/a/7212/8478)–
马丁·恩德

2
@cat我想的问题是,解释器是否在Octave中工作。
马丁·恩德

1
@LuisMendo很好,通常不允许在挑战后更改解释器,但是由于这实际上并不影响语言的工作方式,因此可以设置例外。最终,这是Stewie的电话。但是我认为至少应该延长破解此漏洞的期限。
马丁·恩德

1
是的,应该算作新发布的。您怎么看,@ StewieGriffin?
路易斯·门多

1
@路易斯我同意。可以算作是新发布的。:-)
Stewie Griffin

2

迷宫,5个字节,由Adnan 破解

_____

版画

000000

我的原始代码是:

<!!@ 

注意尾随空格。

我想我应该去找更多的字符并显示其中一个!,因为当添加更多时!,阿德南的解决方案只会线性增长,而我的解则是二次增长。





2

JavaScript,83个字符,由MartinBüttner破解

输出量

Hi~~~

_=____r____=u____=__s__=_________=__________________u_______A__________e______"_~_"

输出在Chrome / Firefox等浏览器的JS控制台中。
原始代码(可能无效):

q=w=e=r=t=y=u=i=o=p=s=d=f=g=h=j=k=l=z=x=c=v=b=n=m="Huh"[0]+"Alarms in here"[7]+"~~~"



2

JavaScript ES6,134个字符

boy,这很有趣。祝好运!

_=_=_____l____.______.________(___}__;___=______ru____"_____+_[________]______!____]__[_________e________.__U_________)__________\_____

输出:

((((((()))))))+...000000000000000000002233=>AAAAAAAAAAABBBBBCCCCCCCCCCCCCCCCCCDDDDDDDEEEEEEEEEEEEEEEEEEEFFFFFFFGHIIIIIIIIIIIIIIIIJJJJLLMMNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOPRRRRRRRSSSSTTTTTTTTTTTTTTTTTTTTTTTUUUUUUUUUVVVVVVXXY[[[[[[[[]]]]]]]]````ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiinnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu{{{{{{}}}}}}



2

Python 3,共58个字符,由Mitch Schwartz破解

码:

______________print(_______(_______________________)_____)

导入字符串;打印(''.join(sorted(string.printable))[5:])

输出:

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~



哦,等等,直到现在,Mitch的评论对我来说都没有出现……这让我非常难过。



2

Python 2,62个字符,由Adnan 破解

______________________________________________________________
         | |   ||                  |  |  ||

有点像一张桌子。

这将输出字符串abcde

Adnan的代码:

print "ab_c_de___".replace("_","")#___________________________

我的代码:

f=lamda _,__,___:"abcde"+'f'*sum(_,__,___)*000;print f(1,2,3);



我可以使用评论,对不对?
阿德南(Adnan)2015年

我不知道。我具体说过,当我发布它时没有任何评论。我不知道我是否可以做到。我对OP进行了评论并询问。我们看看他在说什么。
Rɪᴋᴇʀ

1
您不能使用注释(但强盗可以在破解代码时使用注释)(CC @Adnan)
丹尼斯

Awww。@Rikerw现在很难过。
Rɪᴋᴇʀ
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.