Find longest sequence of words such that the last letter of corresponding is equal to the first of next

前端 未结 0 1637
傲寒
傲寒 2020-12-09 06:35

There are number of words (city names) on standard input and then city names separated by \'\\n\'. On standard output program needs to write length of the longest sequence a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题