ค้นหารหัสแหล่ง Interwoven (Cops)


18

นี่คือด้ายของตำรวจ สำหรับด้ายโจรไปที่นี่

บทนำ

สำหรับความท้าทายของ Cops / Robbers ตำรวจจะเขียนโปรแกรมที่สร้างผลผลิตและรวมเข้าด้วยกัน มันเป็นหน้าที่ของโจรที่จะแยกโปรแกรมของตำรวจออกมาเพื่อสร้างผลลัพธ์ที่ต้องการ

กฎตำรวจ

ตำรวจอาจใช้ผลรวมสูงสุด 256 ไบต์ในการเขียนระหว่างโปรแกรม 2 ถึง 8 (รวม) ซึ่งทั้งหมดต้องสร้างเอาต์พุตบางตัว โปรแกรมทั้งหมดที่เขียนต้องเป็นภาษาเดียวกัน ตำรวจจะ "ประสาน" โปรแกรมของพวกเขาร่วมกันเพื่อให้ยากขึ้นสำหรับโจรที่จะคิดออกว่าโปรแกรมคืออะไร

ตอนนี้สำหรับคำอธิบายของการผสมผสาน พิจารณาสตริงที่แทนโปรแกรมต่าง ๆ กระบวนการของการรวมเข้าด้วยกันเป็นการดึงออกจากตัวอักษรตัวแรกของโปรแกรมใด ๆ และต่อเข้ากับส่วนท้ายของสตริงใหม่จนกว่าจะไม่มีตัวอักษรในโปรแกรมใด ๆ เหลืออยู่ ตัวอย่างเช่นหากมีสองโปรแกรมlionและTIGERมีการผสมผสานTIliGoEnRระหว่างกัน อย่างไรก็ตามโปรแกรมไม่สามารถถูกรบกวนในทางใดทางหนึ่งดังนั้นจึงRoITEnlGiไม่เป็นที่ยอมรับ

มันควรจะสังเกตว่าเมื่อตัวละครของทุกคนยกเว้นหนึ่งโปรแกรมจะถูกลบออกจากผลของการผสมผสาน, โปรแกรมที่เหลือจะแสดงเหมือนเดิม การถอดตัวอักษรTIGERจากผลลัพธ์ในTIliGoEnRlion

ทั้งหมดของโปรแกรมตำรวจและผลจะต้องมีเพียงตัวอักษรพิมพ์ ASCII (20-7E) และการขึ้นบรรทัดใหม่ โปรแกรมต้องไม่มีข้อผิดพลาดและต้องทำงานใน 10 วินาทีบนเครื่องที่เหมาะสม สำหรับการส่งใด ๆ จะต้องมีล่ามภาษาฟรีที่ใดที่หนึ่ง ไม่อนุญาตให้เพิ่มความคิดเห็นในการส่งเช่นเดียวกับการแฮชและการเข้ารหัสในรูปแบบอื่น ๆ ไม่อนุญาตให้ใช้โปรแกรมเปล่า (ขออภัยติดอยู่ )

ตำรวจจะโพสต์รหัส interweaved ภาษาจำนวนโปรแกรมที่ใช้และผลลัพธ์สำหรับแต่ละโปรแกรม ขอบคุณมาร์ตินอย่างมากสำหรับการเขียนสคริปต์ CJam นี้เพื่อรวมโปรแกรมของคุณเข้าด้วยกันโดยอัตโนมัติ

โปรแกรมจะถือว่าปลอดภัยหลังจากผ่านไปหนึ่งสัปดาห์นับจากเวลาที่โพสต์ ณ จุดนั้นตำรวจจะต้องโพสต์แต่ละโปรแกรมเพื่อรับคะแนน

เกณฑ์การให้คะแนน

มีสององค์ประกอบที่ถูกรวมเข้าด้วยกันเมื่อให้คะแนนการส่งที่ปลอดภัย

  • 256 หารด้วยปริมาณ 2 ยกกำลังของจำนวนโปรแกรมที่ใช้
  • ปัดเศษจำนวนไบต์ในการรวมกันเป็นกำลังที่ใกล้เคียงที่สุดของ 2 และหารเป็น 256

ตัวอย่างเช่นหากรายการTIliGoEnR(9 ไบต์) ปลอดภัยรายการนั้นจะได้รับ 256/2 ^ 2 + 256/16 = 80 คะแนน

เมื่อการส่งของตำรวจถูกแคร็กตำรวจสูญเสีย 16 คะแนน ตำรวจต้องระบุว่าการส่งของพวกเขาได้รับการแตกร้าว

ผู้ชนะของการท้าทายของตำรวจจะเป็นคนที่มีคะแนนมากที่สุดหลังจากช่วงเวลาที่เพียงพอสำหรับคนที่จะเข้าร่วม

ลีดเดอร์บอร์ด

นี่เป็นงานที่อยู่ระหว่างดำเนินการซึ่งดัดแปลงโดยintrepidcoderจากคำถามนี้

เพื่อให้แน่ใจว่าคำตอบของคุณปรากฏขึ้นโปรดเริ่มคำตอบด้วยหัวข้อโดยใช้เทมเพลต Markdown ที่ถูกต้อง :

# Language Name, N programs, M bytes; Score ###/### (if safe/cracked)

ทุกสิ่งหลังจากเซมิโคลอนจะถูกละเว้นดังนั้นคุณสามารถใส่คะแนนของคุณได้

หากการส่งของคุณปลอดภัยให้ใส่หัวข้อดังนี้:

# Language Name, safe, N programs, M bytes; Score ###

ถ้ามันแตกให้ใส่หัวข้อดังนี้:

# Language Name, [cracked](link-to-crack), N programs, M bytes; Score -16


8
ฉันจะต้องประทับใจมากถ้ามีคนจัดการถอดรหัสหนึ่งใน 8 รายการ
— ETHproductions

1
"เฉพาะอักขระ ASCII ที่พิมพ์ได้" ... มีแผนของฉันที่จะใช้การแทนที่จากซ้ายไปขวาเพื่อสร้างความสับสนให้กับทุกคน
— TheNumberOne

7
ฉันเข้าใจว่าคุณกำลังพยายามทำอะไรกับระบบการให้คะแนนที่ตรงข้ามกับตำรวจและโจร แต่มันสร้างแรงจูงใจแปลก ๆ หมายความว่าโจรจะพยายามเจาะคำตอบเหล่านั้นซึ่งตำรวจไม่ได้รับคะแนนจำนวนมากในขณะที่พวกเขามีแรงจูงใจน้อยกว่าในการจัดการกับปัญหาที่ตำรวจให้คะแนนในจำนวนที่เหมาะสม
— Martin Ender

4
หากมันมีประโยชน์สำหรับทุกคนที่นี่คือสคริปต์ CJamซึ่งจะสุ่มแทรกโปรแกรมจำนวนเท่าใดก็ได้ เพียงแค่ให้โปรแกรมใน STDIN หนึ่งรายการในแต่ละบรรทัด หากที่ไม่ปฏิบัติ (เพราะโปรแกรมของคุณตัวเองมี linefeeds) คุณสามารถเลือกตัวคั่นอื่น ๆ ( |||พูด) แล้วแทนที่ในรหัสที่มีสตริงที่มีตัวคั่นของคุณเช่นN "|||"(@Eridan รู้สึกอิสระที่จะรวมสิ่งนี้ไว้ในการท้าทาย)
— Martin Ender

4
จริงๆแล้วถ้าสิ่งนั้นสร้างมันขึ้นมาฉันคงหัวเราะได้มาก
— ผู้ใช้ทั่วไป

คำตอบ:


20

Hexagony , 6 โปรแกรม, 53 ไบต์; คะแนน 8/96 (ถ้าปลอดภัย / แตก)

  [&;//&z
 ;!X;!!/@!
@)6!< @[!.J
 @a5|9o;""
  |@!!!@]

แม้ว่ามันจะปลอดภัย แต่มันก็เป็นคะแนนที่น้อยมากสำหรับฉัน แต่ฉันคิดว่าฉันจะให้ไขปริศนาที่ดีสำหรับพวกโจรไปยังธนาคาร :) ฉันไม่รู้ว่าวิธีนี้ง่ายหรือยากจริง ๆ

นี่คือผลลัพธ์:

Jazz
XX88XX88
1234562345610
111111111111111111111111
9999999999999999999999999999999999
66566565665656566565656566565656565665

8
อึศักดิ์สิทธิ์บนแครกเกอร์ ฉันขอให้โชคดีและมีสติกับผู้ที่แก้ไขปัญหานี้ +1
— Addison Crump

โปรแกรม interleaved ใช้ได้เช่นกันหรือไม่?
— mbomb007

@ mbomb007 นี่คือสิ่งที่มันจะมีลักษณะและจะสิ้นสุดลงทันทีเนื่องจาก[สวิตช์ควบคุมไปยังตัวชี้คำสั่งที่เริ่มต้น@ที่มุมซ้าย
— Martin Ender

3
โปรแกรมHexด้วยความเจ็บปวดHex !
— Kritixi Lithos

1
@ ΚριτικσιΛίθος ความทรมานหรือการถอดรหัสโดยใช้ Hex agony !
— Arcturus

5

JavaScript, ถอดรหัส , 2 โปรแกรม, 110 ไบต์; คะแนน -16

+(![]+!![])[[]+[]]+(![]+[])+[+[]]+(!![]+[])[[+[]]+[]]+(!![]+[])+[+[]]+(+(![]+!![])[])[+[]]+(![]+[])+[+[]](+[])

😈ขอให้โชคดีกับสิ่งนี้

หมายเหตุ: ฉันแนะนำให้เรียกใช้บนเบราว์เซอร์ที่ทันสมัย ​​(โดยทั่วไปไม่ใช่ IE)

ผลลัพธ์โปรแกรมแรก:

ffttff

ผลลัพธ์โปรแกรมที่สอง:

1010

4

BitShift , แคร็ก , 2 โปรแกรม, 110 ไบต์; คะแนน -16

โปรแกรมผสมผสาน

10011110011111001011101110110110110110011001100010110000010010011100101111000111100110111101011110011101001100

เอาต์พุตโปรแกรมแรก

! ?

เอาต์พุตโปรแกรมที่สอง

? !

ฉันขอโทษ


4

Vitsy , แคร็ก , 2 โปรแกรม, 15 ไบต์; คะแนน -16

โปรแกรมผสมผสาน

a'5oF'2 \\ AI / NZO

Vitsyสวยมากสะอาด มองเข้าไปในแหล่งที่มาของมันและต้องตกใจ

เอาต์พุตโปรแกรมแรก

NaNo

เอาต์พุตโปรแกรมที่สอง








































































































นั่นคือ 121 บรรทัดใหม่


ด้วยความเป็นไปได้ 32766 นี่เกือบจะดุร้ายกำลัง: P
— Arcturus

@Eridan ฉันจะโกรธมากถ้ามีคนเอาแต่สิ่งนี้ อย่างจริงจังไม่ Brute Force ความงามนี้ที่เป็นVitsy คุณต้องจับมันต้องดูแลมันให้ดี ...
— Addison Crump

@Eridan นอกจากนี้ยังใช้เวลา 32766 วินาทีเพราะ Vitsy ค่อนข้างช้า c:
— Addison Crump

9
มันเป็นบิตที่ดี Vitsy!
— Arcturus

3
นั่นก็สั้นกว่าการบังคับใช้สัตว์เดรัจฉานอย่างน้อย 9 ชั่วโมง
— Arcturus

4

Java, แคร็ก , 2 โปรแกรม, 155 ไบต์; คะแนน -16

โปรแกรม Interleaved

cliantsesr fai{pce ubc{stlaic sttatiic voidc  mavioin(Sd tmariinn(Stg[rin]g)g{Syst[em]n.)o{ut.prSiysntemtln.out.(prin"Hell"\u002bg.tlen(gth)"By;e!\n}")};}}

เอาต์พุตโปรแกรมแรก

Hell0

และขึ้นบรรทัดใหม่

เอาต์พุตโปรแกรมที่สอง

Bye!

และขึ้นบรรทัดใหม่

โปรแกรมต้นฉบับ

เป็นครั้งแรก

class i{public static void main(String[]g){System.out.println("Hell"\u002bg.length);}}

ที่สอง

interface c{static void main(String[]n){System.out.print("Bye!\n");}}

ฉันลืมว่าคุณสามารถใส่interfaceแทนclassจนกว่าฉันจะเห็นคำตอบของคุณใน Hello, World! ท้าทาย. ฉันจะพยายามทำสิ่งนี้ระหว่างมื้อเที่ยงของฉัน
— Arcturus

เอ่อเวลาอาหารกลางวันของฉันหมดแล้ว ฉันจะลองอีกครั้งในคืนนี้
— Arcturus

4

Pyth, ปลอดภัย, 2 โปรแกรม, 63 ไบต์; คะแนน 68

โปรแกรมผสมผสาน

V8j5kIqlPN1[C7=3+Z1d=G"<"C38p5)IqdZ21=ZNB;C-jk[C9Zd\</.5n0T1dG2

โปรแกรมแรก

เอาท์พุท:

 I <3 U

โปรแกรม:

jk [C73d"<"3pdC-95T

j                   # Join
 k                  # Standard variable: ""
   [                # Creates a new list
    C73             # Char 73 = I
       d            # Standard variable: " "
        "<"         # String: "<"
           3        # Number 3
            pd      # Prints " ", the leading whitespace
              C     # Char
               -95T # -95T = 95 - 10 = 85. Char 85 = U

โปรแกรมที่สอง

เอาท์พุต

I <3 U2

โปรแกรม:

V85IqlPN1=+Z1=GC85)IqZ21=ZNB;jk[CZd\</.n01dG2

                                              # implicit Z = 0
V85                                           # For N in range(85)
   I                                          # If
    qlPN1                                     # Length of the prime factors of N equals 1
         =+Z1                                 # Z = Z + 1
             =GC85                            # G = Char 85 = U
                  )                           # Ends the if statement
                   IqZ21                      # If Z equals 21(th prime)
                        =ZN                   # Z = N (73)
                           B                  # Break out of the for loop
                            ;                 # Infinite ), to close open parentheses
                             jk               # Join ""
                               [              # New list
                                CZ            # Char Z = Char 73 = I
                                  d           # Standard variable: " "
                                   \<         # Single character '<'
                                     /        # Floored division
                                      .n0     # Pi, 3.14159...
                                         1    # Divide by 1 and round down
                                          d   # Standard variable: " "
                                           G  # G = C85 = U
                                            2 # Number 2

อย่าลืมเขียน# Pyth, safe, 2 programs, 63 bytes; Score 68
— ev3commander

@ ev3commander ขอบคุณที่สังเกต!
— Adnan

4

CJam, ปลอดภัย, 2 โปรแกรม, 250 ไบต์; คะแนน 65

โปรแกรมผสมผสาน

"":9(x5M/Cle-Dn,1'AFjsQYirG3@+,~unY</CyUAJ!`L.Xkdq'hF_X&=-`!SnxM!hqv~'GW!4!qIfp$h,ld-;i0JM79Xs'orb@#+sE${?.Eet""""/4M.D:}~Cc^est+2]c9>^W<O%8rR(kg)(ra-P{^Fthm?WF[#KJfRxOe-5zYueb~SiX@tnFyb2-M}G8@0;Z.$u']Qc0R{\.M9V$_NyTc,HR]y""22{{''  ffmm9955bb\\}}****

เอาต์พุตโปรแกรมแรก

169004397811215505136757551914260640157209814479670875629464038264532260025741074366481672115039451444875174892900756838476896193165147376670615268045482935802126657286722969566601154866449492847343470441618498401

เอาต์พุตโปรแกรมที่สอง

236156588886135909534842810119847991195053526225488685859715966203756668582804035289768525426132740118856398404195457578486865119219669643999456580063310899697265496162944335336660228420754397359091438096239696929

วิธีการแก้

โปรแกรมแรก

"9(M/l-n'FsQrG@~n<CyA`.XdhF&-`SMhq~W!qI$hd-0M7X'b#sE{Ee""/MD~c^s2]>^O%r(gra{FhmW#KfOezYbSi@Fy-}G0;$u]cR.9V_TcRy"2{' fm95b\}**

ลองออนไลน์!

โปรแกรมที่สอง

":x5CeD,1AjYi3+,uY/UJ!Lkq'_X=!nx!v'G4!fp,l;iJ9sor@+$?.t""4.:}Cet+c9W<8Rk)(-P^t?F[JRx-5ue~Xtnb2M8@Z.'Q0{\M$Ny,H]"2{' fm95b\}**

ลองออนไลน์!

มันทำงานอย่างไร

โปรแกรมทั้งสองมีรูปแบบนี้:

 "…""…"2{' fm95b\}**

       2{        }*   Do the following twice:
         'fm            Subtract the char code of ' ' from each character.
            95b         Convert from base 95 to integer.
               \        Swap the two topmost stack elements.
                      This pushes two prime numbers on the stack.
                  *   Compute their product.

การรวมโปรแกรมเข้าด้วยกันควรต้องใช้กำลังดุร้ายหรือแยกตัวประกอบช่วงครึ่งเวลา


ขอแสดงความยินดีกับการส่งที่ปลอดภัยเป็นครั้งแรก!
— Arcturus

ฉันเดาเอาท์พุทเป็น semiprimes การบังคับให้มีเซมิโคลหลัก 213 (ทศนิยม) หลักจะไม่สามารถทำได้ในเครื่องเดียวในหนึ่งสัปดาห์ นี้เป็นหนึ่งใน 212 หลักเอากว่าหนึ่งปี ฉันสงสัยว่าเดรัจฉานบังคับให้ interweaving จะเป็นไปได้เช่นกัน
— intrepidcoder

1
-1 สิ่งนี้ขัดต่อเจตนารมณ์ของข้อ จำกัด "ไม่มีการแปลงแป้นพิมพ์หรือเข้ารหัส"
— Peter Taylor

4

Befunge, Safe, 2 โปรแกรม 228 ไบต์; คะแนน 65

โปรแกรมผสมผสาน

7b*2"!+:,l9ooa"v +2^*<>+:::v,v
  1- v2:,+9 -,\,,<$+":4b*,
v>"i g>:nb:"^,2$+,1'g#
+0^"gs "-*<  :-*,n,
v\,a3+v
-9*b6-3b ,*a<b:u,+|11 B'<
,:+>19v>,:'m+:9,:+3a^:,:a+"c*@9a, >': 'e^
<^;*+<v" gr"< ^
     >@,"+*or:\*:3pa, g"^0>'f^8<;

เอาต์พุตโปรแกรมแรก

Output, first program                   

เอาต์พุตโปรแกรมที่สอง

Befunge programming is cool!

ฉันสงสัยว่านี่จะเป็นเรื่องง่ายที่จะแตก อันที่จริงคุณควรยอมแพ้ในตอนนี้ ใครต้องการ 132 คะแนนอยู่ดี

ตอบ

โปรแกรม 1:

7b*2+:,9a+2*+:::,1-:,\5-,\,,4b*,v>::,2+,'+0g\1-:,\,3+v
-9*bb,,+1,:+1,:+9,:+3,:+c*9a,: '<^;    @,+*:\*:3a,g08<;

เอาต์พุตโปรแกรมแรก

โปรแกรมที่ 2:

"!loo"v ^<>vv
   v2+9 <$+":
>"i gnb"^$1g#
^"s "*<  -*n,
va6-3 *a<b:u|1 B'<
>9v>'m:a^:a"@ >'e^
*+<v"gr"<^
   >"orp "^>'f^

การเขียนโปรแกรม Befunge นั้นยอดเยี่ยม!


ไม่ไม่เปลี่ยนรหัสต้นฉบับนั้นกลับ ทันทีที่คุณโพสต์มันเป็นรหัสที่คุณใช้มิฉะนั้นจะไม่ยุติธรรม
— Addison Crump

@VoteToClose ฉันรู้ว่ารหัสมีข้อผิดพลาดและไม่ถูกต้อง ฉันสามารถเปลี่ยนรหัสหรือข้อความเอาต์พุตซึ่งจะดีกว่าไหม
— MegaTom

3
โอ้ เอ่อ ไม่เป็นไรแล้ว (ใส่บางสิ่งเกี่ยวกับการตรวจสอบรหัสก่อนที่นี่) ตรวจสอบให้แน่ใจว่ามีการเปลี่ยนแปลงอย่างชัดเจน
— Addison Crump

<เหลืออีก 1 ชั่วโมงเพื่อให้คนอื่นลอง ฉันเลิกไปแล้ว ...
— ev3commander

3

PHP, แคร็ก , 2 โปรแกรม, 71 ไบต์; คะแนน -16

บรรณนิทัศน์

$ec=tchR;$ho =qs;$cu=$ho.$tc.e_me.$tha(.'p^l/it]';e.cchoo.$c('[$$h'));;

เอาท์พุต

โปรแกรมที่ 1

Array

โปรแกรมที่สอง

\^/\]co\[\$

หมายเหตุ : Noticesควรถูกระงับ


1
คุณแน่ใจหรือไม่ว่านี่ไม่มีที่ว่างสักอัน?
— โม่

@primo Arghคุณพูดถูก ฉันได้แก้ไขแล้ว ขอโทษ ฉันคิดว่าคุณแตกแล้วใช่ไหม :)
— นี่

2
Cracked
— primo

3

JavaScript ES6, แคร็ก , 2 โปรแกรม, 255 ไบต์; คะแนน -16

เก่งมาก @Bas! GG

trvya{"fru nxcti;on{;ale"r;Otb(j(fe=c>t(.kfe.yrs(efv)e}rcsate(cf+h(e~)~{ff,=Mast=h>!.posw?f((12),:M"a"t;hal.Ee)r))t)((nfe(wf A(rfr(a0y/(909)) +.f(7/f5il)l()0))+.fma(pf()(x,+`i$,{ff)}=>i`/.s3p)l).ijt`o`.imn(ap"("e)=.>repela.cceh(/ar.Co.d/egA,t""())*)2}3))}

เอาท์พุท 1:

36666666666666643333333333333336323666666666666668333333333333333231366666666666666833333333333333323026666666666666682333333333333332292666666666666668233333333333333228266666666666666823333333333333322726666666666666682333333333333332262666666666666668233333333333333225266666666666666823333333333333322426666666666666682333333333333332232666666666666668233333333333333222266666666666666823333333333333322126666666666666682333333333333332201666666666666668133333333333333219166666666666666813333333333333321816666666666666681333333333333332171666666666666668133333333333333216166666666666666613333333333333341516666666666666661333333333333334141666666666666666133333333333333413166666666666666613333333333333341216666666666666661333333333333334111666666666666666133333333333333410666666666666666333333333333334966666666666666633333333333333486666666666666673333333333333337666666666666667333333333333333666666666666666733333333333333356666666666666673333333333333334666666666666666533333333333333353666666666666666533333333333333352666666666666666733333333333333331666666666666666633333333333333330

เอาท์พุท 2:

2645,1403,1426,759,2645,1449,2346,920,1127,943,1334,782,782


@Bas แน่นอน! ทำได้ดีมาก
— Conor O'Brien

3

JavaScript (ES6), ปลอดภัย, 2 โปรแกรม, 255 ไบต์; คะแนน 65

โปรแกรม Interleaved

aalleerrtt((l=[](+(!l[=[l])+="(l "=l+[]l][[+l>=+1l]]=l+=>(l>l=>l=l<l,")"+l+(l(=l>l>=l)=+ (l)l+= +l)l+=>((ll==l)>(l=l)+l++ ()l+>l()+(l=>l(l===l>l=l)(l()l>=l)+))+""(l +(=""l=+)+(l+l(=)l<)+(=l+)+l++(ll=<<l)+++l)(l+=(=l(==ll)=>l+<l()(ll=))))(l<=l)<l)+(+l<l)))

ผลลัพธ์ของโปรแกรมแรก

false12truetruetruefalse

ผลลัพธ์ของโปรแกรมที่สอง

falsefalseundefinedtruetruetruetruefalse116truetruefalse

ฉันพยายามใช้ตัวละคร(l)+=<>ให้มากที่สุด ส่วนที่เหลือเป็นเพียงการแปลงประเภท

โปรแกรมแรก

alert((l=[l=" "][+l>=+1]=l=>l>=l<l,""+l(l=l>=l)+ +l)+((l>=l++ )+((l=>l=l>=l)(l>=l))+(l="")+(l+=l<=l)+l+(l=l)+(l==(l=>l<l)(l))))

โปรแกรมที่สอง

alert((l=[]+![])+(l=l+[l][l]+(l>=l)+(l>=l)+ (l=l=>l==l)(l)+l(l>l)+(l==l(l))+"" +(l=+l())+(++l<<++l)+(l==l)+(l=(l<=l)<l)+(+l<l)))

มอบความโปรดปรานให้คุณ ขอบคุณสำหรับกระดานผู้นำ!
— Arcturus

3

Ruby, แคร็ก , 2 โปรแกรม, 64 ไบต์; คะแนน -16

บรรณนิทัศน์

p w,%=?(w.ord,40,?)(;"jb inv inv is{2").bytes{|*b|?aput%?c} b-w}

เอาท์พุต

โปรแกรมที่ 1

"bananas"

โปรแกรมที่สอง

BANANAS

เอาต์พุตทั้งสองมีการขึ้นบรรทัดใหม่



3

Perl, ปลอดภัย, 2 โปรแกรม, 102 ไบต์; คะแนน 66

sprint""@(u{[|<$/{W)xor$^ldH&~!<]#3,/H-61+e#]l#:l7o#3:3}>]3$^WS}[_$#:,=(~s#30-)3;)^#,]$")]>=">reverse]

เอาท์พุทแรก

Hello, World!

เอาท์พุทที่สอง

Hello, World!

วิธีการแก้

โปรแกรมแรก:

print@{[<{World!,Hello}>]}[$,=~s)),$")=>rvrs]

โปรแกรมที่สอง:

s""(u|$/)x$^H&~<]#3/-61+#]#:7#3:33$^WS_#:(#30-3;^#]]>"eee


คำตอบของคุณถูกบันทึกไว้หรือไม่ พูดอย่างนั้นในส่วนหัว
— user48538

@ zyabin101 เรียบร้อยแล้ว
— primo

2

Pyth, 2 โปรแกรม, 61 ไบต์; คะแนน 68/36 (ถ้าปลอดภัย / แตก)

โปรแกรม Interleaved

*vsC{`.m`DsPCd..[Gn9`T2vjkpv`/JmsC\Pid~T.n1tt`.VJp~T%n*TCG731

เอาต์พุตโปรแกรมแรก

491670984540320247032212137862815

เอาต์พุตโปรแกรมที่สอง

46252265449938954198657919684976120662891392853344868455756073
1063494620552721403954429737131814326362865215612332412466411486182225511644503132172962643458535768453543651970155938693047567602310634946205527214039544297371318143263628652156123324124664114861822255116445031321729626434585357684535

ไม่ควรยากเกินไป


Frankly, that looks terrible. Then again, I don't know Pyth very well.
— SuperJedi224

5
Well done me, I've lost the source code.
— Blue


2

JavaScript ES6, 2 programs, 225 bytes; Score 65/132 (if safe/cracked)

Interweaved:

 alaelretrt((((cb=>c=>b.replace(/.replace[a-(/[azA-Z]-z]/gi/g,a,s=>String=>String.fromCharCode(s.fromCharCode(("Z">=a.charCodeAt(0)?90:122)>=(a=a.charCodeAt(0+(s.toLowerCase())+13)?a<'n'?13:-13:a-26)))))))((""gfvbznfcyrg""))))

First output:

simple

Second output:

toast

Cracked. Thanks for a good puzzle.
— ETHproductions

2

Brainfuck, 4 programs, 251 bytes; 17/144 (if safe/cracked)

Interweaved programs

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

Output, first program

Eridan

Output, second program

Ampora

Output, third program

PPCG

Output, fourth program

Code Golf


1
What is the specific Brainfuck variant, e.g. is there any cell wrapping/overflow, are the cells 0..255 or unlimited, etc.?
— schnaader

2

Microscript II, safe, 2 programs, 44 bytes; score 68

Interleaved sources:

6$4sv{{3@0s>s"`+`"}s<s3320s*{1+s+K+s<}*p}*h`

Output, first program:

>=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! >=<;:9876543210/.-,+*)('&%$#"! 

Output, second program:

[5.477225575051661,2.340347319320716,1.5298193747370035,1.2368586720951604,1.1121414802511236,1.0545811871312343,1.026928034056542,1.0133745773683798,1.0066650770580947,1.0033270040510693,1.001662120702919,1.0008307153074985,1.0004152714285695,1.0002076141624645,1.0001038016938364,1.000051899500139,1.0000259494133834,1.0000129746225213,1.0000064872902181,1.0000032436398485,1.0000016218186092,1.0000008109089757,1.0000004054544056,1.0000002027271822,1.000000101363586,1.0000000506817917,1.0000000253408956,1.0000000126704478,1.000000006335224,1.000000003167612]

And here's the answer:

Program 1:

64s{30s>""s<32s{1+s>K+s<}*p}*h

Program 2:

$v{@s`+`}s30*`

2

Malbolge, 2 programs, 194 bytes; Score 65

Interweaved

D'`D$'#`pK~A5:]|3!W1ICw;A|RXsWP0xgN;BLeJmd[c#bGa!`3p%n$BS9?~m*,+N)6ii9E%CAxw"Y!Xtbslw2SR|n^gf)9ex+ZLphuan`s_l%F2bS[ZRYn}@gVfUey+SL;QPba`O_s^$[MZR_K^JWO{N>G=kY.XJQuCHUAT@65d>QJ&nN<0;FjJ,H@G@9d]JQ

Output 1

haha nope

Output 2

malbolge

It was only a matter of time.

Programs

O1

D'`A:]\!I;|XWxgBedcba`pn9m*6iiE%CA"!bw|^)9xZpunsl2SRngfe+Lba`_^$\[Z_^W{>=YXQuUT65QJnN0FjJ,HG@dQ

O2

D'`$#pK\~5|3W1CwARsP0N;LJm[#G!3%$BS?~,+N)9xwYXtsl2SRngfe+Lha`_%Fb[ZY}@VUyS;QPOsMRKJONGk.JCHA@d>&<;@9]J


2

Javascript, safe, 2 programs, 106 bytes; Score 66

alert(2ale98374rt("q883wope2jv+sjn[d]s^234j8kfdk7j9b|12f8ns7"[9]98+"jskfsd3"2+13()3892721+[]+{}*6^5|27&3))

Output 1

-35655169

Output 2

njskfsd7

Solution

Program 1

alert(2983748832+[]^234879|1287983213)

Program 2

alert("qwopejvsjndsjkfdkjbfns"[9]+"jskfsd"+(3892721+[]+{}*6^5|27&3))

2

Japt, safe, 3 programs, 63 bytes; Score 36

The version of the interpreter that this was built for can be found here. Unfortunately, I've lost the originals, so I'll have to see if I can crack it myself...

Interweaved programs

"AARoooLv mLv m@(_y6Xpp33*  ay%2%|v2n"+95+'H+2   m@(Xdcq)q -A d

Output 1

112221174199804510029601998159214179608538147196191138431341951029363738456410116231158105100149362111411782137669714451962921697122751841161758017110476673747582101138199681951421371867326511541191741031345182116631134159

That's 222 digits, in case you were wondering.

Output 2

R!2,tR+dE34N('QM!2'e4Xx;e>+2YGaNsw`4Xs,Gk?(,Q>XFmta:d'Gk:xm~RNxwQklZ;tM+sm~M?ZEea?dw~ !(;`

Output 3

Hello, World!

Is your answer saved? You'd reveal the solution already.
— user48538

@zyabin101 This is safe, but I've lost the solution. Plus, it doesn't even work with the current version of Japt! I'll add a link for the old version, then see if I can crack it myself.
— ETHproductions

1

JavaScript, 2 programs, 255 bytes; Score 65/132 (if safe/cracked)

a=c(([]o[0]+[][0n]+[][0]s+[][0o]+"l")e+(((new .Date)+"l").osplit(" g")[8])+"".match((/aa/)+t([0o][1]+"b")).split(")").join("('").split("bn");Vconssole.blog(aA=[1]=.toUpperCase()+a[7]+a[13]+" '))"+a[4].toUpperCase()+"`"+a[5]+" "+a[15]+a[16]+a[17;]+a[018]);

First program output:

And I`m fine

Second Program output:

null

The second programs output is text and not JavaScript's:null

This should be easy for the robbers.


Is your answer saved? Reveal the solution.
— user48538

1

Vitsy, 4 programs, 228 bytes; Score 17

(Uses an older version, which is linked)

Heeeyyyy @VoteToClose. I don't expect this one to be up long, but you never know… I love your language, now that I'm using it a lot!

Interweaved program

1E2P-0P1E^l*312359121E4/13+1*-205+-5Pv*92t\9\[931[2-\D+\*12/]1N5*[t22*^50\+[\72C]\[[2r***t]PC^s]]2TNL2l\*2v2-D2E12[+48/3*-]2\**v+i8+1D+++NL*5N]-*4Z525L5L2*26E/-{'^2N6+l"015v52\2[{v/\[1*12]/r+^ZDs"6p'TO2N{^v]1v{\/3N\[52*]*4-^*N\*

Output 1

2014794345195992700000000000000000000000000.00000049.2129129367736101

Output 2

679:;=>@ABDEFHIJLMNPQSTUWXY[\]_`b

Output 3

44.5'+26

Output 4

100000.315464876785728777498798913309289000000000000000000000000000000000000000000000000.000000

Good luck! I used the online interpreter, but it should work in the safe jar.


Programs

O1

El94+*2+Pt*t7\[rP^]N2248*2*8**2LLE{^N0v\[v1+DpN{v]v\N

O2

EPP^*E/3-05-v\[32\[52]***vDE2/-v++]Z

O3

12-1313111159991-\+12/152*0+\[2*]2Ll2-1+\+DN5-552*/-'+"5522\[*]rZ"6'O

O4

0252*2\[D*]N2^\[CtCs]T2\[3]*i1++LN452626l1{/12/^sT2^1{/3\[52*]*4-^*N\*

1
:D I didn't see this until just now! fangirls Just about to go to sleep as well, but I'll work on it.
— Addison Crump

Don't forget to mention that you're using a certain version... ;)
— Addison Crump

@VoteToClose Oh, yeah, right.
— Conor O'Brien

1

Candy, safe, 2 programs, 85 bytes; Score 66

See: Candy

75~z43+/k20*416+k-1612+1++k2
8343-k92k*4+5k~7*Ak70kR(4122
5612=x53bAR2((hkDXhZ*h)))ZZ??

Outputs:

51450000

1609944

Update: This is the two programs followed by their interleaving:

7 ~z4  /k 0 41 +k  612   +k28 4 -k92k 4 5k~  Ak70k  41225612  53   2(  kD  Z*h)  Z  ?
 5   3+  2 *  6  -1   +1+    3 3     * +   7*     R(        =x  bAR  (h  Xh    )) Z?
75~z43+/k20*416+k-1612+1++k28343-k92k*4+5k~7*Ak70kR(41225612=x53bAR2((hkDXhZ*h)))ZZ??

1

Foo, 6 programs, 197 bytes; Score 5/192 (if safe/cracked)

Interweaved code:

&(@@11&5@@756&@04$+110)c5*@@1$*1+c52$&&@+15*@@2c$(c61>(51/6+10)@<*2$0c*-$0+6c*$6@1$+$c-01c@1c4$c$@/2&-)$50c++c(+$@2*$c2($+6c+c>0*(>+42&$1c+1$6+c--2@<$<5)c>$c>+7$$cc)-<++1+11$$cc)@2(32/$c)&+5*2$c"B"

Output from 1st program:

   
@ 
B

Note the tab on first line and trailing space on second line

Output from 2nd program:

<83.-

Note that the first line is blank

Output from 3rd program:

<=$)

Output from 4th program:

72}

Output from 5th program:

$#%*+&

Output from 6th program:

Foo

There is only one interpreter for Foo which i know of, you can find it here


Welcome to Programming Puzzles and Code Golf. Great first answer. If you need any help with the site, reply by including @wizzwizz4 in your comment.
— wizzwizz4

0

Python 2, 8 programs, 92 bytes; Score: -16

Another easy one:

ppprirnriipnnprtp rrpti"piirnrinio"ntt n n"bt"Tunht" t"is ""dot n"t ohhe"el""w lo"aleal"l"s"

8 outputs:

This

hello

well

no

alas

but

oh

done

Cracked. BTW, you don't need to put spaces after print in Python 2.
— Arcturus

That was quick, this was probably the easiest answer.
— Generic User

0

JavaScript, 8 programs, 233 bytes; Score 2/384 (if safe/cracked)

OK, now I'm being evil:

aalaaalaalllelreeereatlrterlreer(trtr(t(("t(t(!ft(!u\(untc!(y!t[0![p(!ty2!0p6ioee]a[8+0[0tbon(\o!fuo0)fb0 0 |(|h!6["t!Z5y!{!ze"[)0pb}b]01e]+"+")"+o\uo[]0]o0b1f110 al)]4d+1")+)]cl)"("\o!fu0u))0.4slc\incu00c6e(4,f"t)8))ion(){}+![])+"")

1st Output:

false

2nd Output:

true

3rd Output:

heLLo

4th Output:

2015

5th Output:

0

6th Output:

good

7th Output:

fine

8th Output:

string

The snippet says 2/384 as the score.
— ev3commander

0

Python 2, safe 2 programs, 148 bytes; Score 65

execexec'prin'""it`sum(map(ormpd,(stor.rparrt""('""thellitio"on.__n"'ame_)'_*".3**/7".__len.__()re)pl[ace++-2(]))**061`[+*+2]'.re'"_pl'a)ce(*"+:")

Output 1:

Hello world...

Output 2:

188381387815229576775053627587460257651836527329727069542076068076585927926328856199896

Program 1:

exec'""import""(\'""hello""\')'.replace(*'"_')

Program 2:

exec'print`sum(map(ord,(str.rpartition.__name__*".3**/7".__len__())[++-2]))**061`[++2]'.replace(*"+:")
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.