![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构编程实验
GLOW444
这个作者很懒,什么都没留下…
展开
-
Double(正确处理多个测试用例)
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 lis...原创 2019-08-24 10:50:30 · 188 阅读 · 0 评论 -
Sum of consecutive prime numbers(离线计算)POJ 2739
离线计算在处理多个测试用例的过程中,可能会遇到这样一种情况:数据量较大,所有测试用例都采用同一运算,并且数据范围已知。在这种情况下,为了提高计算时效,可以采用离线计算方法:预先计算出指定范围内的所有解,存入某个常量数组;以后每处理一个测试用例,直接从常量数组中引用相关数据就可以了,这样做避免了重复运算。DescriptionSome positive integers can be rep...原创 2019-08-25 09:54:33 · 192 阅读 · 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 is actually shrinking b...原创 2019-08-26 14:31:42 · 267 阅读 · 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 perpendicular ...原创 2019-08-27 10:10:55 · 120 阅读 · 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 rec...原创 2019-08-27 10:55:46 · 184 阅读 · 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 st...原创 2019-08-31 17:24:15 · 207 阅读 · 0 评论 -
Bee(UVA11000)
DescriptionIn Africa there is a very special species of bee. Every year, the female bees of such species give birthto one male bee, while the male bees give birth to one male bee and one female bee, ...原创 2019-09-01 11:07:01 · 166 阅读 · 0 评论 -
Symmetric Order(POJ 2013)
DescriptionIn your job at Albatross Circus Management (yes, it’s run by a bunch of clowns), you have just finished writing a program whose output is a list of names in nondescending order by length (...原创 2019-09-01 17:15:13 · 107 阅读 · 0 评论