摘要: Message DecowdingTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 9695Accepted: 5322DescriptionThe cows are thrilled because they've just learned about encrypting messages. They think they will be able to use secret messages to plot meetings with cows on other farms. Cows are not known f 阅读全文
posted @ 2011-11-21 23:45 w0w0 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Ancient CipherTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 19448Accepted: 6629DescriptionAncient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form 阅读全文
posted @ 2011-11-21 23:45 w0w0 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Herd SumsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 12670Accepted: 7559DescriptionThe cows in farmer John's herd are numbered and branded with consecutive integers from 1 to N (1 <= N <= 10,000,000). When the cows come to the barn for milking, they always come in sequential o 阅读全文
posted @ 2011-11-21 23:42 w0w0 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Vertical HistogramTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 13678Accepted: 6569DescriptionWrite a program to read four lines of upper case (i.e., all CAPITAL LETTERS) text input (no more than 72 characters per line) from the input file and print a vertical histogram that shows how man 阅读全文
posted @ 2011-11-21 23:41 w0w0 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Power of CryptographyTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 11648Accepted: 5977DescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted in the practical use of result 阅读全文
posted @ 2011-11-21 23:40 w0w0 阅读(126) 评论(0) 推荐(0) 编辑
摘要: IP AddressTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 15331Accepted: 8772DescriptionSuppose you are reading byte streams from any device, representing IP addresses. Your task is to convert a 32 characters long sequence of '1s' and '0s' (bits) to a dotted decimal format. 阅读全文
posted @ 2011-11-21 23:39 w0w0 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Grandpa is FamousTime Limit: 2000MSMemory Limit: 30000KTotal Submissions: 6290Accepted: 3164DescriptionThe whole family was excited by the news. Everyone knew grandpa had been an extremely good bridge player for decades, but when it was announced he would be in the Guinness Book of World Records as 阅读全文
posted @ 2011-11-21 23:38 w0w0 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Recaman's SequenceTime Limit: 3000MSMemory Limit: 60000KTotal Submissions: 17487Accepted: 7246DescriptionThe Recaman's sequence is defined by a0 = 0 ; for m > 0, am = am−1 − m if the rsulting am is positive and not already in the sequence, otherwise am = am−1 + m. The first few numbers in 阅读全文
posted @ 2011-11-21 23:37 w0w0 阅读(147) 评论(0) 推荐(0) 编辑
摘要: To and FroTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 7264Accepted: 4787DescriptionMo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as t 阅读全文
posted @ 2011-11-21 23:34 w0w0 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Filling Out the TeamTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 8302Accepted: 4572DescriptionOver the years, the people of the great city of Pittsburgh have repeatedly demonstrated a collective expertise at football second to none. Recently a spy has discovered the true source of the ci 阅读全文
posted @ 2011-11-21 23:34 w0w0 阅读(181) 评论(0) 推荐(0) 编辑
摘要: When Can We Meet?Time Limit: 1000MSMemory Limit: 30000KTotal Submissions: 3425Accepted: 1901DescriptionThe ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. However, members of the committee are so busy maniacally developing (possibl 阅读全文
posted @ 2011-11-21 23:33 w0w0 阅读(135) 评论(0) 推荐(0) 编辑
摘要: No BrainerTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 18696Accepted: 12495DescriptionZombies love to eat brains. Yum.InputThe first line contains a single integer n indicating the number of data sets. The following n lines each represent a data set. Each data set will be formatted accor 阅读全文
posted @ 2011-11-21 23:31 w0w0 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Speed LimitTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 12579Accepted: 8932DescriptionBill 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 record their 阅读全文
posted @ 2011-11-21 23:30 w0w0 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Symmetric OrderTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 9665Accepted: 5953DescriptionIn 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 (so that 阅读全文
posted @ 2011-11-21 23:29 w0w0 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Hanafuda ShuffleTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 3395Accepted: 1939DescriptionThere are a number of ways to shuffle a deck of cards. Hanafuda shuffling for Japanese card game 'Hanafuda' is one such example. The following is how to perform Hanafuda shuffling. There is 阅读全文
posted @ 2011-11-21 23:28 w0w0 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Gold CoinsTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 16569Accepted: 10398DescriptionThe king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two days (the second and third days of service), the knight receives 阅读全文
posted @ 2011-11-21 23:28 w0w0 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Count on CantonTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 8107Accepted: 4733DescriptionOne of the famous proofs of modern mathematics is Georg Cantor's demonstration that the set of rational numbers is enumerable. The proof works by using an explicit enumeration of rational numbers 阅读全文
posted @ 2011-11-21 23:27 w0w0 阅读(170) 评论(0) 推荐(0) 编辑
摘要: DartsTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 1028Accepted: 573DescriptionBackground Many nations (including Germany) have a strange tradition of throwing small arrows at round flat targets (usually, these small arrows are called darts and so is the game). In a darts game, the target 阅读全文
posted @ 2011-11-21 23:26 w0w0 阅读(276) 评论(0) 推荐(0) 编辑
摘要: World Cup NoiseTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 12396Accepted: 6100DescriptionBackground "KO-RE-A, KO-RE-A" shout 54.000 happy football fans after their team has reached the semifinals of the FIFA World Cup in their home country. But although their excitement is rea 阅读全文
posted @ 2011-11-21 23:25 w0w0 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Ride to SchoolTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 15152Accepted: 6081DescriptionMany graduate students of Peking University are living in Wanliu Campus, which is 4.5 kilometers from the main campus – Yanyuan. Students in Wanliu have to either take a bus or ride a bike to go to s 阅读全文
posted @ 2011-11-21 23:24 w0w0 阅读(179) 评论(0) 推荐(0) 编辑