摘要: #include#include#include#include#include#define maxn 500000using namespace std;int dp[1001000][20];int to[maxn*2],be[maxn*2],ne[2*maxn],e;int deep[max... 阅读全文
posted @ 2016-12-24 17:14 Drinkwater_cnyali 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int heap[100000],len;void up(){ int k=len; while(k>1){ if(heap[k]>1])swap(heap[k],heap[k>>1]); k... 阅读全文
posted @ 2016-12-24 11:16 Drinkwater_cnyali 阅读(572) 评论(0) 推荐(0) 编辑