{"trustable":false,"sections":[{"title":"","value":{"format":"PLAIN","content":"求模式串在待匹配串的出现次数。11"}},{"title":"Input","value":{"format":"PLAIN","content":"第一行是一个数字T,表明测试数据组数。\n之后每组数据都有两行:第一行为模式串,长度不大于10000;第二行为待匹配串,长度不大于1000000。所有字符串只由大写字母组成。"}},{"title":"Output","value":{"format":"PLAIN","content":"每组数据输出一行结果。"}},{"title":"Sample Input","value":{"format":"PLAIN","content":"4\nABCD\nABCD\nABA\nABABABA\nCDCDCDC\nCDC\nKMP\nNAIVE\n"}},{"title":"Sample Output","value":{"format":"PLAIN","content":"1\n3\n0\n0"}}]}