- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 HOJ 2385 Cube Stacking
Farmer John and Betsy are playing a game with N (1 <= N <= 30,000)identical cubes labeled 1 through N. They start with N stacks, each containing a single cube. Farmer John asks Betsy to perform P (1<=
2013-04-09 20:49:11
434
原创 HOJ 2033 Ubiquitous Religions
There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your university be
2013-04-09 19:53:10
383
原创 HOJ 2654 Printer Queue
The only printer in the computer science students' union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to get
2013-04-09 18:54:53
540
原创 HOJ 1031 Piggy-Bank
Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea behind is simple
2013-04-09 14:40:23
524
转载 HOJ 1447 Compromise
In a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries (maybe except
2013-04-07 20:34:41
436
原创 HOJ 2196 Job Scheduling by Open Bidding
Your team is setting up a computing resource devoted to batch processing of compute-bound jobs. In addition, you have decided to use static scheduling for each period of time. Naturally, you wish to m
2013-04-07 18:54:15
475
原创 HOJ 1019 Grandpa's Other Estate
From our previous contest, we know that Kamran the Believer inherited many of his grandpa's belongings. Apparently, his grandpa had been a mathematician in his life with interests in puzzle solving, s
2013-04-02 22:25:19
622
转载 HOJ 1016 Joseph's problem I
先说说经典的Joseph问题吧,说有n个要被处决的人(编号0~(n-1)),从0开始报数,报到(m-1)的会被杀掉,剩下的人继续从0开始报数,如此下去最后剩的一个人会存活下来。说Joseph发现了这个规律而且把他透露了出来,现在假如你在这n个人里面,你会选择几号位置站下。 很显然你会选择能活下来的那个位置,所以问题就是如何得到这个位置。 首先想到的是模拟(至少我笨脑子是这么想的
2013-03-28 20:52:27
419
原创 HOJ 1015 Nearly prime numbers
Nearly prime number is an integer positive number for which it is possible to find such primes P1 and P2 that given number is equal toP1*P2. There is given a sequence on N integer positive numbers
2013-03-27 21:48:20
492
原创 HDOJ 4509 湫湫系列故事——减肥记II
Problem Description 虽然制定了减肥食谱,但是湫湫显然克制不住吃货的本能,根本没有按照食谱行动!于是,结果显而易见… 但是没有什么能难倒高智商美女湫湫的,她决定另寻对策——吃没关系,咱吃进去再运动运动消耗掉不就好了? 湫湫在内心咆哮:“我真是天才啊~\(≧▽≦)/~” 可是,大家要知道,过年回家多忙啊——帮忙家里做大扫除,看电影,看小说,高中同
2013-03-24 07:48:19
752
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人