摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4648求连续的一段和对m取余为0 若s[j]和s[i]对M的余数都相同 则相见就满足要求 找个最长的 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define LL long long 8 #define N 100010 9 #define INF 0xfffffff10 LL s[N];11 int a[N],d1[N],d2[N];12 int main()13 {14 int... 阅读全文
posted @ 2013-08-07 09:18 _雨 阅读(198) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4647很扯的一题 将每条边的一半权值分给它所连的两个结点 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 double a[100010]; 8 int main() 9 {10 int i,j,n,m,u,v;11 while(cin>>n>>m)12 {13 for(i = 1; i >a[i];15 double s;16 ... 阅读全文
posted @ 2013-08-07 09:16 _雨 阅读(149) 评论(0) 推荐(0) 编辑