您的任务是编写一个程序,该程序打印从披头士乐队的歌曲“ Hey Jude”(©Sony / ATV Music Publishing LLC)的歌词中提取的四节经文:
Hey Jude, don't make it bad\n
Take a sad song and make it better\n
Remember to let her into your heart\n
Then you can start to make it better\n
\n
Hey Jude, don't be afraid\n
You were made to go out and get her\n
The minute you let her under your skin\n
Then you begin to make it better\n
\n
Hey Jude, don't let me down\n
You have found her, now go and get her\n
Remember to let her into your heart\n
Then you can start to make it better\n
\n
Hey Jude, don't make it bad\n
Take a sad song and make it better\n
Remember to let her under your skin\n
Then you'll begin to make it\n
\n
但
您可以用来构造这四节经文的唯一输入是此标记列表:
"Hey Jude, don't"
" make it bad"
" be afraid"
" let me down"
"Take a sad song and make it better"
"You"
" were made to go out"
" and get her"
" have found her, now go"
"Remember to"
"The minute you"
" let her"
" into your heart"
" under your skin"
"Then"
" you"
" can start"
"'ll"
" begin"
" to make it"
" better"
请注意,某些标记的前面有一个空格,并且引号不是标记的一部分。您可以自由使用任何格式的列表并重新排列令牌的顺序。
您生成的输出必须与上述四节完全匹配。请注意,\n
它用于换行符,并且在每节经文之后添加一个额外的换行符。您可以使用此文件(MD5:)4551829c84a370fc5e6eb1d5c854cbec
来检查您的输出。
您可以使用以下铁路图来理解经文的结构(每个元素代表一个记号):
以字节为单位的最短代码获胜。快乐打高尔夫球。