上一页 1 2 3 4 5 6 7 8 ··· 29 下一页
摘要:Problem DescriptionYou are given a tree with N nodes which are numbered by integers 1..N. Each node is associated with an integer as the weight.Your t... 阅读全文
posted @ 2014-09-18 14:55 Oyking 阅读(870) 评论(9) 推荐(1) 编辑
摘要:Problem DescriptionAfter eating food from Chernobyl, DRD got a super power: he could clone himself right now! He used this power for several times. He... 阅读全文
posted @ 2014-09-14 11:51 Oyking 阅读(948) 评论(0) 推荐(0) 编辑
摘要:OI/ACM中经常要用到小数来解决问题(概率、计算几何等),但是小数在计算机中的存储方式是浮点数而不是我们在作数学运算中的数,有精度的限制。 以下以GUN C++为准,其他语言(或编译器)也差不了多少。本文竞赛向。一、基础篇1、一般浮点数使用double,范围为大概为-10^308 ~ 10^... 阅读全文
posted @ 2014-09-06 22:39 Oyking 阅读(1425) 评论(1) 推荐(1) 编辑
摘要:Dr. X is a biologist, who likes rabbits very much and can do everything for them. 2012 is coming, and Dr. X wants to take some rabbits to Noah's Ark, ... 阅读全文
posted @ 2014-09-04 18:20 Oyking 阅读(165) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4069Problem DescriptionToday we play a squigglysudoku, The objective is to fill a 9*9 grid with digits ... 阅读全文
posted @ 2014-08-31 00:00 Oyking 阅读(170) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4064Problem DescriptionCarcassonneis a tile-based board game for two to five players.Square tiles are p... 阅读全文
posted @ 2014-08-30 21:58 Oyking 阅读(212) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4063DescriptionYou are playing a flying game.In the game, player controls an aircraft in a 2D-space.The... 阅读全文
posted @ 2014-08-30 18:42 Oyking 阅读(190) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2993Problem DescriptionConsider a simple sequence which only contains positive integers as a1, a2 ... a... 阅读全文
posted @ 2014-08-27 00:13 Oyking 阅读(185) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4031Problem DescriptionToday is the 10th Annual of “September 11 attacks”, the Al Qaeda is about to att... 阅读全文
posted @ 2014-08-26 18:43 Oyking 阅读(405) 评论(0) 推荐(0) 编辑
摘要:DescriptionP教授要去看奥运,但是他舍不下他的玩具,于是他决定把所有的玩具运到北京。他使用自己的压缩器进行压缩,其可以将任意物品变成一堆,再放到一种特殊的一维容器中。P教授有编号为1...N的N件玩具,第i件玩具经过压缩后变成一维长度为Ci.为了方便整理,P教授要求在一个一维容器中的玩具编... 阅读全文
posted @ 2014-08-19 18:07 Oyking 阅读(386) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 29 下一页