摘要: Ural 1022: http://www.cnblogs.com/lzj-0218/archive/2013/05/12/3074527.html 阅读全文
posted @ 2013-05-12 21:01 ~~Snail~~ 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1022. Genealogical TreeTime limit: 1.0 second Memory limit: 64 MBBackgroundThe system of Martians’ blood relations is confusing enough. Actually, Martians bud when they want and where they want. They gather together in different groups, so that a Martian can have one parent as well as ten. Nobody wi 阅读全文
posted @ 2013-05-12 21:00 ~~Snail~~ 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Prime DistanceTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 9195Accepted: 2490DescriptionThe branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the interest of number theoreticians for thousands of years is the question of primali 阅读全文
posted @ 2013-05-12 20:48 ~~Snail~~ 阅读(600) 评论(0) 推荐(0) 编辑
摘要: The Perfect StallTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 15710Accepted: 7176DescriptionFarmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, all the stalls in the new barn are different. For th 阅读全文
posted @ 2013-05-12 20:36 ~~Snail~~ 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Sorting It All OutTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 23404Accepted: 8093DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, 阅读全文
posted @ 2013-05-12 20:04 ~~Snail~~ 阅读(204) 评论(0) 推荐(0) 编辑