摘要: 题目链接参考题解,解方程都解错。。和HDU3507 有点类似。其中还要运用换元,数学能力太弱了。 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 #define N 500001 5 long long dp[N],que[N],p[N],sum[N]; 6 int m; 7 double slope(int x,int y) 8 { 9 if(sum[x] == sum[y])10 {11 if(dp[x] > dp[y])12 return -1... 阅读全文
posted @ 2012-08-26 13:40 Naix_x 阅读(256) 评论(0) 推荐(0) 编辑