6780: BZOJ2780:[Spoj]8093 Sevenk Love Oimaster
Memory Limit:128 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Oimaster and sevenk love each other.
输入格式
There are two integers in the first line, the number of strings n and the number of questions q. And n lines follow, each of them is a string describing oimaster's online talk. And q lines follow, each of them is a question. n<=10000, q<=60000 the total length of n strings<=100000, the total length of q question strings<=360000
输出格式
For each question, output the answer in one line.样例输入
3 3 abcabcabc aaa aafe abc a ca
样例输出
1 3 1
提示
没有写明提示
题目来源
没有写明来源