
数论
文章平均质量分 73
ultimater
桃李争辉飒爽英姿斗艳,成功失败总是欢乐伤悲!
展开
-
LightOJ 1077 How Many Points?
DescriptionGiven two points A and B on the X-Y plane, output the number of the lattice points on the segment AB. Note that A and B are also lattice point. Those who are confused with the definit原创 2012-08-05 15:19:19 · 1335 阅读 · 0 评论 -
HDU 1060 Leftmost Digit
Problem DescriptionLarry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financia原创 2012-09-05 23:16:18 · 583 阅读 · 0 评论 -
HDU 1443 Joseph
Problem DescriptionThe 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 ever原创 2012-08-19 22:28:20 · 2457 阅读 · 1 评论 -
HDU 2105 The Center of Gravity
Problem DescriptionEveryone know the story that how Newton discovered the Universal Gravitation. One day, Newton walked leisurely, suddenly, an apple hit his head. Then Newton discovered the Uni原创 2012-07-31 23:07:59 · 1138 阅读 · 0 评论 -
HDU 2674 N! Again
Problem DescriptionWhereIsHeroFrom: Zty, what are you doing ?Zty: I want to calculate N!......WhereIsHeroFrom: So easy! How big N is原创 2012-07-28 11:03:32 · 1581 阅读 · 0 评论 -
UVA 138 Street Numbers
Description Street Numbers A computer programmer lives in a street with houses numbered consecutively (from 1) down one side of the street. Every evening she walks her dog by原创 2012-08-10 23:13:42 · 890 阅读 · 0 评论 -
POJ 2661 Factstone Benchmark
DescriptionAmtel has announced that it will release a 128-bit computer chip by 2010, a 256-bit computer by 2020, and so on, continuing its strategy of doubling the word-size every ten years. (Amte原创 2012-08-11 09:53:30 · 1610 阅读 · 0 评论 -
POJ 2363 Blocks
DescriptionDonald wishes to send a gift to his new nephew, Fooey. Donald is a bit of a traditionalist, so he has chosen to send a set of N classic baby blocks. Each block is a cube, 1 inch by 1 in原创 2012-08-11 08:50:38 · 1760 阅读 · 0 评论 -
HDU 1299 Diophantus of Alexandria
Problem DescriptionDiophantus of Alexandria was an egypt mathematician living in Alexandria. He was one of the first mathematicians to study equations where variables were restricted to integral v原创 2012-07-26 22:57:49 · 1558 阅读 · 1 评论 -
LightOJ 1035 Intelligent Factorial Factorization
DescriptionGiven an integer N, you have to prime factorize N! (factorial N).InputInput starts with an integer T (≤ 125), denoting the number of test cases.Each case contains an integ原创 2012-08-05 15:28:11 · 1038 阅读 · 0 评论 -
POJ 3006 Dirichlet's Theorem on Arithmetic Progressions
DescriptionIf 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 man原创 2012-09-09 21:30:04 · 1476 阅读 · 0 评论