摘要:
DP第二题,做过很多次了,这次没用记忆化搜索,而是先排序之后for循环进行动态规划.代码如下:#include <cstdlib>#include <cstring>#include <cstdio>#include <cmath>#include <algorithm>using namespace std;int N;struct Point { double x, y; void read() { scanf("%lf %lf", &x, &y); }}p[105];int main() { 阅读全文
posted @ 2013-01-05 18:39
沐阳
阅读(213)
评论(0)
推荐(0)