甲苯

「TJOI2019」甲苯先生的滚榜

╄→гoц情女王★ 提交于 2020-01-23 22:35:33
「TJOI2019」甲苯先生的滚榜 传送门 双关键字感觉不太好搞?直接压成一个 long long 就好了呗。 然后就是平衡树板子了。 参考代码: #include <algorithm> #include <cstring> #include <cstdlib> #include <cstdio> #define rg register #define file(x) freopen(x".in", "r", stdin), freopen(x".out", "w", stdout) #define LL long long using namespace std; template < class T > inline void read(T& s) { s = 0; int f = 0; char c = getchar(); while ('0' > c || c > '9') f |= c == '-', c = getchar(); while ('0' <= c && c <= '9') s = s * 10 + c - 48, c = getchar(); s = f ? -s : s; } typedef unsigned int ui; ui seed, last = 7; inline ui randNum(const ui m) { seed = seed