摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2427View Code 1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cstdio> 5 #define MAX 20001 6 using namespace std; 7 8 struct node 9 { 10 int li; 11 int num; 12 }st[MAX*4];/ 阅读全文
posted @ 2012-08-27 22:14 琳&leen 阅读(128) 评论(0) 推荐(0) 编辑
摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2430题意:大概是有n个柱子,每个的长度是1到h[i]任意一个整数,用一根绳子把这些柱子的顶端都连起来,使得绳子长度最长。View Code 1 #include <iostream> 2 #include<math.h> 3 #include<cstdio> 4 #include<cstring> 5 using namespace std; 6 int main() 7 { 8 double 阅读全文
posted @ 2012-08-27 19:46 琳&leen 阅读(115) 评论(0) 推荐(0) 编辑