版本比较
10.3考试t3(similarity)solution
正文
增加 2 行删除 2 行
31 行未改动32333435363738394022 行未改动63646566676869707167 行未改动31 行未改动#define el cout << '\n'#define lowbit(x) (x & (-x))const int ranmod = 1e7;#define random ((rand() * rand()) % ranmod)#define AC return#define AK return 0#define YS cout << "YES"#define NO cout << "NO"#define Ys cout << "Yes"22 行未改动const int mod = 95225987, maxn = 5 * 1e5 + 18;const usd int p = 2591;string s, s1;int n;usd int hsh[maxn][16], hsh1[maxn][16], nxt[maxn][16];map <usd int, long> cnt;usd int ksm(usd int a, usd int b) {67 行未改动31 行未改动32333435363738394022 行未改动63646566676869707167 行未改动31 行未改动#define el cout << '\n'#define lowbit(x) (x & (-x))const int ranmod = 1e7;#define random ((rand() * rand()) % ranmod)#define AC return#define AK return 0#define YS cout << "YES"#define NO cout << "NO"#define Ys cout << "Yes"22 行未改动const int mod = 95225987, maxn = 5 * 1e5 + 18;const usd int p = 2591;string s, s1;int n;usd int hsh[maxn][16], hsh1[maxn][16], nxt[maxn][16];map <usd int, long> cnt;usd int ksm(usd int a, usd int b) {67 行未改动