POJ
文章平均质量分 80
Sunmh_AC
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Dirichlet's Theorem on Arithmetic Progressions SDUT 3006
DescriptionIf a and d are relatively prime positive integers, the arithmetic sequence beginning witha and increasing by d, i.e., a, a + d,a + 2d, a + 3d, a + 4d, ..., contains infinitely many原创 2015-08-24 17:05:15 · 373 阅读 · 0 评论 -
Self Numbers POJ 1316
DescriptionIn 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 · 506 阅读 · 0 评论 -
Doubles POJ 1552
DescriptionAs 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 · 529 阅读 · 0 评论 -
The 3n + 1 problem POJ 1207
DescriptionProblems 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 · 379 阅读 · 0 评论 -
Gold Coins POJ 2000
DescriptionThe 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 · 537 阅读 · 0 评论 -
THE DRUNK JAILER POJ 1218
DescriptionA 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 · 590 阅读 · 0 评论 -
Speed Limit POJ 2017
DescriptionBill 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 · 519 阅读 · 0 评论 -
Hangover POJ 1003
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 must be perpendicul原创 2015-08-13 15:03:12 · 413 阅读 · 0 评论 -
Tiling POJ 2506
DescriptionIn how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?Here is a sample tiling of a 2x17 rectangle. InputInput is a sequence of lines, each line containing an int原创 2015-08-25 19:25:11 · 535 阅读 · 0 评论 -
Fence Repair POJ 3253
DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needsN (1 ≤ N ≤ 20,000) planks of wood, each having some integer le原创 2015-08-26 09:19:33 · 503 阅读 · 0 评论 -
Y2K Accounting Bug POJ 2586
DescriptionAccounting 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 · 613 阅读 · 0 评论 -
Power of Cryptography POJ 2109
DescriptionCurrent 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 · 335 阅读 · 0 评论 -
I Think I Need a Houseboat POJ 1005
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 is actually shrinking原创 2015-08-24 14:49:10 · 440 阅读 · 0 评论 -
Binary Tree SDUT 2499
DescriptionBackgroundBinary 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 · 343 阅读 · 0 评论 -
IP Address POJ 2105
DescriptionSuppose 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 · 496 阅读 · 0 评论
分享