NWU_ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年4月2日

摘要: 1 #include <bits/stdc++.h> 2 #define _xx ios_base::sync_with_stdio(0);cin.tie(0); 3 using namespace std; 4 typedef long long ll; 5 ll dp[505][505] = { 阅读全文
posted @ 2017-04-02 20:24 NWU_ACM 阅读(121) 评论(0) 推荐(0) 编辑

摘要: 1 #include<stdio.h> 2 int map[100005],aggregate[100005]; 3 int father(int x) 4 { 5 while(x!=aggregate[x]) 6 { 7 x=father(aggregate[x]); 8 } 9 return x 阅读全文
posted @ 2017-04-02 19:22 NWU_ACM 阅读(76) 评论(0) 推荐(0) 编辑