มาค้นหาคำกันเถอะ!


35

ในความท้าทายนี้เราจะสร้างการค้นหาคำที่มีหลายโปรแกรมในภาษาต่างๆ

ฉันเริ่มต้นเราด้วยตารางของช่องว่าง 60 x 25 ( ·) ซึ่งบางส่วนจะถูกแทนที่ด้วยอักขระของโปรแกรม Ruby

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

ตัวอย่างเช่นสมมติว่าคุณเลือกหลาม 3 print(input())สำหรับคำตอบของคุณและเขียนโปรแกรม ตอนนี้คุณต้องแทรกโปรแกรมนั้นลงในตาราง

หากตารางก่อนคำตอบของคุณจะเป็นดังนี้:

···a·24··········
··z····t·········

จากนั้นคุณสามารถวางโปรแกรมของคุณในบรรทัดที่สองซ้อนทับกับที่มีอยู่t:

···a·24··········
··zprint(input())

โปรดทราบว่าคุณสามารถวางโปรแกรมของคุณในทิศทางใดก็ได้: ไปข้างหน้าถอยหลังถอยหลังขึ้นหรือลงตามแนวทแยงมุมตราบใดที่มันอยู่ในแนวเส้นตรง

แต่จะเป็นอย่างไรถ้ากริดที่มีอยู่มีลักษณะดังนี้:

···a·24··········
··z····q·········

ไม่มีวิธีที่จะทำให้พอดีกับที่print(input())นี่โดยไม่ต้องเปลี่ยนตัวละครที่มีอยู่ซึ่งเป็นสิ่งต้องห้าม แต่คุณสามารถเปลี่ยนโปรแกรมได้:

print(
 input())

โปรแกรมสองบรรทัดนี้เหมาะอย่างเรียบร้อย:

···a·24·print(···
··z····q input())

ที่นี่คุณจะแทนที่ช่องว่าง ( ·) ด้วยช่องว่าง ( ) อย่างไรก็ตามช่องว่างก็เหมือนกับตัวละครอื่น ๆ และไม่สามารถเขียนทับในโปรแกรมในอนาคตได้

เช่นเดียวกับสายการบินโปรแกรมหลายบรรทัดสามารถวางในทิศทางใดก็ได้ ตัวอย่างเช่นในกริดที่ใหญ่ขึ้นคุณสามารถทำสิ่งต่อไปนี้ได้โดยหมุนโปรแกรมตามเข็มนาฬิกา 135 °

··········
········ ·
·······i·p
······n·r·
·····p·i··
····u·n···
···t·t····
··(·(·····
·)········
)·········

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

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

คะแนนรวมของคุณคือผลรวมของคะแนนสำหรับคำตอบทั้งหมดของคุณคูณด้วยจำนวนคำตอบ คะแนนสูงสุดชนะ

กฎระเบียบ

  • ทุกคำตอบจะต้องเขียนด้วยภาษาที่แตกต่างกัน ภาษาที่แตกต่างกันเฉพาะในหมายเลขรุ่น (เช่น Python 2 และ Python 3) จะถือว่าเหมือนกัน
  • ทุกคำตอบจะต้องต่อยอดจากคำตอบที่ถูกต้องล่าสุด กล่าวคือนำกริดของคำตอบล่าสุดนั้นมาใส่โปรแกรมของคุณลงไป
  • ในการแทรกโปรแกรมของคุณให้แทนที่อย่างน้อยหนึ่งช่องว่าง ( ·) ด้วยอักขระที่คุณเลือก คุณอาจใช้อักขระที่มีอยู่จากกริดในคำตอบของคุณ แต่คุณไม่สามารถเปลี่ยนแปลงหรือย้ายอักขระใด ๆ ได้
  • คุณไม่สามารถแทรกอักขระได้เกิน 500 ตัวในคำตอบทั้งหมดของคุณ
  • อักขระทั้งหมดที่คุณแทรกจะต้องเป็นส่วนหนึ่งของโปรแกรมของคุณ
  • โปรแกรมของคุณอาจประกอบด้วยเฉพาะ ASCII ที่พิมพ์ได้และการขึ้นบรรทัดใหม่ แต่อาจไม่มีการขึ้นบรรทัดใหม่ต่อเนื่องกันสองบรรทัดขึ้นไป
  • ขึ้นบรรทัดใหม่จะไม่นับรวมคะแนนของคุณ
  • ต้องใช้โปรแกรมเต็มรูปแบบไม่ใช่เพียงแค่ฟังก์ชั่นหรือตัวอย่างเท่านั้น
  • ผู้ใช้คนเดียวกันไม่สามารถเขียนคำตอบสองคำตอบติดต่อกัน
  • หากคำตอบของใครบางคนละเมิดกฎแสดงความคิดเห็น หากความผิดพลาดไม่ได้รับการแก้ไขภายใน 30 นาทีควรลบทิ้ง

ตัวอย่างภาษาที่ใช้

นี่คือตัวอย่างข้อมูลย่อยที่สร้างโดย ETHproductions, FryAmTheEggman และ Mauris ที่ติดตามคะแนนของผู้ใช้และภาษาที่ใช้ มันได้รับการคัดลอกพื้นเพมาจากแม่แบบที่น่าตื่นตาตื่นใจมาร์ตินBüttnerของ

กระดานแต้มนำดั้งเดิม:

ใหม่ (รุ่นทดลอง) โดยใช้สูตรดัดแปลง:

เพื่อให้แน่ใจว่าข้อมูลโค้ดของคุณเป็นที่รู้จักโปรดใช้เทมเพลตส่วนหัวต่อไปนี้:

# Language, X characters added

2
เอ๊ะฉันจะพึ่งพาชุมชนเป็นเย็นพอที่จะไม่ทำสิ่งที่น่าเบื่อ :)
ลินน์

5
ฉันมีตัวอย่าง "ลีดเดอร์บอร์ด" พื้นฐานคัดลอกมาจากเทมเพลตที่น่าทึ่งของ Martin ที่ติดตามภาษาที่ใช้ ฉันขอแก้ไขในโพสต์ได้ไหม
ETHproductions

1
เอาล่ะฉันได้เพิ่มข้อมูลโค้ดแล้ว ฉันลบเฉพาะส่วน HTML ที่ไม่จำเป็นออกไปดังนั้นโปรดย่อ CSS หรือ JS ให้สั้นลง
ETHproductions

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

3
ใครบางคนควรขยายตัวอย่างเพื่อให้กระดานคะแนนแสดงรายการคะแนนต่อผู้แต่ง
ลินน์

คำตอบ:


12

Java, เพิ่ม 124 อักขระ

ในขณะที่ยังมีห้องพัก!

class C{public static void main(String[]a) throws Throwable{
System.out.println(new java.util.Scanner(System.in).next());
}}

กริดคือตอนนี้

····························································
···········i········a·······································
··········?pio;·····l·······································
··········,u········e·······································
··········.t········r·······································
··········@s········t·······································
··········· ··printf(·······································
···········g··    input('','s'))····························
···········e·····n··r·······································
········write(read-host)····································
·········E·s········m·······································
········C·E·········p·······································
·······H·T··········t·····················r·················
······O· ···········(·······································
····· ·/············)·······································
····%·P·············)·······································
···A· ······················································
··%·A·······················································
···=························································
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc    
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS    
··························································}}
····························································
····························································
····························································

ทำการแก้ไขนินจาและสลับรหัสในกริดเนื่องจาก OP ระบุว่าโค้ดสามารถย้อนกลับได้ จากนั้นดัดแปลงให้เป็นคำตอบถัดไป


11

เพิ่มคางทูม 23 ตัว

ขออภัยอีกครั้งที่ไม่มีข้อกำหนดหนึ่งข้อในคำถาม

นี่คือการส่งใหม่ของฉัน:

s t=" " r t#50:20 w !,t,!

สิ่งนี้ตั้งค่าตัวแปร t เป็นช่องว่างจากนั้นอ่านได้สูงสุด 50 อักขระจากอินพุตมาตรฐานด้วยการหมดเวลา 20 วินาทีที่เขียนขึ้นบรรทัดใหม่ตัวแปรแล้วขึ้นบรรทัดใหม่อีกบรรทัด (ขั้วคางทูมจำนวนมากจะยุ่งหากคุณไม่ทำเช่นนั้น ... )

ตอนนี้กริดคือ:

····························································
···········i········a·······································
··········?pio;·····l·······································
··········,u········e·······c·······························
··········.t········r·······a·······························
··········@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·······························
········write(read-host)····a·······························
·········E·s········m·······n·······························
········C·E·········p·······(·······························
·······H·T··········t·······,·············r·················
······O· ···········(·······'·······························
····· ·/············)·······'·······························
····%·P·············)·······)·······························
···A· ······················)·······························
··%·A·······················································
···=························································
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc    
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS    
··························································}}
····························································
····························································
····························································

การยอมจำนน R ทำให้เอ้นี่มันยากกว่านิดหน่อยที่จะเขียน ... :-)


10

Beatnikเพิ่ม 29 ตัวอักษร

Get a chr!
Outputs it
and 'BZam.

คำอธิบายมา :)

รับ # ละเว้นด้วยค่าข่วนต่ำกว่า 5
chr! # คะแนน 8 ป้อนอักขระและผลักดันค่า
ผลลัพธ์ # คะแนน 9 ป๊อปอัพตัวเลขและเอาท์พุทเป็นอักขระ
และ # ละเว้นด้วยคะแนนต่ำกว่า 5
'BZam # คะแนน 17 ยุติโปรแกรม

กริดใหม่

·········v---H\·············································
·········>qir@uH····a·······································
Get a chr!?pio;·····l·······································
Outputs it,u········e·······c·······························
and 'BZam..t········r·······a·······························
··········@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·······························
········write(read-host)····a·······························
·········E·s········m·······n·······························
········C·E·········p·······(·······························
·······H·T··········t·······,·············r·················
······O· ···········(·······'·······························
····· ·/············)·······'·······························
····%·P·············)·······)·········1·····················
···A· ······················)········n······················
··%·A·······························-·······················
···=······························· ···$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc    
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS    
································e···a·····················}}
·······························h···=························
··································<·························
·································>··························

ฉันคิดว่า B'Zam ควรเป็น 'BZam เนื่องจากเครื่องหมายอัญประกาศที่อยู่ตรงกลางทำให้เป็นคำสองคำ BZam จะเป็น 17 คะแนนและยุติโปรแกรม นอกจากนี้อาจมีการโต้แย้งว่าสิ่งนี้ไม่ถูกต้องเนื่องจากล่ามอาจล้อเลียนคุณสำหรับการให้คะแนนต่ำ "รับ", "มัน" และ "และ" และ " ฉันคิดว่ามันดีนะ
Mike Bufardeci

@ MikeBufardeci ฉันคิดว่าคุณอาจถูกต้องใน BZam จะเปลี่ยนแปลงเนื่องจากไม่มีผลต่อคำตอบถัดไป
MickyT

9

เพิ่ม C, 27 ตัวอักษร

มีคนพูดถึง C และฉันเห็นว่ามันยังเป็นไปได้

main( ){printf("%c",  (getchar()));}

ใหม่กริด:

·········v---H\·············································
······,··>qir@uH···IaP.·····································
Get a chr!?pio;·····l·······································
Outputs it,u········e·······c··········print(readline())····
and 'BZam..t········r·······a·······························
········~,@s······s t=" " r t#50:20 w !,t,!·················
······main( ){printf("%c",  (getchar()));}··················
···········g·>    input('','s'))····························
···········e·····n··r·······c·········g·····················
·······(write(read-host)····a)········r······ ··············
·······))E·s········m·······n)········e·····················
········C·E·········p·······((·······{print;exit}····K······
·······H·T··········t·······,t········ ···r·················
······O· ···········(·······'u········-·····················
····· ·/············)·······'p········m·····················
····%·P·············)·······)n········1·····················
···A· ······················)io······n ·····················
··%·A························(······-·.·····················
···=·························t\···· ···$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

8

??? เพิ่ม 1 ตัวอักษร

?!

ตอนนี้กริดคือ:

·········v---H\·············································
·········>qir@uH····a·······································
·········!?pio;·····l·······································
··········,u········e·······c·······························
··········.t········r·······a·······························
··········@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·······························
········write(read-host)····a·······························
·········E·s········m·······n·······························
········C·E·········p·······(·······························
·······H·T··········t·······,·············r·················
······O· ···········(·······'·······························
····· ·/············)·······'·······························
····%·P·············)·······)·········1·····················
···A· ······················)········n······················
··%·A·······························-·······················
···=······························· ···$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc    
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS    
································e···a·····················}}
·······························h···=························
··································<·························
·································>··························

6

โกศ 3 ตัวละครเพิ่ม

(:::)

ตารางใหม่:

·········v---H\··v+C+<D_··············S·P··············;····
G`····,··>qir@uH·  IaP.C·············A·USE: io·········>····
Get a chr!?pio;····Ol···············Y·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))··<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:·E····
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;····
O·········)g·>    input('','s'))·················h_··)·P····
a··········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)···KVGH·e·print n$!·m····;····
········C·E·········p·······((···TIIA{print;exit}·pYEK·*····
$'main'H·T··········t·······,t···HSMI· ···r·······(·········
 \/\··O· ···········(·······'u···XIM ·-···········$·········
  \/· ·/(println····)·······'p···BBE1·m···········a·········
   \%·PQ  (read-line))······)n···YLH.·1···········r·········
   A\     /-io-\············)io··EE 4n ·····`·····g·········
  % A\-e-<     |·············(···· V-·.··di _r(a)·v·········
 $ =      \----#·············t\···V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<····················
···};s<<tuoc::dts;s>>nic::dts····>i:1+?/;···················

5

เพิ่มทับทิม 9 ตัวอักษร

puts gets

ตอนนี้กริดคือ:

····························································
····························································
···········p················································
···········u················································
···········t················································
···········s················································
··········· ················································
···········g················································
···········e················································
···········t················································
···········s················································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································

5

LISP เพิ่ม 3 ตัวอักษร

(write(read
))

ตารางใหม่:

·········v---H\·············································
·········>qir@uH····a·······································
Get a chr!?pio;·····l·······································
Outputs it,u········e·······c·······························
and 'BZam..t········r·······a·······························
··········@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·······························
·······(write(read-host)····a)······························
·······))E·s········m·······n)······························
········C·E·········p·······((······························
·······H·T··········t·······,t············r·················
······O· ···········(·······'u······························
····· ·/············)·······'p······························
····%·P·············)·······)n········1·····················
···A· ······················)i·······n······················
··%·A························(······-·······················
···=·························t····· ···$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a·····················}}
·····························p·h···=························
··································<·························
·································>··························

5

Perl, เพิ่ม 6 ตัวอักษร

die
$  a=<>

ตอนนี้กริดคือ:

·········v---H\·············································
·········>qir@uH····a·······································
··········?pio;·····l·······································
··········,u········e·······c·······························
··········.t········r·······a·······························
··········@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·······························
········write(read-host)····a·······························
·········E·s········m·······n·······························
········C·E·········p·······(·······························
·······H·T··········t·······,·············r·················
······O· ···········(·······'·······························
····· ·/············)·······'·······························
····%·P·············)·······)·······························
···A· ······················)·······························
··%·A·······················································
···=···································$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc    
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS    
····································a·····················}}
···································=························
··································<·························
·································>··························

โปรแกรมแนวทแยงของคุณผิด ดูตัวอย่างการหมุน 135 องศา มีเส้นทแยงมุมว่างที่คุณจะต้องมี
mbomb007

@ mbomb007 อ่าคงได้รับการแก้ไขฉันคิดว่า
แธดเดียส

คุณได้ทิ้งคำตอบก่อนหน้าจากตาราง :)
MickyT

@MickyT ขอบคุณสำหรับการแก้ไข :)
แธดเดียส

5

Quipuเพิ่ม 3 ตัวอักษร

โปรแกรม cat ใน Quipu คือสี่ตัวอักษร:

\/
/\

ฉันหมุน 90 °และนำ slash จากโปรแกรมRailกลับมาใช้ใหม่

ตารางใหม่:

·········v---H\··v+C+<D_··············S·P··············;····
G`····,··>qir@uH·  IaP.C·············A·USE: io·········>····
Get a chr!?pio;····Ol···············Y·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))··<v;···;····
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?···E····
G·····main( ){printf("%c",  (getchar()));}·······pr>···;····
O··········g·>    input('','s'))·················h_····P····
a··········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)···KVGH·e·print n$··m····;····
········C·E·········p·······((···TIIA{print;exit}·pYEK·*····
$'main'H·T··········t·······,t···HSMI· ···r·······(·········
 \/\··O· ···········(·······'u···XIM ·-···········$·········
  \/· ·/(println····)·······'p···BBE1·m···········a·········
   \%·P·  (read-line))······)n···YLH.·1···········r·········
   A\     /-io-\············)io··EE 4n ·····`·····g·········
  % A\-e-<     |·············(···· V-·.··di _r(a)·v·········
 $ =      \----#·············t\···V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni·····<·························
···};s<<tuoc::dts;s>>nic::dts····>··························

5

Marbelousเพิ่ม 7 ตัวอักษร

00
\\/\]]

(ถ้าฉันเข้าใจถูกต้องว่า Marbelous ทำงานอย่างไร ... )

·········v---H\OIv+C+<D_··············S·P··············;····
G`····,··>qir@uH·  IaP.C········LAMBDA·USE: io·········>····
Get a chr!?pio;····Ol···········ZEROY·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))·o<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:·E····
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;····
O·········)g·>    input('','s'))·················h_··)·P····
a··········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)···KVGH·e·print n$!·m····;····
········C·E·········p·······((···TIIA{print;exit}·pYEK·*····
$'main'H·TUPTUO·····t·00····,t···HSMI· ···r·······(·········
 \/\··O· ·TUPNI···S (I\\/\]]'u···XIM ·-···········$·········
  \/· ·/(println··FO) /·····'p···BBE1·m···········a·········
   \%·PQ  (read-line))······)n···YLH.·1··print(io.read())···
   A\     /-io-\············)io··EE 4n ····,`·····g·········
  % A\-e-<     |··········)#_(···· V-·.··di _r(a)·v·········
 $ =      \----#·············t\·c&V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··`[x.````?10xx][x.````?10xx]r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<····················
···};s<<tuoc::dts;s>>nic::dts···o>i:1+?/;][gnirtStupnI@tnirP

เนื่องจากคุณจะต้องอ่านตัวละครตัวเดียว00\n]]ก็ทำได้เช่นกัน
Martin Ender

จริง ฉันลืมว่าการอ่านตัวละครเดียวเป็นไปได้
plannapus

4

Pyth เพิ่ม 1 อักขระ

w

ตอนนี้กริดคือ:

····························································
····························································
··········?pio··············································
··········,u················································
··········.t················································
···········s················································
··········· ················································
···········g················································
···········e················································
········w··t················································
···········s················································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································

4
w__t_ฉันเห็นสิ่งที่คุณทำที่นั่น
PurkkaKoodari

@ Pietu1998 ต้องวางแผนล่วงหน้า! ไม่ต้องการให้มันกลายเป็น esolangs อย่างรวดเร็วเหมือนวิวัฒนาการของโลกสวัสดีที่ทำได้: ^)
FryAmTheEggman

4

PowerShell เพิ่ม 14 ตัวอักษร

write(read-host)

ฉันจะดีและให้ผู้คนมีพื้นที่มากขึ้นในการหายใจ :)

กริดคือตอนนี้

····························································
···········i················································
··········?pio;·············································
··········,u················································
··········.t················································
···········s················································
··········· ················································
···········g················································
···········e················································
········write(read-host)····································
···········s················································
····························································
··········································r·················
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································

อาพลาดว่า
แพทริคโรเบิร์ต

4

ALGOL 68 เพิ่ม 7 ตัวอักษร

print(read 
string)

ตารางใหม่:

·········v---H\········································;····
······,··>qir@uH···IaP.················USE: io·········>····
Get a chr!?pio;·····l··················readln··········;····
Outputs it,u········e·······c··········print(readline())····
and 'BZam..t········r·······a··········string)·········;····
········~,@s······s t=" " r t#50:20 w !,t,!············E····
······main( ){printf("%c",  (getchar()));}·············;····
···········g·>    input('','s'))·······················P····
···········e·····n··r·······c·········g················;····
·······(write(read-host)····a)········r·input n········(····
·······))E·s········m·······n)········e·print n········;····
········C·E·········p·······((·······{print;exit}····K·*····
·······H·T··········t·······,t········ ···r·················
······O· ···········(·······'u········-·····················
····· ·/············)·······'p········m·····················
····%·P·············)·······)n········1·····················
···A· ······················)io······n ·····················
··%·A························(······-·.·····················
···=·························t\···· ···$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

4

LOLCODEเพิ่มตัวละคร 31 ตัว

HAI 1.4
GIMMEH V
VISIBLE V
KTHXBYE

เพียงแค่ไปทางขวาของกลางที่หมุน 90 o โขกขึ้นอย่างกับ-, และdมี ระหว่างนี้ไฟล์แบทช์และ PowerShell ฉันค่อนข้างแน่ใจว่าฉันจะไม่ชนะโดยอิงตามคะแนน :-)

ตอนนี้กริดคือ:

·········v---H\··v+C+<D_··············S·P··············;····
G`····,··>qir@uH·  IaP.C·············A·USE: io·········>····
Get a chr!?pio;····Ol···············Y·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))··<v;···;····
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?···E····
G·····main( ){printf("%c",  (getchar()));}·······pr>···;····
O··········g·>    input('','s'))·················h_····P····
a··········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)···KVGH·e·print n$··m····;····
········C·E·········p·······((···TIIA{print;exit}·pYEK·*····
·······H·T··········t·······,t···HSMI· ···r·······(·········
······O· ···········(·······'u···XIM ·-···········$·········
····· ·/(println····)·······'p···BBE1·m···········a·········
····%·P·  (read-line))······)n···YLH.·1···········r·········
···A· ······················)io··EE 4n ·····`·····g·········
··%·A························(···· V-·.··di _r(a)·v·········
·$·=·························t\···V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

(ฉันแก้ไขแถวที่สี่จากด้านล่างด้วย)


4

Prolog (SWI) เพิ่ม 14 ตัวอักษร

:-get(C),
put(C).

อ่านอักขระเดี่ยวและส่งออก บน Ideone สิ่งนี้ใช้ได้แต่มีเอาต์พุตไปยัง stderr ด้วยswiplบน Ubuntu มันทำสิ่งต่อไปนี้:

dlosc@dlosc:~/tests$ swipl -qs getput.prolog
|: X
X?-

Xตัวละครอยู่ที่ไหนและ?-เป็นพรอมต์ คุณสามารถออกจากพรอมต์ด้วย Ctrl-D

ใหม่กริด (โค้ดอ่านจากบนลงล่างขวาไปซ้ายใกล้มุมบนขวา):

·········v---H\OIv+C+<D_··············S·Psgv···········;····
G`····,··>qir@uH·  IaP.C········LAMBDA·USE: io·········>····
Get a chr!?pio;p···Ol···········ZEROY·Lreadln(write(···;····
Outputs it,u··a$ ohce·······c······ ·L·print(readline())····
and 'BZam..t···a daer·······a·····ai ··string))·o<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:·Eu-··
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;tg··
O·········)g·>    input('','s'))·················h_··)·P(e··
a··········e·····n··r·····^·c·········g··········pd····;Ct··
·······(write(read-host)····a)········r·input n$!?u····()(··
·······))E·s········m·······n)···KVGH·e·print n$!·m····;.C··
········C·E·········p·······((···TIIA{print;exit}·pYEK·*·)··
$'main'H·TUPTUO·····t·00····,t···HSMI· ···r·······(······,··
 \/\I^O= ·TUPNI···S (I\\/\]]'u···XIM ·-···········$·········
  \/· ·/(println··FO) /·····'p···BBE1·m···········a·········
   \%·PQ  (read-line))······)n···YLH.·1··print(io.read())···
   A\     /-io-\············)io··EE 4n ··@.,`·····g·········
  % A\-e-<     |··········)#_(···· V-·.··di _r(a)^v·········
 $ =      \----#·············t\·c&V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··`[x.````?10xx][x.````?10xx]r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<····················
···};s<<tuoc::dts;s>>nic::dts···o>i:1+?/;][gnirtStupnI@tnirP

4

oOo CODEเพิ่ม 1 ตัวอักษร

ROYALr

ใหม่กริด:

·········v---H\OIv+C+<D_··············S·Psgv···········;····
G`····,··>qir@uH·  IaP.C········LAMBDA·USE: io·········>····
Get a chr!?pio;p···Ol···········ZEROYALreadln(write(···;····
Outputs it,u··a$ ohce·······c······ ·L·print(readline())····
and 'BZam..t···a daer·······a·····ai ··string))·o<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:·Eu-··
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;tg··
O·········)g·>    input('','s'))·················h_··)·P(e··
a··········e·····n··r·····^·c·········g··········pd····;Ct··
·······(write(read-host)····a)········r·input n$!?u····()(··
·······))E·s········m·······n)···KVGH·e·print n$!·m····;.C··
········C·E·········p·······((···TIIA{print;exit}·pYEK·*·)··
$'main'H·TUPTUO·····t·00····,t···HSMI· ···r·······(······,··
 \/\I^O= ·TUPNI···S (I\\/\]]'u···XIM ·-···········$·········
  \/· ·/(println··FO) /·····'p···BBE1·m···········a·········
   \%·PQ  (read-line))······)n···YLH.·1··print(io.read())···
   A\     /-io-\············)io··EE 4n ··@.,`·····g·········
  % A\-e-<     |··········)#_(···· V-·.··di _r(a)^v·········
 $ =      \----#·············t\·c&V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··`[x.````?10xx][x.````?10xx]r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<····················
···};s<<tuoc::dts;s>>nic::dts···o>i:1+?/;][gnirtStupnI@tnirP

3

เขาวงกตเพิ่ม 1 อักขระ

,.@

อ่านและเขียนอักขระ

กริดคือตอนนี้

····························································
···········i········a·······································
··········?pio;·····l·······································
··········,u········e·······································
··········.t········r·······································
··········@s········t·······································
··········· ··printf(·······································
···········g··    input('','s'))····························
···········e·····n··r·······································
········write(read-host)····································
·········E·s········m·······································
········C·E·········p·······································
·······H·T··········t·····················r·················
······O· ···········(·······································
····· ·/············)·······································
····%·P·············)·······································
···A· ······················································
··%·A·······················································
···=························································
····························································
····························································
····························································
····························································
····························································
····························································

3

Beam เพิ่มตัวอักษร 11 ตัว

เพิ่ม H พิเศษเพื่อหยุดการทำงานเหมือนโปรแกรม cat qและiจะถูกละเลย ฉันอาจจะมีขนาดใหญ่ขึ้นด้วยสิ่งนี้ แต่นั่นดูเหมือนจะเป็นการโกง

v---H\
>qir@uH

กริดคือตอนนี้

·········v---H\·············································
·········>qir@uH····a·······································
··········?pio;·····l·······································
··········,u········e·······c·······························
··········.t········r·······a·······························
··········@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·······························
········write(read-host)····a·······························
·········E·s········m·······n·······························
········C·E·········p·······(·······························
·······H·T··········t·······,·············r·················
······O· ···········(·······'·······························
····· ·/············)·······'·······························
····%·P·············)·······)·······························
···A· ······················)·······························
··%·A·······················································
···=························································
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··························································}}
····························································
····························································
····························································

3

ferNANDoเพิ่มตัวอักษร 31 ตัว

a b c d e f g h i
b c d e f g h i

ตารางใหม่:

·········v---H\·············································
·········>qir@uH···IaP.·····································
Get a chr!?pio;·····l·······································
Outputs it,u········e·······c·······························
and 'BZam..t········r·······a·······························
········~,@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·········g·····················
·······(write(read-host)····a)········r······ ··············
·······))E·s········m·······n)········e·····················
········C·E·········p·······((·······{print;exit}····K······
·······H·T··········t·······,t········ ···r·················
······O· ···········(·······'u········-·····················
····· ·/············)·······'p········m·····················
····%·P·············)·······)n········1·····················
···A· ······················)i·······n ·····················
··%·A························(······-·.·····················
···=·························t····· ···$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

3

แบบแผนเพิ่ม 8 ตัวอักษร

(write(
read
))

ตารางใหม่:

·········v---H\·······················S·P··············;····
······,··>qir@uH···IaP.··············A·USE: io·········>····
Get a chr!?pio;·····l···············Y·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))········;····
········~,@s······s t=" " r t#50:20 w !,t,!············E····
······main( ){printf("%c",  (getchar()));}·············;····
···········g·>    input('','s'))·······················P····
···········e·····n··r·····^·c·········g················;····
·······(write(read-host)····a)········r·input n$!?·····(····
·······))E·s········m·······n)········e·print n$·······;····
········C·E·········p·······((·······{print;exit}····K·*····
·······H·T··········t·······,t········ ···r·················
······O· ···········(·······'u········-·····················
····· ·/············)·······'p········m·····················
····%·P·············)·······)n········1·····················
···A· ······················)io······n ·····`···············
··%·A························(······-·.··di _r(a)···········
·$·=·························t\···· ···$;di $a··············
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

3

เพิ่ม Bash, 6 ตัวอักษร

head -n1

ตอนนี้กริดคือ:

·········v---H\·············································
·········>qir@uH····a·······································
··········?pio;·····l·······································
··········,u········e·······c·······························
··········.t········r·······a·······························
··········@s······s t=" " r t#50:20 w !,t,!·················
··········· ··printf(·······(·······························
···········g··    input('','s'))····························
···········e·····n··r·······c·······························
········write(read-host)····a·······························
·········E·s········m·······n·······························
········C·E·········p·······(·······························
·······H·T··········t·······,·············r·················
······O· ···········(·······'·······························
····· ·/············)·······'·······························
····%·P·············)·······)·········1·····················
···A· ······················)········n······················
··%·A·······························-·······················
···=······························· ···$·d··················
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc    
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS    
································e···a·····················}}
·······························h···=························
··································<·························
·································>··························

3

itflabtijtslwiเพิ่ม 5 ตัวอักษร

GGOaGGOa

นี่คือภาษา /// GGแต่มีผู้ใช้ป้อนเมื่อล้อมรอบด้วย มันคือ "ชื่อ" สิ่งที่เกิดขึ้นระหว่างพวกเขา ดังนั้นนี่เป็นเพียงการสะท้อนอักขระแรกของ STDIN (เนื่องจากสิ่งนี้อ่านได้เพียง 1 ตัวอักษรชื่อตัวละคร 2 ตัวหมายความว่ามันจะหยุดหลังจากเปลี่ยน Oa เป็นสิ่งที่คุณพิมพ์เสมอ)

เพิ่มไปทางซ้ายบนในแนวตั้งจาก (ข้าม, ลง) = (0,1) ถึง (0,9)

ตารางใหม่:

·········v---H\··v+C+<D_··············S·P··············;····
G`····,··>qir@uH·  IaP.C·············A·USE: io·········>····
Get a chr!?pio;····Ol···············Y·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))··<v;···;····
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?···E····
G·····main( ){printf("%c",  (getchar()));}·······pr>···;····
O··········g·>    input('','s'))·················h_····P····
a··········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)········e·print n$··m····;····
········C·E·········p·······((·······{print;exit}·pYEK·*····
·······H·T··········t·······,t········ ···r·······(·········
······O· ···········(·······'u········-···········$·········
····· ·/(println····)·······'p········m···········a·········
····%·P·  (read-line))······)n········1···········r·········
···A· ······················)io······n ·····`·····g·········
··%·A························(······-·.··di _r(a)·v·········
·$·=·························t\···· ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

การใช้งานที่ยอดเยี่ยมของที่มีอยู่GOa! +1
ETHproductions

3

PHP, เพิ่ม 24 ตัวอักษร

<?php
var_dump($argv)
;?>

ตอนนี้กริดคือ:

·········v---H\··v+C+<D_··············S·P··············;····
·`····,··>qir@uH·  IaP.C·············A·USE: io·········>····
Get a chr!?pio;····Ol···············Y·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))··<v;···;····
········~,@s······s t=" " r t#50:20 w !,t,!······?a?···E····
······main( ){printf("%c",  (getchar()));}·······pr>···;····
···········g·>    input('','s'))·················h_····P····
···········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)········e·print n$··m····;····
········C·E·········p·······((·······{print;exit}·p··K·*····
·······H·T··········t·······,t········ ···r·······(·········
······O· ···········(·······'u········-···········$·········
····· ·/(println····)·······'p········m···········a·········
····%·P·  (read-line))······)n········1···········r·········
···A· ······················)io······n ·····`·····g·········
··%·A························(······-·.··di _r(a)·v·········
·$·=·························t\···· ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

1
หากรหัสจะถูกดำเนินการด้วยสวิตช์ -r คุณสามารถลบแท็กเปิด นอกจากนี้คุณไม่จำเป็นต้องใช้แท็กปิด (ไม่ควรใช้แท็กปิด) var_dump($argv);โปรแกรมเต็มรูปแบบของคุณอยู่ในขณะนี้ คุณสามารถใช้print_r($args)แทนและบันทึก 1 ไบต์
Ismael Miguel

3

Retina , เพิ่ม 1 ตัวอักษร

G`

catนี้เป็นหลัก Gเปิดใช้งานโหมด grep เช่นโปรแกรมจะพิมพ์แต่ละบรรทัดของโปรแกรมที่ตรงกับ regex ที่กำหนด แต่ regex ว่างเปล่าดังนั้นทุกบรรทัดจึงตรงกันและข้อมูลทั้งหมดจะถูกพิมพ์กลับไปที่ STDOUT

·········v---H\··v+C+<D_··············S·P··············;····
·`····,··>qir@uH·  IaP.C·············A·USE: io·········>····
Get a chr!?pio;····Ol···············Y·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))········;····
········~,@s······s t=" " r t#50:20 w !,t,!············E····
······main( ){printf("%c",  (getchar()));}·············;····
···········g·>    input('','s'))·······················P····
···········e·····n··r·····^·c·········g················;····
·······(write(read-host)····a)········r·input n$!?·····(····
·······))E·s········m·······n)········e·print n$·······;····
········C·E·········p·······((·······{print;exit}····K·*····
·······H·T··········t·······,t········ ···r·················
······O· ···········(·······'u········-·····················
····· ·/············)·······'p········m·····················
····%·P·············)·······)n········1·····················
···A· ······················)io······n ·····`···············
··%·A························(······-·.··di _r(a)···········
·$·=·························t\···· ···$;di $a··············
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
·····························r··e···a b c d e f g h i·····}}
·····························p·h···=b c d e f g h i·········
··································<·························
·································>··························

3

RunRเพิ่ม 8 ตัวอักษร

อันสุดท้ายสำหรับช่วงเวลาหนึ่ง

S (I\
FO) /

เพิ่มเข้ามาใกล้กลางลงและซ้ายเล็กน้อย กริดใหม่คือ

·········v---H\·Iv+C+<D_··············S·P··············;····
G`····,··>qir@uH·  IaP.C········LAMBDA·USE: io·········>····
Get a chr!?pio;····Ol···········ZEROY·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))··<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:·E····
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;····
O·········)g·>    input('','s'))·················h_··)·P····
a··········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)···KVGH·e·print n$!·m····;····
········C·E·········p·······((···TIIA{print;exit}·pYEK·*····
$'main'H·T··········t·······,t···HSMI· ···r·······(·········
 \/\··O· ·········S (I\·····'u···XIM ·-···········$·········
  \/· ·/(println··FO) /·····'p···BBE1·m···········a·········
   \%·PQ  (read-line))······)n···YLH.·1···········r·········
   A\     /-io-\············)io··EE 4n ·····`·····g·········
  % A\-e-<     |·············(···· V-·.··di _r(a)·v·········
 $ =      \----#·············t\···V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··`[x.````?10xx][x.````?10xx]r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<····················
···};s<<tuoc::dts;s>>nic::dts···o>i:1+?/;···················

หากคุณไม่ได้เพิ่มสิ่งนี้ฉันจะใส่ F # ไว้ในนั้น
Timwi

@ Timwi ขอโทษด้วย
MickyT

3

Mathematica เพิ่ม 19 ตัวอักษร

Print@InputString[];

ใหม่กริด:

·········v---H\OIv+C+<D_··············S·P··············;····
G`····,··>qir@uH·  IaP.C········LAMBDA·USE: io·········>····
Get a chr!?pio;····Ol···········ZEROY·Lreadln(write(···;····
Outputs it,u········e·······c······ ·L·print(readline())····
and 'BZam..t········r·······a·····ai ··string))··<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:·E····
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;····
O·········)g·>    input('','s'))·················h_··)·P····
a··········e·····n··r·····^·c·········g··········pd····;····
·······(write(read-host)····a)········r·input n$!?u····(····
·······))E·s········m·······n)···KVGH·e·print n$!·m····;····
········C·E·········p·······((···TIIA{print;exit}·pYEK·*····
$'main'H·TUPTUO·····t·······,t···HSMI· ···r·······(·········
 \/\··O· ·TUPNI···S (I\·····'u···XIM ·-···········$·········
  \/· ·/(println··FO) /·····'p···BBE1·m···········a·········
   \%·PQ  (read-line))······)n···YLH.·1··print(io.read())···
   A\     /-io-\············)io··EE 4n ····,`·····g·········
  % A\-e-<     |·············(···· V-·.··di _r(a)·v·········
 $ =      \----#·············t\·c·V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··`[x.````?10xx][x.````?10xx]r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<····················
···};s<<tuoc::dts;s>>nic::dts···o>i:1+?/;][gnirtStupnI@tnirP

3

Haskell เพิ่ม 16 ตัวอักษร

main = interact id

คัดลอก stdin ไปยัง stdout รหัสเริ่มต้นที่บรรทัดที่ 15, ถ่าน 39

·········v---H\OIv+C+<D_Include C by GS·Psgv···········;····
G`····,··>qir@uH·  IaP.C.·······LAMBDA·USE: io·········>····
Get a chr!?pio;p···Ol···Z: say TZEROYALreadln(write(···;····
Outputs it,u··a$ ohce·······c······ ·L·print(readline())····
and 'BZam..t···a daer·······a·····ai ··string))·o<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:·Eu-··
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;tg··
O·········)g·>    input('','s'))(enildr ,tnirp···h_··)·P(e··
a··········e·····n··r·····^·c·········g··········pd····;Ct··
·······(write(read-host)····a)········r·input n$!?u····()(··
·······))E·s········m·······n)···KVGH·e·print n$!·m····;.C··
········C·E·········p·······((···TIIA{print;exit}·pYEK·*·)··
$'main'H·TUPTUO·····t·00····,t···HSMI· ···r·······(······,··
 \/\I^O= ·TUPNI···S (I\\/\]]'u···XIM ·-···········$·········
  \/· ·/(println··FO) /·····'p···BBE1·main = interact id····
   \%·PQ  (read-line))······)n···YLH.·1··print(io.read())···
   A\     /-io-\············)io··EE 4n ··@.,`·····g·········
  % A\-e-<     |··········)#_(···· V-·.··di _r(a)^v·········
 $ =      \----#·············t\·c&V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··`[x.````?10xx][x.````?10xx]r··e···a b c d e f g h i·····}}
···········>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<····················
···};s<<tuoc::dts;s>>nic::dts···o>i:1+?/;][gnirtStupnI@tnirP

3

ook! เพิ่ม 19 ตัวอักษร

Ook. Ook! Ook! Ook.

วางไว้บนบรรทัดที่ 24

·········v---H\OIv+C+<D_Include C by GS·Psgv···········;····
G`····,.·>qir@uH·  IaP.C.%······LAMBDA·USE: io·········>····
Get a chr!?pio;p···Ol···Z: say TZEROYALreadln(write(···;····
Outputs it,u··a$ ohce····.··c······ ·L·print(readline())····
and 'BZam..t···a daer····x··a·····ai ··string))·o<v;i:j;p:j·
G·······~,@s······s t=" " r t#50:20 w !,t,!······?a?·:,Eu-··
G·····main( ){printf("%c",  (getchar()));}·······pr>·:·;tg··
O·········)g·>    input('','s'))(enildr ,tnirp···h_··)·P(e··
a··········e·····n··r·····^·c·········g··········pd····;Ct··
·······(write(read-host)····a)········r·input n$!?u····()(··
·······))E·s········m·······n)···KVGH·e·print n$!·m····;.C··
········C·E·········p·······((···TIIA{print;exit}·pYEK·*·)··
$'main'H·TUPTUO·····t·00····,t···HSMI· ···r·······(······,··
 \/\I^O= ·TUPNI···S (I\\/\]]'u···XIM ·-···········$·········
  \/· ·/(println··FO) /·····'p···BBE1·main = interact id····
   \%·PQ  (read-line))······)n···YLH.·1··print(io.read())···
   A\     /-io-\············)io··EE 4n ··@.,`·····g·········
  % A\-e-<     |··········)#_(o··· V-·.··di _r(a)^v·········
 $ =      \----#·············t\·c&V ···$;di $a····)·········
{elbaworhT sworht )a][gnirtS(niam diov citats cilbup{C ssalc
;))(txen.)ni.metsyS(rennacS.litu.avaj wen(nltnirp.tuo.metsyS
··`[x.````?10xx][x.````?10xx]r··e···a b c d e f g h i·····}}
··········;>maertsoi<edulcni#p·h···=b c d e f g h i·········
····;s gnirts::dts{)(niam tni····v<   o<Ook. Ook! Ook! Ook.·
···};s<<tuoc::dts;s>>nic::dts···o>i:1+?/;][gnirtStupnI@tnirP

2

Octave / Matlab, เพิ่ม 23 ตัวอักษร

printf(
    input('','s'))

เราจะได้ C มาหรือไม่ : D

ตอนนี้กริดคือ:

····························································
···········i········a·······································
··········?pio;·····l·······································
··········,u········e·······································
··········.t········r·······································
···········s········t·······································
··········· ··printf(·······································
···········g··    input('','s'))····························
···········e·····n··r·······································
········write(read-host)····································
···········s········m·······································
····················p·······································
····················t·····················r·················
····················(·······································
····················)·······································
····················)·······································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
····························································
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.