编写一个函数或程序,以两个单词作为输入并输出流行的英语舌扭曲的变体“如果土拨鼠可以夹木头,那么土拨鼠可以夹多少木头?”。
输出将使用第一个单词四次
- 多少
wood
将一wood
盘盘如果一个wood
吸盘可以扔掉wood
?
第二个单词四次
- 多少木头木
chuck
chuck
若木chuck
能chuck
有木有?
其他输入的其余输出相同。
How much
木材would a
土拨鼠夹头
if a
土拨鼠could
夹头木
?
输入和输出可以采用您的语言可以合理识别为处理文本字符串的任何格式。输出必须完全采用指示的格式,包括大写,空格和缺少空格以及结尾的问号。可选的尾随换行符是可接受的。
理想情况下,您的代码将处理包含任何可打印ASCII字符的输入。但是,允许将输入限制为可打印ASCII的合理子集。只需在您的答案中指出。处理较大的字符集当然很好。
输入/输出对示例:
"wood", "chuck"
"How much wood would a woodchuck chuck if a woodchuck could chuck wood?"
"ground", "hog"
"How much ground would a groundhog hog if a groundhog could hog ground?"
"bar", "keep"
"How much bar would a barkeep keep if a barkeep could keep bar?"
"money", "belt"
"How much money would a moneybelt belt if a moneybelt could belt money?"
"rain", "fall"
"How much rain would a rainfall fall if a rainfall could fall rain?"
"hair", "cut"
"How much hair would a haircut cut if a haircut could cut hair?"
"green", "house"
"How much green would a greenhouse house if a greenhouse could house green?"
"jabber", "wock"
"How much jabber would a jabberwock wock if a jabberwock could wock jabber?"
"pine", "apple"
"How much pine would a pineapple apple if a pineapple could apple pine?"
"Rob", "Lowe"
"How much Rob would a RobLowe Lowe if a RobLowe could Lowe Rob?"
"code", "golf"
"How much code would a codegolf golf if a codegolf could golf code?"
"fish", ""
"How much fish would a fish if a fish could fish?"
"", "fish"
"How much would a fish fish if a fish could fish ?"
"", ""
"How much would a if a could ?"
" ", " "
"How much would a if a could ?"
"would a", "how much"
"How much would a would a would ahow much how much if a would ahow much could how much would a?"
这是代码高尔夫球,因此最少的字节获胜。即使所有其他语言都可以用更少的字节数来回答,也可以使用所有语言来回答。
"", ""
是没有的:p