摘要:
fhq Treap #include <bits/stdc++.h> using namespace std; #define rg register #define I inline #define gc getchar #define rep(i, a, b) for(int i = a; i 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for(int i = a; i <= b; ++i) #define per(i, a, b) for(int i = a; i >= b; --i) #defin 阅读全文
摘要:
情报传递 两个人碰到等于没碰到(灵魂互换),只需要统计两个方向能在规定之间内走完的人数即可。 #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int a[2][N]; int tail[2]; int main 阅读全文