摘要: The Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advi 阅读全文
posted @ 2017-03-08 21:46 琴影 阅读(413) 评论(0) 推荐(0) 编辑
摘要: Your chemistry lab instructor is a very enthusiastic graduate student who clearly has forgotten what their undergraduate Chemistry 101 lab experience 阅读全文
posted @ 2017-03-08 21:19 琴影 阅读(259) 评论(0) 推荐(0) 编辑
摘要: For each list of words, output a line with each word reversed without changing the order of the words. This problem contains multiple test cases! The 阅读全文
posted @ 2017-03-08 21:06 琴影 阅读(242) 评论(0) 推荐(0) 编辑
摘要: In most languages, text is written from left to right. However, there are other languages where text is read and written from right to left. As a firs 阅读全文
posted @ 2017-03-08 20:38 琴影 阅读(289) 评论(0) 推荐(0) 编辑
摘要: Mathematics can be so easy when you have a computer. Consider the following example. You probably know that in a right-angled triangle, the length of 阅读全文
posted @ 2017-03-08 20:26 琴影 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall! 阅读全文
posted @ 2017-03-08 20:05 琴影 阅读(284) 评论(0) 推荐(0) 编辑
摘要: BackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that dig 阅读全文
posted @ 2017-03-08 18:01 琴影 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Uniform Resource Identifiers (or URIs) are strings like http://icpc.baylor.edu/icpc/, mailto:foo@bar.org, ftp://127.0.0.1/pub/linux, or even just read 阅读全文
posted @ 2017-03-08 17:41 琴影 阅读(336) 评论(0) 推荐(0) 编辑
摘要: When a Little White meets another Little White: Little White A: (Surprised) !Little White B: ?Little White A: You Little White know "SHDC"? So unbelie 阅读全文
posted @ 2017-03-08 17:09 琴影 阅读(311) 评论(0) 推荐(0) 编辑
摘要: The look and say sequence is defined as follows. Start with any string of digits as the first element in the sequence. Each subsequent element is defi 阅读全文
posted @ 2017-03-08 15:43 琴影 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Given a string containing only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k same characters should be enc 阅读全文
posted @ 2017-03-08 15:28 琴影 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, print out the positions of all 1's in its binary representation. The position of the least significant bit is 0. ExampleTh 阅读全文
posted @ 2017-03-08 15:12 琴影 阅读(284) 评论(0) 推荐(0) 编辑
摘要: You may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is sen 阅读全文
posted @ 2017-03-08 15:00 琴影 阅读(252) 评论(0) 推荐(0) 编辑
摘要: A checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will also 阅读全文
posted @ 2017-03-08 14:49 琴影 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Description: 有一些01字串,将其按1的个数的多少的顺序进行输出。 Sample Input: 10011111 00001101 1010101 1 0 1100 Sample Output: 0 1 1100 00001101 1010101 10011111 1 #include 阅读全文
posted @ 2017-03-08 13:56 琴影 阅读(809) 评论(2) 推荐(0) 编辑