摘要:
题目链接 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define N 1001 8 #define M 20000001 9 #define INF 0x3f3f3f3f 10 struct node 11 { 12 int u,v,next; 13 }edge[M]; 14 int first[N],DFN[N],Belong[N],stack[N],Low[N],cnum[N]; 15 int in[N],d[N]; 16 int qu... 阅读全文
posted @ 2013-09-17 11:52
Naix_x
阅读(968)
评论(0)
推荐(0)
摘要:
表示第一次在div1,我要记录一下...木有挂0,第一题不怎么难的,读题读了20分钟,又想了20分钟,时间有点长,然后各种小心,然后得了140分....后两个题,根本木有看,貌似做出来的也不多。。。涨了6分。。。这。。。我的成绩很稳定,一直都是一个题。。。贴了代码,填充一下内容。。。第一题:class TheTree{public: int maximumDiameter(vector cnt) { int i,j,n,temp,maxz; int p[101]; n = 0; maxz = 0; for(it... 阅读全文
posted @ 2013-09-17 10:56
Naix_x
阅读(230)
评论(0)
推荐(0)
摘要:
题目链接这其实入门题,不过,我写了好一会,还是一直wa,图样。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 using namespace std;11 int dp[11][11],sum[11];12 int judge(int x)13 {14 int num[11],i,j,n = 0,pre;15 int ans = 0;16 if(x == 0)17 return 1;18 ... 阅读全文
posted @ 2013-09-17 08:54
Naix_x
阅读(202)
评论(0)
推荐(0)

浙公网安备 33010602011771号