acm
文章平均质量分 82
翟帅
人,最不能忘记的,是在你困难时拉你一把的人;最不能结交的,是在你失败时藐视你的人;最不能相信的,是在你成功时吹捧你的人;最不能抛弃的,是和你同创业共患难的人;最不能爱的,是不看重你人格的人。
展开
-
HD OJ Problem1014
Problem DescriptionComputer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1) = [seed(x) + STEP] % MODwhere '%' is原创 2013-01-23 20:29:32 · 637 阅读 · 0 评论 -
Prime Cryptarithm
Prime CryptarithmThe following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If the set of pr原创 2013-04-24 11:10:48 · 1097 阅读 · 0 评论 -
Palindromic Squares
Palindromic SquaresRob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20 base 10), print all t原创 2013-04-20 21:05:22 · 1395 阅读 · 0 评论 -
Mixing Milk
Mixing MilkSince milk packaging is such a low margin business, it is important to keep the price of the raw product (milk) as low as possible. Help Merry Milk Makers get the milk they need in th原创 2013-04-21 12:18:42 · 1008 阅读 · 0 评论 -
Dual Palindromes
Dual PalindromesMario Cruz (Colombia) & Hugo Rickeboer (Argentina)A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is a pali原创 2013-04-20 23:17:43 · 840 阅读 · 0 评论 -
Calf Flac
Calf FlacIt is said that if you give an infinite number of cows an infinite number of heavy-duty laptops (with very large keys), that they will ultimately produce all the world's great palindromes原创 2013-04-22 21:26:14 · 1009 阅读 · 0 评论 -
Barn Repair
Barn RepairIt was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacation, so the barn was not completely ful原创 2013-04-21 18:07:03 · 821 阅读 · 0 评论 -
Transformations ACM
TransformationsA square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum transformation原创 2013-02-24 14:11:46 · 672 阅读 · 0 评论 -
HD OJ 1002Problem 大数相加
A + B Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 139440 Accepted Submission(s): 26450Problem DescriptionI have原创 2013-01-24 21:19:15 · 661 阅读 · 0 评论 -
HD problem
SafecrackerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5175 Accepted Submission(s): 2598Problem Description=== Op tech br原创 2013-01-26 00:39:29 · 484 阅读 · 0 评论 -
ACM 问题分类
Hal Burch conducted an analysis over spring break of 1999 and made an amazing discovery: there are only 16 types of programming contest problems! Furthermore, the top several comprise almost 80% of th原创 2013-01-27 19:50:56 · 583 阅读 · 0 评论 -
HD 1008
ElevatorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28919 Accepted Submission(s): 15607Problem DescriptionThe highest bui原创 2013-01-26 22:13:21 · 1248 阅读 · 2 评论 -
UVA Greedy Gift Givers
Greedy Gift GiversA group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to any or all of the other fri原创 2013-01-28 21:12:45 · 1398 阅读 · 0 评论 -
Friday the Thirteenth
Friday the ThirteenthIs Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, wr原创 2013-01-29 22:52:04 · 635 阅读 · 0 评论 -
sqort函数用法总结
qsort包含在头文件中,此函数根据你给的比较条件进行快速排序,通过指针移动实现排序。排序之后的结果仍然放在原数组中。使用qsort函数必须自己写一个比较函数。函数原型:void qsort ( void * base, size_t num, size_t size, int ( * comparator ) ( const void *, const void * ) );原创 2013-02-05 21:02:20 · 6923 阅读 · 3 评论 -
Milking Cows
Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at time原创 2013-02-05 22:50:25 · 2986 阅读 · 0 评论 -
Broken Necklace
Broken NecklaceYou have a necklace of N red, white, or blue beads (3 1 2 1 2 r b b r b r r b r原创 2013-02-05 17:45:59 · 176313 阅读 · 0 评论