![](https://img-blog.csdnimg.cn/20191011134229826.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
poj
0k-ok
这个作者很懒,什么都没留下…
展开
-
poj----取石子游戏(威佐夫博奕)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?Description有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最后...原创 2019-10-20 22:29:20 · 159 阅读 · 0 评论 -
poj----Round and Round We Go(大数)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?DescriptionA cyclic number is an integer n digits in length which, when multiplied by any integer from 1 to n, yields a"cycle"of the digits of the ori...原创 2019-10-20 19:28:55 · 162 阅读 · 0 评论 -
poj----To the Max(最大子矩阵)
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located...原创 2019-10-20 18:18:33 · 328 阅读 · 0 评论 -
poj----Color Me Less
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?DescriptionA color reduction is a mapping from a set of discrete colors to a smaller one. The solution to this problem requires that you perform just ...原创 2019-10-20 17:42:25 · 138 阅读 · 0 评论 -
poj----Bode Plot
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?DescriptionConsider the AC circuit below. We will assume that the circuit is in steady-state. Thus, the voltage at nodes 1 and 2 are given by v1= VS...原创 2019-10-20 17:08:18 · 262 阅读 · 0 评论 -
poj----Parliament
一场游戏一场空,最终最初都由我掌控,好像一身从容,不曾有狼狈伤痛,可深夜一个人该如何相拥?DescriptionNew convocation of The Fool Land's Parliament consists of N delegates. According to the present regulation delegates should be divided into...原创 2019-10-18 22:02:55 · 135 阅读 · 0 评论 -
Joseph(约瑟夫环问题)
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。The Joseph's problem is notoriously known. For those who are not familiar with the original problem: from among n people, numbered 1, 2, . . ., n, standing in circle every ...原创 2019-08-21 18:42:42 · 262 阅读 · 0 评论 -
Edge Detection(“跳跃式编码”)
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionIONU Satellite Imaging, Inc. records and stores very large images using run length encoding. You are to write a program that reads a compressed image, finds th...原创 2019-08-21 18:09:19 · 313 阅读 · 0 评论 -
Maya Calendar
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionDuring his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that ...原创 2019-08-21 16:47:55 · 431 阅读 · 0 评论 -
DNA Sorting(逆序数,字符串排序)
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter s...原创 2019-08-21 13:38:50 · 518 阅读 · 0 评论 -
I Think I Need a Houseboat
你的忏悔或许会让你心安,但未必别人如此。DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana ...原创 2019-08-18 19:35:01 · 99 阅读 · 0 评论 -
Counterfeit Dollar
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionSally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and s...原创 2019-08-23 17:47:00 · 79 阅读 · 0 评论 -
Packets(贪心+数学)
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionA factory produces products packed in square packets of the same height h and of the sizes 1*1, 2*2, 3*3, 4*4, 5*5, 6*6. These products are always delivered to...原创 2019-08-23 19:49:14 · 163 阅读 · 0 评论 -
Communication System(动规or贪心)
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionWe have received an order from Pizoor Communications Inc. for a special communication system. The system consists of several devices. For each device, we are f...原创 2019-08-23 20:44:45 · 306 阅读 · 0 评论 -
Web Navigation
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionStandard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features is to use two stacks ...原创 2019-08-25 07:38:17 · 210 阅读 · 0 评论 -
Biorhythms(中国剩余定理)
妙笔难书一纸愁肠,苍白的誓言,终究抵不过岁月的遗忘。DescriptionSome people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and in...原创 2019-08-21 12:04:14 · 143 阅读 · 0 评论 -
Hangover
你的忏悔或许会让你心安,但未必别人如此。DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards...原创 2019-08-18 19:13:09 · 98 阅读 · 0 评论