2015年1月7日

【HDOJ】1107 武林

摘要: 简单模拟,题目数据太弱太弱了。 1 /* 1107 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 typedef str... 阅读全文

posted @ 2015-01-07 22:24 Bombe 阅读(301) 评论(0) 推荐(0)

【HDOJ】5017 Ellipsoid

摘要: 简单地模拟退火。 1 /* 5017 */ 2 #include 3 #include 4 #include 5 #include 6 7 #define INF 1e30 8 9 const double eps = 1e-8;10 const double next = 0.99;1... 阅读全文

posted @ 2015-01-07 20:37 Bombe 阅读(157) 评论(0) 推荐(0)

【HDOJ】1109 Run Away

摘要: 基础模拟退火。 1 /* poj 1379 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 #define MAXN 10... 阅读全文

posted @ 2015-01-07 18:51 Bombe 阅读(174) 评论(0) 推荐(0)

【HDOJ】2440 Watch out the Animal

摘要: 刚开始学随机算法,凸包+模拟退火。 1 /* 2440 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 #define M... 阅读全文

posted @ 2015-01-07 11:30 Bombe 阅读(165) 评论(0) 推荐(0)

导航