教育我们做Rabin-Karp的时候一定要把模数取大?还是上溢好了。

#include<cstdio>
#include<cstdlib>
using namespace std;
int main()  
{  
    puts("100000 13");
    for(int i=1;i<=100000;i++) putchar(rand()%26+'a');
    puts("");
    return 0;  
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-12-19
  • 2021-09-01
猜你喜欢
  • 2021-07-29
  • 2022-02-02
  • 2021-10-10
  • 2021-07-29
  • 2022-01-11
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案