01 2018 档案

摘要:Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi 阅读全文
posted @ 2018-01-29 22:20 StarHai 阅读(387) 评论(0) 推荐(0) 编辑
摘要:Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the 阅读全文
posted @ 2018-01-29 21:54 StarHai 阅读(291) 评论(0) 推荐(0) 编辑
摘要:Demy has n jewels. Each of her jewels has some value vi and weight wi. Since her husband John got broke after recent financial crises, Demy has decide 阅读全文
posted @ 2018-01-29 21:34 StarHai 阅读(226) 评论(0) 推荐(0) 编辑
摘要:The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D 阅读全文
posted @ 2018-01-29 20:52 StarHai 阅读(416) 评论(0) 推荐(0) 编辑
摘要:Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point loca... 阅读全文
posted @ 2018-01-29 20:44 StarHai 阅读(143) 评论(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 ... 阅读全文
posted @ 2018-01-29 20:44 StarHai 阅读(235) 评论(0) 推荐(0) 编辑
摘要:You are given a rectangular field of n × m cells. Each cell is either empty or impassable (contains an obstacle). Empty cells are marked with '.', imp 阅读全文
posted @ 2018-01-29 20:22 StarHai 阅读(192) 评论(0) 推荐(0) 编辑
摘要:You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. 阅读全文
posted @ 2018-01-29 20:12 StarHai 阅读(254) 评论(0) 推荐(0) 编辑
摘要:Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contai... 阅读全文
posted @ 2018-01-29 20:05 StarHai 阅读(223) 评论(0) 推荐(0) 编辑
摘要:Alex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game a... 阅读全文
posted @ 2018-01-29 19:56 StarHai 阅读(189) 评论(0) 推荐(0) 编辑
摘要:We were afraid of making this problem statement too boring, so we decided to keep it short. A sequenceis called non-boring if its ever... 阅读全文
posted @ 2018-01-25 21:43 StarHai 阅读(195) 评论(0) 推荐(0) 编辑
摘要:Professor GukiZ is concerned about making his way to school, because massive piles of boxes are blocking his way.In total there are n ... 阅读全文
posted @ 2018-01-25 21:31 StarHai 阅读(269) 评论(0) 推荐(0) 编辑
摘要:在纺织CAD系统开发过程中,经常会遇到纱线排列的问题。 该问题的描述是这样的:常用纱线的品种一般不会超过25种,所以分别可以用小写字母表示不同的纱线,例如:abc表示三根纱线的排列;重复可以用数字和括号表示,例如:2(abc)表示abcabc;1(a)=1a表示a;2... 阅读全文
posted @ 2018-01-25 20:02 StarHai 阅读(341) 评论(0) 推荐(0) 编辑
摘要:Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any numb... 阅读全文
posted @ 2018-01-24 22:57 StarHai 阅读(270) 评论(0) 推荐(0) 编辑
摘要:Most crossword puzzle fans are used to anagrams — groups of words with the same letters in differentorders — for example OPTS, SPOT, S... 阅读全文
posted @ 2018-01-24 22:50 StarHai 阅读(214) 评论(0) 推荐(0) 编辑
摘要:Leonid wants to become a glass carver (the person who creates beautiful artworks by cutting the glass). He already has a rectangular w... 阅读全文
posted @ 2018-01-24 22:42 StarHai 阅读(341) 评论(0) 推荐(0) 编辑
摘要:There is a bag-like data structure, supporting two operations:1 x Throw an element x into the bag.2 Take out an element from the bag.G... 阅读全文
posted @ 2018-01-24 22:37 StarHai 阅读(303) 评论(0) 推荐(0) 编辑
摘要:As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because ... 阅读全文
posted @ 2018-01-24 22:33 StarHai 阅读(194) 评论(0) 推荐(0) 编辑
摘要:Alice and Bob play 5-in-a-row game. They have a playing field of size 10 × 10. In turns they put either crosses or noughts, one at a t... 阅读全文
posted @ 2018-01-24 22:11 StarHai 阅读(266) 评论(0) 推荐(0) 编辑
摘要:Andy, 8, has a dream - he wants to produce hisvery own dictionary. This is not an easy task forhim, as the number of words that he kno... 阅读全文
posted @ 2018-01-24 21:00 StarHai 阅读(161) 评论(0) 推荐(0) 编辑
摘要:There are n pearls in a row. Let's enumerate them with integers from 1 to n from the left to the right. The pearl number i has the typ... 阅读全文
posted @ 2018-01-24 20:46 StarHai 阅读(190) 评论(0) 推荐(0) 编辑
摘要:You are given string s consists of opening and closing brackets of four kinds ,{}, [], (). There are two types of brackets: opening an... 阅读全文
posted @ 2018-01-24 20:39 StarHai 阅读(203) 评论(0) 推荐(0) 编辑
摘要:Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But ... 阅读全文
posted @ 2018-01-24 20:29 StarHai 阅读(234) 评论(0) 推荐(0) 编辑
摘要:It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring proce... 阅读全文
posted @ 2018-01-23 22:45 StarHai 阅读(397) 评论(0) 推荐(0) 编辑
摘要:Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 #include#include#includeusing namespace std;double f(double x,double... 阅读全文
posted @ 2018-01-23 20:54 StarHai 阅读(284) 评论(0) 推荐(0) 编辑
摘要:Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100; Now please try your lucky.Inp... 阅读全文
posted @ 2018-01-23 20:52 StarHai 阅读(232) 评论(0) 推荐(0) 编辑
摘要:Farmer John has built a new long barn, with N (2 #include#includeusing namespace std;int main(){int N,C,left,right,mid;cin>>N>>C;int a... 阅读全文
posted @ 2018-01-23 20:49 StarHai 阅读(219) 评论(0) 推荐(0) 编辑
摘要:Array of integers is unimodal, if:it is strictly increasing in the beginning;after that it is constant;after that it is strictly decre... 阅读全文
posted @ 2018-01-22 16:48 StarHai 阅读(229) 评论(0) 推荐(0) 编辑

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