摘要: #include using namespace std; int fa[10005],n,m,type,a,b; int father(int x) { if (fa[x] == x) return x; fa[x] = father(fa[x]); return fa[x]; } int main() { scanf("%d %d",&n,&m); for (int i = 1 ... 阅读全文
posted @ 2017-11-30 21:56 surpassion 阅读(200) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; char ch; int a1,b1,a2[1000005],b2[1000005],cnt = 1; int main() { cin>>ch; int x = 0 , y = 0; while (ch != 'E') { if (ch == 'W') a1 ++ , x ++; else b1 ++ , y ++; ... 阅读全文
posted @ 2017-11-30 18:47 surpassion 阅读(244) 评论(0) 推荐(0) 编辑