摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=3932 找一个位置使距离最远的点的距离最小; 上模拟退火; 每次向距离最远的点移动,注意判断一下距离最远的点距离为0的情况。 代码如下: 阅读全文
posted @ 2018-10-31 22:28 Zinn 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2899 模拟退火; 怎么也过不了,竟然是忘了写 lst = tmp ... 还是挺容易A的。 代码如下: 阅读全文
posted @ 2018-10-31 21:45 Zinn 阅读(166) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-10-31 21:24 Zinn 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-10-31 20:26 Zinn 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.luogu.org/record/show?rid=12702916 https://www.lydsy.com/JudgeOnline/problem.php?id=1168 一眼不可做...即使数据范围很小... #include<iostream> #includ 阅读全文
posted @ 2018-10-31 14:54 Zinn 阅读(240) 评论(0) 推荐(0) 编辑