摘要:
https://www.acwing.com/problem/content/97/ 看了一下感觉可以暴力做,踩了一些坑终于过了。 cpp include using namespace std; typedef long long ll; int cur; int set_ij(int u, in 阅读全文
摘要:
https://codeforc.es/gym/101982/ A Exam 很显然,要把大家做一样的优先认为大家都是对的,大家做不一样的认为自己是对的。最后假如对方有剩余的题是对的那么就要从中减去。 cpp include using namespace std; int k; char s[10 阅读全文
摘要:
```cpp include using namespace std; typedef long long ll; const int N = 9; const int MaxN = N N N + 10; const int MaxM = N N 4 + 10; const int maxnode 阅读全文
摘要:
实际上并不是主席树……只是有点像。 cpp include using namespace std; typedef long long ll; define mid (l+r 1) //离散化之后的值是大一点的 const int MAXN = 200000 + 5; int T[MAXN], t 阅读全文
摘要:
一种可以在区间上找名次的数据结构。 cpp include using namespace std; typedef long long ll; namespace Treap { define ls ch[id][0] define rs ch[id][1] const int INF = 214 阅读全文