随笔分类 -  Online Judge

摘要:Time Limit:2 Seconds Memory Limit:65536 KB Over the years, the people of the great city of Pittsburgh have repeatedly demonstrated a collective expertise at football second to none. Recently a... 阅读全文
posted @ 2013-11-16 15:58 Gavin Lipeng Ma 阅读(592) 评论(0) 推荐(0) 编辑
摘要:ZOJ Problem Set - 1088System OverloadTime Limit:10 Seconds Memory Limit:32768 KBRecently you must have experienced that when too many people use the BBS simultaneously, the net becomes very, very slow.To put an end to this problem, the Sysop has developed a contingency scheme for times of peak load 阅读全文
posted @ 2013-03-08 14:04 Gavin Lipeng Ma 阅读(511) 评论(0) 推荐(0) 编辑
摘要:Time Limit:1 Second Memory Limit:32768 KBDo you know second-price auction? It's very simple but famous. In a second-price auction, each potential buyer privately submits, perhaps in a sealed envelope or over a secure connection, his (or her) bid for the object to the auctioneer. After receiving 阅读全文
posted @ 2012-08-31 17:26 Gavin Lipeng Ma 阅读(438) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KBA large field has a dog and a gopher. The dog wants to eat the gopher, while the gopher wants to run to safety through one of several gopher holes dug in the surface of the field. Neither the dog nor the gopher is a math major; however, neither is entirely 阅读全文
posted @ 2012-05-24 09:02 Gavin Lipeng Ma 阅读(361) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when r... 阅读全文
posted @ 2012-05-23 17:24 Gavin Lipeng Ma 阅读(295) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Zombies love to eat brains. Yum. Input The first line contains a single integer n indicating the number of data sets. The following n lines each... 阅读全文
posted @ 2012-05-17 10:00 Gavin Lipeng Ma 阅读(343) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Bill 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... 阅读全文
posted @ 2012-05-17 09:36 Gavin Lipeng Ma 阅读(397) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the e... 阅读全文
posted @ 2012-05-17 09:26 Gavin Lipeng Ma 阅读(307) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most pop... 阅读全文
posted @ 2012-05-17 09:18 Gavin Lipeng Ma 阅读(345) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. B... 阅读全文
posted @ 2012-05-10 15:43 Gavin Lipeng Ma 阅读(340) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Children are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in which a 1 is carried fr... 阅读全文
posted @ 2012-05-10 13:50 Gavin Lipeng Ma 阅读(501) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a ... 阅读全文
posted @ 2012-05-10 13:33 Gavin Lipeng Ma 阅读(332) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every even n... 阅读全文
posted @ 2012-05-10 12:53 Gavin Lipeng Ma 阅读(244) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2) Input Input consists of a sequence of lines, each... 阅读全文
posted @ 2012-05-10 11:59 Gavin Lipeng Ma 阅读(296) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Statement of the Problem We say that a number is a palindrom if it is the sane when read from left to right or from right to left. For example, the... 阅读全文
posted @ 2012-05-09 13:13 Gavin Lipeng Ma 阅读(230) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed... 阅读全文
posted @ 2012-05-09 12:09 Gavin Lipeng Ma 阅读(507) 评论(1) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. f(1) = 1, f(2) = 1, ... 阅读全文
posted @ 2012-05-09 09:23 Gavin Lipeng Ma 阅读(304) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 t... 阅读全文
posted @ 2012-05-08 16:19 Gavin Lipeng Ma 阅读(403) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Soundex coding groups together words that appear to sound alike based on their spelling. For example, "can" and "khawn", "con" and "gone" would be eq... 阅读全文
posted @ 2012-05-07 17:32 Gavin Lipeng Ma 阅读(388) 评论(0) 推荐(0) 编辑
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Ms. Terry is a pre-school art teacher who likes to have her students work with clay. One of her assignments is to form a lump of clay into a block an... 阅读全文
posted @ 2012-05-04 16:41 Gavin Lipeng Ma 阅读(393) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示