摘要: 题意:思路:#include#include#include#include#include#include#include#include#includeusing namespace std;const int MAXN=2000+5;const int MAX=50+5;const int I... 阅读全文
posted @ 2015-06-04 20:15 sola94 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#include#include#include#include#include#include#includeusing namespace std;map a;const int INF=1000000000;int main(){ ... 阅读全文
posted @ 2015-06-04 20:11 sola94 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#includeusing namespace std;double dp[3][300];int main(){ int n,m; int l,r; int i,j,k; double ans; int te... 阅读全文
posted @ 2015-06-04 20:09 sola94 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#include#include#include#include#include#includeusing namespace std;const int MAXN=10+5;int n,m,Q,ans;int mat[MAXN][MAXN... 阅读全文
posted @ 2015-06-04 20:07 sola94 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include#include#include#include#include#include#includeusing namespace std;const int MAXN=100000+5;int p[MAXN],u[MAXN],v[MAXN],vis[MAXN],w[MAXN... 阅读全文
posted @ 2015-06-04 20:04 sola94 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题意:思路:#include #include #include #include using namespace std;int fa[150];int fin(int x){ return fa[x]==x?x:fin(fa[x]);}void unionn(int x,int y){ ... 阅读全文
posted @ 2015-06-04 20:03 sola94 阅读(130) 评论(0) 推荐(0) 编辑