Fibonacci Poem

Fibonacci Poem

这项任务的灵感来源于以下Brian Bilston的Facebookpost

poem

用"\n "将给定的文本分割成多行,每行包含的字数等于当前Fibonacci number

这里有一些说明:

  • 斐波那契数列从0,1开始,但是结果字符串应该只包括非空行;
  • 如果当前行没有足够的字数 - 用"_"补充到适当的长度;
  • 标点符号被视为上一个或下一个单词的一部分。...
You should be an authorized user in order to see the full description and start solving this mission.