摘要: A musical melody is represented as a sequence of N (1 <= N <= 5000) notes that are integers in the range 1..88, each representing a key on the piano. 阅读全文
posted @ 2017-02-06 21:25 sigongzi 阅读(492) 评论(0) 推荐(0) 编辑
摘要: High up in the night sky, the shining stars appear in clusters of various shapes. A cluster is a non-empty group of neighbouring stars, adjacent in ho 阅读全文
posted @ 2017-02-05 21:29 sigongzi 阅读(594) 评论(0) 推荐(0) 编辑
摘要: Consider the following five picture frames shown on an 9 x 8 array: Now place all five picture frames on top of one another starting with 1 at the bot 阅读全文
posted @ 2017-02-03 19:33 sigongzi 阅读(488) 评论(0) 推荐(0) 编辑
摘要: The Shuttle Puzzle of size 3 consists of 3 white marbles, 3 black marbles, and a strip of wood with 7 holes. The marbles of the same color are placed 阅读全文
posted @ 2017-02-02 14:20 sigongzi 阅读(8754) 评论(0) 推荐(0) 编辑
摘要: Letter games are popular at home and on television. In one version of the game, every letter has a value, and you collect letters to form one or more 阅读全文
posted @ 2017-02-02 11:37 sigongzi 阅读(484) 评论(0) 推荐(0) 编辑
摘要: Figure 1 gives an example of a course for a street race. You see some points, labeled from 0 to N (here, N=9), and some arrows connecting them. Point 阅读全文
posted @ 2017-02-01 20:54 sigongzi 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 1036: [ZJOI2008]树的统计Count Description 一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成一些操作: I. CHANGE u t : 把结点u的权值改为t II. QMAX u v: 询问从点u到点v的路径上的节点 阅读全文
posted @ 2017-02-01 19:55 sigongzi 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 1861: [Zjoi2006]Book 书架 Description 小T有一个很大的书柜。这个书柜的构造有些独特,即书柜里的书是从上至下堆放成一列。她用1到n的正整数给每本书都编了号。 小T在看书的时候,每次取出一本书,看完后放回书柜然后再拿下一本。由于这些书太有吸引力了,所以她看完后常常会忘记 阅读全文
posted @ 2017-01-31 21:16 sigongzi 阅读(215) 评论(0) 推荐(0) 编辑
摘要: D. Transferring Pyramid time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output D. Transferring 阅读全文
posted @ 2017-01-31 20:55 sigongzi 阅读(393) 评论(0) 推荐(0) 编辑
摘要: E. Ladies' Shop time limit per test 8 seconds memory limit per test 256 megabytes input standard input output standard output A ladies' shop has recen 阅读全文
posted @ 2017-01-20 20:33 sigongzi 阅读(391) 评论(0) 推荐(0) 编辑
摘要: The advice to "buy low" is half the formula to success in the stock market. But to be considered a great investor you must also follow this problems' 阅读全文
posted @ 2017-01-18 19:24 sigongzi 阅读(719) 评论(0) 推荐(0) 编辑
摘要: A factory is running a production line that requires two operations to be performed on each job: first operation "A" then operation "B". Only a certai 阅读全文
posted @ 2017-01-17 20:23 sigongzi 阅读(532) 评论(0) 推荐(0) 编辑
摘要: Farmer John completed his new barn just last week, complete with all the latest milking technology. Unfortunately, due to engineering problems, all th 阅读全文
posted @ 2017-01-16 20:35 sigongzi 阅读(578) 评论(0) 推荐(0) 编辑
摘要: Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhi 阅读全文
posted @ 2017-01-16 20:32 sigongzi 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1013: [JSOI2008]球形空间产生器sphere Description 有一个球形空间产生器能够在n维空间中产生一个坚硬的球体。现在,你被困在了这个n维球体中,你只知道球面上n+1个点的坐标,你需要以最快的速度确定这个n维球体的球心坐标,以便于摧毁这个球形空间产生器。 有一个球形空间产生 阅读全文
posted @ 2017-01-16 20:00 sigongzi 阅读(185) 评论(0) 推荐(0) 编辑
摘要: The fences that surround Farmer Brown's collection of pastures have gotten out of control. They are made up of straight segments from 1 through 200 fe 阅读全文
posted @ 2017-01-14 21:20 sigongzi 阅读(453) 评论(0) 推荐(0) 编辑
摘要: Farmer Brown's cows are up in arms, having heard that McDonalds is considering the introduction of a new product: Beef McNuggets. The cows are trying 阅读全文
posted @ 2017-01-12 20:07 sigongzi 阅读(568) 评论(0) 推荐(0) 编辑
摘要: In this problem, `lattice points' in the plane are points with integer coordinates. In order to contain his cows, Farmer John constructs a triangular 阅读全文
posted @ 2017-01-02 18:31 sigongzi 阅读(378) 评论(0) 推荐(0) 编辑
摘要: You just inherited the rights to N (1 <= N <= 20) previously unreleased songs recorded by the popular group Raucous Rockers. You plan to release a set 阅读全文
posted @ 2017-01-02 18:06 sigongzi 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Farmer John takes the heritage of his cows very seriously. He is not, however, a truly fine bookkeeper. He keeps his cow genealogies as binary trees a 阅读全文
posted @ 2017-01-02 17:19 sigongzi 阅读(395) 评论(0) 推荐(0) 编辑