版本比较
mmxiii
个人介绍
增加 0 行删除 56 行
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556[P1503 鬼子进村](https://www.luogu.com.cn/problem/P1503) 你写了一半,记得做。```cpp#include<iostream>#include<ctime>#include<cstdlib>using namespace std;const int INF=0x7fffffff;const int maxm=5e4+5;int n,m;struct Treap{ int key; int pri; int sz; int cnt; int l,r;}tree[maxm];int tot=0,root=0;void newnode(int &id,int key){ id=++tot; tree[id]={key,rand(),sz,cnt,l,r}; return;}void pushup(int id){ int l=tree[id].l,r=tree[id].r; tree[id].sz=tree[l].sz+tree[r].szs+tree[id].cnt; return;}void zig(int &id){ int l=tree[id].l; tree[id].l=tree[l].r; tree[l].r=id; pushup(id); pushup(l); id=l; return;}void zag(int &id){ int r=tree[id].r; tree[id].r=tree[r].l; tree[r].l=id; pushup(id); pushup(r); id=r; return;}void insert(int &id,int key){ }int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); srand(time(nullptr)); tree[0].pri=INF; return 0;}```奖项
增加 2 行删除 0 行
122026 CSP-J 三等奖2026 CSP-S 三等奖