3 
 
        
      
      เมื่อชีวิตให้มะนาวคุณต้องทำน้ำมะนาว
      
  ท้าทาย คุณจะได้รับการป้อนข้อมูลสตริงทุกคำ"Lemon"จะพบว่ามันควรจะเปลี่ยนไป"Lemonade" แต่a , dและeจะต้องยืมมาจากที่อื่นในประโยค ตัวอย่าง อินพุตตัวอย่าง: ฉันพบมะนาวเมื่อตอนเป็นเด็ก ตัวอย่างผลลัพธ์: ฉันทำน้ำมะนาวเมื่อฉันยังเด็ก The Lemonadeสร้างขึ้นโดยการขโมยตัวอักษรยกต่อไปนี้จากต้นฉบับ ฉัน Foun dน้ำมะนาว WH E n ผมเป็นเด็ก นี่เป็นเพียงตัวอย่างหนึ่งที่เป็นไปได้คือ "e", "d" และ "a" ซึ่งอาจถูกนำมาจากที่ใดก็ได้ ( ยกเว้นจากคำว่าlemonแน่นอน ) ความคิดเห็น •หากมีไม่เพียงพอe, aหรือds คุณส่งออกสิ่งที่สามารถทำด้วยตัวอักษรจะต้องได้รับ ตัวอย่างเช่นการป้อนข้อมูลbdblemonจะส่งออกbblemond • lemonข้อความอาจไม่ได้เป็นแบบสแตนด์อโลน (เว้นวรรคในแต่ละด้าน) ตัวอย่างเช่นคุณอาจมีคำlemonsบางคำในอินพุตและเอาต์พุตควรเป็นlemonades •อินพุตอาจมีจำนวนlemons ใด ๆแม้แต่ 0 lemonวินาที (ซึ่งในกรณีนี้เอาต์พุตจะเหมือนกับอินพุต) •คุณสามารถทำน้ำมะนาวของคุณด้วยตัวอักษรตัวพิมพ์ใหญ่และตัวพิมพ์เล็กตัวอย่างเช่นleMonอาจกลายเป็นleMonadeและการadeยืมสามารถเป็นกรณีใด ๆ (ดังนั้นมันอาจจะกลายเป็นleMonADe) กรณีของจดหมายที่คุณยืมต้องอยู่ในสภาพเดิมเมื่อคุณยืม (ตัวอย่างอินพุต -> เอาต์พุตhe …
      
        
          
                   21
                
        
        
          
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    parsing 
                  
                    internet 
                  
                    stack-exchange-api 
                  
                    code-challenge 
                  
                    kolmogorov-complexity 
                  
                    restricted-source 
                  
                    brain-flak 
                  
                    python 
                  
                    logic 
                  
                    pyth 
                  
                    code-golf 
                  
                    string 
                  
                    search 
                  
                    optimized-output 
                  
                    code-golf 
                  
                    tips 
                  
                    language-design 
                  
                    golfing-language 
                  
                    code-golf 
                  
                    tips 
                  
                    language-design 
                  
                    code-golf 
                  
                    number 
                  
                    sorting 
                  
                    pi 
                  
                    code-golf 
                  
                    math 
                  
                    number 
                  
                    code-golf 
                  
                    string 
                  
                    balanced-string 
                  
                    classification 
                  
                    brain-flak 
                  
                    code-golf 
                  
                    math 
                  
                    number-theory 
                  
                    decision-problem 
                  
                    code-golf 
                  
                    tips 
                  
                    code-golf 
                  
                    number 
                  
                    sequence 
                  
                    code-golf 
                  
                    balanced-string 
                  
                    brain-flak 
                  
                    code-golf 
                  
                    math 
                  
                    sequence 
                  
                    arithmetic 
                  
                    fibonacci 
                  
                    code-golf 
                  
                    math 
                  
                    parsing 
                  
                    code-golf 
                  
                    string 
                  
                    keyboard 
                  
                    code-golf 
                  
                    code-golf 
                  
                    string 
                  
                    source-layout 
                  
                    whitespace 
                  
                    code-golf 
                  
                    math 
                  
                    rational-numbers 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    math 
                  
                    sequence 
                  
                    code-golf 
                  
                    number 
                  
                    floating-point 
                  
                    code-golf 
                  
                    string 
                  
                    decision-problem 
                  
                    subsequence 
                  
                    code-golf 
                  
                    string 
                  
                    kolmogorov-complexity 
                  
                    code-golf 
                  
                    string 
                  
                    permutations 
                  
                    balanced-string 
                  
                    brain-flak 
                  
                    code-golf 
                  
                    string 
                  
                    math 
                  
                    number 
                  
                    code-golf 
                  
                    string 
                  
                    primes 
                  
                    cipher 
                  
                    code-golf 
                  
                    string 
                  
                    ascii-art 
                  
                    chemistry 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    grid 
                  
                    counting 
                  
                    code-golf 
                  
                    math 
                  
                    arithmetic 
                  
                    integer 
                  
                    code-golf 
                  
                    number 
                  
                    kolmogorov-complexity 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    kolmogorov-complexity 
                  
                    sequence 
                  
                    metagolf 
                  
                    brain-flak 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    kolmogorov-complexity 
                  
                    code-golf 
                  
                    string 
                  
                    whitespace