上一页 1 ··· 16 17 18 19 20
摘要: 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 阅读(190) 评论(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 阅读(250) 评论(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 阅读(222) 评论(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 阅读(186) 评论(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 阅读(190) 评论(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 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 在纺织CAD系统开发过程中,经常会遇到纱线排列的问题。 该问题的描述是这样的:常用纱线的品种一般不会超过25种,所以分别可以用小写字母表示不同的纱线,例如:abc表示三根纱线的排列;重复可以用数字和括号表示,例如:2(abc)表示abcabc;1(a)=1a表示a;2... 阅读全文
posted @ 2018-01-25 20:02 StarHai 阅读(334) 评论(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 阅读(268) 评论(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 阅读(201) 评论(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 阅读(337) 评论(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 阅读(295) 评论(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 阅读(190) 评论(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 阅读(254) 评论(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 阅读(159) 评论(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 阅读(187) 评论(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 阅读(201) 评论(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 阅读(229) 评论(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 阅读(372) 评论(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 阅读(279) 评论(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 阅读(223) 评论(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 阅读(211) 评论(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 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20