题目描述
输出格式
For each round of a different form, output a single line. The ith line must contain the correct answer
to Tarzan’s question in the ith round of type 2.
样例输入 #1
3 a bc abc 3 1 abca 2 1 2 3
样例输出 #1
1 1
提示
The only word Tarzan has shown is abca. The answer to the first
question is, of course, 1 because the word a is a substring of the word abca. The answer to the second question
is also 1 because the word abc is a substring of the word abca.
来源
COCI 2014-2015 CONTEST #5