![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟退火
wwt9b15bs
这个作者很懒,什么都没留下…
展开
-
【题解】洛谷P1337[JSOI2004]平衡点/吊打XXX 模拟退火
题目链接 跟着大佬博客学模拟退火,顺带把这题做(抄)了。 #include<cstdio> #include<cstdlib> #include<ctime> #include<cmath> const int N=1e3+10; int n; const double MAX_TIME=0.777; double ans=1e18,ansx,...原创 2018-10-09 21:31:59 · 290 阅读 · 0 评论 -
【题解】poj2420 A Star not a Tree? 模拟退火
题目链接 写个srand((unsigned)time(0))还RE了,怒写一发八位质数AC(逃 #include<cstdio> #include<cmath> #include<ctime> #include<cstdlib> int n; double ansx,ansy,ans; struct node{ double x,y; }p...原创 2018-10-09 22:53:06 · 222 阅读 · 0 评论