ctsc2006专题

1152: [CTSC2006]歌唱王国Singleland

这两题很类似,看看上面题解即可 c++代码如下: #include<bits/stdc++.h>#define rep(i,x,y) for(register int i = x ;i <= y;++ i)#define repd(i,x,y) for(register int i = x ; i >= y;-- i)using namespace std;typedef long