#Lutece1980. 好吃不过饺子
好吃不过饺子
Migrated from Lutece 1980 好吃不过饺子
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给出两个长度分别为和的数组和,问有多少个起点满足
Input
第一行两个正整数;
第二行n个整数,为数组;
第三行m个整数,为数组。
Output
第一行输出一个整数表示有多少个起点满足条件; 第二行按从小到大的顺序输出这些起点,用空格隔开。
Samples
5 3
1 4 6 9 11
5 2 0
2
0 2
Note
好吃不过饺子,可爱不过老子。
——LargeDumpling
Resources
2018 UESTC ACM Training for Search Algorithm and String