上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: #1150 : 基站选址时间限制:2000ms单点时限:1000ms内存限制:256MB描述需要在一个N × M的网格中建立一个通讯基站,通讯基站仅必须建立在格点上。网格中有A个用户,每个用户的通讯代价是用户到基站欧几里得距离的平方。网格中还有B个通讯公司,维护基站的代价是基站到最近的一个通讯公司的... 阅读全文
posted @ 2015-05-02 23:17 哈特13 阅读(245) 评论(0) 推荐(0)
摘要: 感谢原文作者,转自:http://www.cnblogs.com/heaad/archive/2010/12/20/1911614.html一. 爬山算法 ( Hill Climbing ) 介绍模拟退火前,先介绍爬山算法。爬山算法是一种简单的贪心搜索算法,该算法每次从当前解的临近解空间中选择一个最... 阅读全文
posted @ 2015-05-02 10:19 哈特13 阅读(258) 评论(0) 推荐(0)
摘要: Quad TilingTime Limit:1000MSMemory Limit:65536KTotal Submissions:3495Accepted:1539DescriptionTired of theTri Tilinggame finally, Michael turns to a mo... 阅读全文
posted @ 2015-05-02 00:50 哈特13 阅读(210) 评论(0) 推荐(0)
摘要: #1156 : 彩色的树时间限制:2000ms单点时限:1000ms内存限制:256MB描述给定一棵n个节点的树,节点编号为1, 2, …, n。树中有n - 1条边,任意两个节点间恰好有一条路径。这是一棵彩色的树,每个节点恰好可以染一种颜色。初始时,所有节点的颜色都为0。现在需要实现两种操作:1.... 阅读全文
posted @ 2015-05-01 22:09 哈特13 阅读(127) 评论(0) 推荐(0)
摘要: CodeTime Limit:1000MSMemory Limit:30000KTotal Submissions:8566Accepted:4069DescriptionTransmitting and memorizing information is a task that requires ... 阅读全文
posted @ 2015-05-01 21:42 哈特13 阅读(136) 评论(0) 推荐(0)
摘要: 题目3 : 质数相关时间限制:2000ms单点时限:1000ms内存限制:256MB描述两个数a和 b (a#include #include #include #include #include #include #include #include #include #include #inclu... 阅读全文
posted @ 2015-04-29 23:09 哈特13 阅读(148) 评论(0) 推荐(0)
摘要: 转自:http://blog.csdn.net/tyger/article/details/4480029计算几何题的特点与做题要领:1.大部分不会很难,少部分题目思路很巧妙2.做计算几何题目,模板很重要,模板必须高度可靠。3.要注意代码的组织,因为计算几何的题目很容易上两百行代码,里面大部分是模板... 阅读全文
posted @ 2015-04-29 19:45 哈特13 阅读(156) 评论(0) 推荐(0)
摘要: 4423: NecklaceDescriptionbaihacker bought a necklace for his wife on their wedding anniversary.A necklace with N pearls can be treated as a circle wit... 阅读全文
posted @ 2015-04-29 15:00 哈特13 阅读(235) 评论(0) 推荐(0)
摘要: Magic BraceletTime Limit:2000MSMemory Limit:131072KTotal Submissions:4727Accepted:1533DescriptionGinny’s birthday is coming soon. Harry Potter is prep... 阅读全文
posted @ 2015-04-29 14:44 哈特13 阅读(262) 评论(0) 推荐(0)
摘要: 基本步骤:1、新建Java工程,File>New>Project>Web>Dynamic Web Project,并将工程命名为:Struts2_Demo2、导入struts2的重要jar包到WebContent>lib下3、新建web.xml,右击WEB-INF>New>Other>XML>XML... 阅读全文
posted @ 2015-04-28 21:28 哈特13 阅读(427) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页