上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页

2017年7月26日

摘要: Problem Description There is a youngster known for amateur propositions concerning several mathematical hard problems.Nowadays, he is preparing a thou 阅读全文
posted @ 2017-07-26 09:59 Annetree 阅读(400) 评论(0) 推荐(0)

2017年7月24日

摘要: Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group 阅读全文
posted @ 2017-07-24 11:02 Annetree 阅读(259) 评论(0) 推荐(0)
 
摘要: Problem Description This is a simple problem. Given two triangles A and B, you should determine they are intersect, contain or disjoint. (Public edge 阅读全文
posted @ 2017-07-24 10:42 Annetree 阅读(585) 评论(0) 推荐(0)
 
摘要: Problem Description Therearex frogs and y chicken in a garden. Kim found there are n heads and m legs in the garden. Please tell Kim how many frogs an 阅读全文
posted @ 2017-07-24 09:59 Annetree 阅读(187) 评论(0) 推荐(0)

2017年7月21日

摘要: Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的 阅读全文
posted @ 2017-07-21 15:50 Annetree 阅读(159) 评论(0) 推荐(0)

2017年7月19日

摘要: 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 @ 2017-07-19 15:27 Annetree 阅读(175) 评论(0) 推荐(0)
 
摘要: ZZX has a sequence of boxes numbered 1,2,...,n1,2,...,n. Each box can contain at most one ball. You are given the initial configuration of the balls. 阅读全文
posted @ 2017-07-19 14:32 Annetree 阅读(400) 评论(0) 推荐(0)

2017年7月18日

摘要: As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them: Correct 阅读全文
posted @ 2017-07-18 16:23 Annetree 阅读(188) 评论(0) 推荐(0)
 
摘要: 1.BFS是用来搜索最短径路的解是比较合适的,比如求最少步数的解,最少交换次数的解,因为BFS搜索过程中遇到的解一定是离根最近的,所以遇到一个解,一定就是最优解,此时搜索算法可以终止。这个时候不适宜使用DFS,因为DFS搜索到的解不一定是离根最近的,只有全局搜索完毕,才能从所有解中找出离根的最近的解 阅读全文
posted @ 2017-07-18 11:03 Annetree 阅读(2335) 评论(0) 推荐(1)
 
摘要: Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a numb 阅读全文
posted @ 2017-07-18 10:56 Annetree 阅读(157) 评论(0) 推荐(0)
 
摘要: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将 阅读全文
posted @ 2017-07-18 10:20 Annetree 阅读(171) 评论(0) 推荐(0)
 
摘要: Problem Description In China, foreign brand commodities are often much more expensive than abroad. The main reason is that we Chinese people tend to t 阅读全文
posted @ 2017-07-18 09:46 Annetree 阅读(385) 评论(0) 推荐(0)

2017年7月17日

摘要: Description You are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set 阅读全文
posted @ 2017-07-17 16:41 Annetree 阅读(303) 评论(0) 推荐(0)
 
摘要: Description 城市C是一个非常繁忙的大都市,城市中的道路十分的拥挤,于是市长决定对其中的道路进行改造。城市C的道路是这样分布的:城市中有n个交叉路口,有些交叉路口之间有道路相连,两个交叉路口之间最多有一条道路相连接。这些道路是双向的,且把所有的交叉路口直接或间接的连接起来了。每条道路都有一 阅读全文
posted @ 2017-07-17 15:51 Annetree 阅读(124) 评论(0) 推荐(0)

2017年7月15日

摘要: There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine 阅读全文
posted @ 2017-07-15 16:27 Annetree 阅读(219) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页