摘要:
``` #include #include #include #include #include using namespace std; int read() { int res=0,ch,flag=0; if((ch=getchar())=='-') //判断正负 flag=1; else if(ch>='0'&&ch='0'&&ch0) f[u]+=f[v]; } } bool vis[N] 阅读全文
摘要:
``` #include #include #include #include using namespace std; const int N=2010; int a[N],f[N][N]; int read() { int res=0,ch,flag=0; if((ch=getchar())=='-') //判断正负 flag=1; else if(ch>='0'&&ch='0'&&ch<=' 阅读全文
摘要:
一开始输出的必定为n,初始时,1~pos[n]都+1,只要tr[1].v 0,那么就说明,不存在位置大于等于pos[k]的炸弹 然后依次进行修改,处理1~q[n],如果tr[1].v include include include using namespace std; typedef long 阅读全文