摘要: You haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a... 阅读全文
posted @ 2015-08-01 15:47 Painting、时光 阅读(163) 评论(0) 推荐(0) 编辑
摘要: At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place wher... 阅读全文
posted @ 2015-08-01 15:45 Painting、时光 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Soda has a bipartite graph withnvertices andmundirected edges. Now he wants to make the graph become a complete bipartite graph with most edges by add... 阅读全文
posted @ 2015-08-01 15:39 Painting、时光 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Mr. Hdu is interested in Greatest Common Divisor (GCD). He wants to find more and more interesting things about GCD. Today He comes up with Range Grea... 阅读全文
posted @ 2015-08-01 15:38 Painting、时光 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Luke wants to upgrade his home computer network from 10mbs to 100mbs. His existing network uses 10base2 (coaxial) cables that allow you to connect any... 阅读全文
posted @ 2015-08-01 15:35 Painting、时光 阅读(229) 评论(0) 推荐(0) 编辑
摘要: There are N point on X-axis . Miaomiao would like to cover them ALL by using segments with same length.There are 2 limits:1.A point is convered if the... 阅读全文
posted @ 2015-08-01 15:34 Painting、时光 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Josephina is a clever girl and addicted to Machine Learning recently. Shepays much attention to a method called Linear Discriminant Analysis, whichhas... 阅读全文
posted @ 2015-08-01 15:23 Painting、时光 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Farmer John has built a new long barn, with N (2 #include #include using namespace std;const int inf = 0x3f3f3f3f;const int MAX = 1e6 + 10;int n, m;in... 阅读全文
posted @ 2015-08-01 15:20 Painting、时光 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Language:Cable masterTime Limit:1000MSMemory Limit:10000KTotal Submissions:29971Accepted:6349DescriptionInhabitants of the Wonderland have decided to ... 阅读全文
posted @ 2015-08-01 15:16 Painting、时光 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, whic... 阅读全文
posted @ 2015-08-01 15:15 Painting、时光 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The exciteme... 阅读全文
posted @ 2015-08-01 15:13 Painting、时光 阅读(120) 评论(0) 推荐(0) 编辑
摘要: The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height?The r... 阅读全文
posted @ 2015-08-01 15:12 Painting、时光 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionIn ann∗mmaze, the right-bottom corner is the exit (position(n,m)is the exit). In every position of this maze, there is either a0or ... 阅读全文
posted @ 2015-08-01 15:08 Painting、时光 阅读(125) 评论(0) 推荐(0) 编辑