![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
POJ
文章平均质量分 80
Sunmh_AC
这个作者很懒,什么都没留下…
展开
-
Dirichlet's Theorem on Arithmetic Progressions SDUT 3006
Description If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, i.e., a, a + d, a + 2d, a + 3d, a + 4d, ..., contains infinitely many原创 2015-08-24 17:05:15 · 288 阅读 · 0 评论 -
Self Numbers POJ 1316
Description In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n plus the sum of the digits of n. (The d s原创 2015-08-21 14:31:49 · 422 阅读 · 0 评论 -
Doubles POJ 1552
Description As part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and asked to determine how many items in each li原创 2015-08-18 20:03:30 · 437 阅读 · 0 评论 -
The 3n + 1 problem POJ 1207
Description Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an alg原创 2015-08-18 15:54:07 · 289 阅读 · 0 评论 -
Gold Coins POJ 2000
Description The king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two days (the second and third days of service), the原创 2015-08-18 08:52:29 · 434 阅读 · 0 评论 -
THE DRUNK JAILER POJ 1218
Description A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked. One night, the jailer gets bored and decides to原创 2015-08-17 21:15:57 · 493 阅读 · 0 评论 -
Speed Limit POJ 2017
Description Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortunately, Bill has a working stopwatch, so they can re原创 2015-08-13 08:29:44 · 416 阅读 · 0 评论 -
Hangover POJ 1003
Description How 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 must be perpendicul原创 2015-08-13 15:03:12 · 341 阅读 · 0 评论 -
Tiling POJ 2506
Description In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles? Here is a sample tiling of a 2x17 rectangle. Input Input is a sequence of lines, each line containing an int原创 2015-08-25 19:25:11 · 443 阅读 · 0 评论 -
Fence Repair POJ 3253
Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of wood, each having some integer le原创 2015-08-26 09:19:33 · 445 阅读 · 0 评论 -
Y2K Accounting Bug POJ 2586
Description Accounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual report for MS Inc. All what they remember is that MS Inc. posted a原创 2015-08-25 14:48:56 · 518 阅读 · 0 评论 -
Power of Cryptography POJ 2109
Description Current work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted in the practical use of r原创 2015-08-25 10:08:14 · 268 阅读 · 0 评论 -
I Think I Need a Houseboat POJ 1005
Description Fred 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 is actually shrinking原创 2015-08-24 14:49:10 · 377 阅读 · 0 评论 -
Binary Tree SDUT 2499
Description Background Binary trees are a common data structure in computer science. In this problem we will look at an infinite binary tree where the nodes contain a pair of integers. The tree is c原创 2015-08-24 20:07:32 · 288 阅读 · 0 评论 -
IP Address POJ 2105
Description Suppose you are reading byte streams from any device, representing IP addresses. Your task is to convert a 32 characters long sequence of '1s' and '0s' (bits) to a dotted decimal format.原创 2015-08-21 15:57:35 · 390 阅读 · 0 评论