ACM 左偏树(模板)

#include <iostream> using namespace std; struct Node { int Dat; int dist; Node *pLeft,*pRight; }; void Swap(Node * &pA,Node * &pB) { Node *pt=pA; pA=pB; pB=pt; } int Dist(N
相关文章
相关标签/搜索