![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hash
~无相~
这个作者很懒,什么都没留下…
展开
-
Matrix Matcher
思路代码#include <cstring>#include <iostream>#include <algorithm>using namespace std;typedef unsigned long long ull;const int N=1010;char s[N][N];char p[N][N];ull _hash1[N][N]...原创 2020-03-16 14:26:29 · 87 阅读 · 0 评论 -
friends/三个好朋友
思路代码#include <cstring>#include <iostream>#include <algorithm>using namespace std;typedef unsigned long long ull;const int N=2e6 + 10;char s[N];ull _hash[N];ull base=23333;...原创 2020-03-16 13:23:58 · 198 阅读 · 0 评论 -
F. Isomorphic Strings
思路代码#include <bits/stdc++.h>using namespace std;typedef long long ll;const int M=200005;const ll MOD=1e9+7;char s[M];ll px[M],X=107,h[26][M];int main(){ int n,m; scanf("%d%d%s...原创 2020-03-14 11:58:40 · 132 阅读 · 0 评论