上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show itself. The sho 阅读全文
posted @ 2017-08-05 08:38 西北会法语 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Gappu has a very busy weekend ahead of him. Because, next weekend is Halloween, and he is planning to attend as many parties as he can. Since it's Hal 阅读全文
posted @ 2017-08-05 08:37 西北会法语 阅读(169) 评论(0) 推荐(0) 编辑
摘要: We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence, if s is a regular brac 阅读全文
posted @ 2017-08-05 08:34 西北会法语 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 现在有n堆石子,第i堆有ai个石子。现在要把这些石子合并成一堆,每次只能合并相邻两个,每次合并的代价是两堆石子的总石子数。求合并所有石子的最小代价。 Input 第一行包含一个整数T(T<=50),表示数据组数。 每组数据第一行包含一个整数n(2<=n<=100),表示石子的堆数。 第二行包含n个正 阅读全文
posted @ 2017-08-05 08:32 西北会法语 阅读(196) 评论(0) 推荐(0) 编辑
摘要: This is yet another problem dealing with regular bracket sequences. We should remind you that a bracket sequence is called regular, if by inserting «+ 阅读全文
posted @ 2017-08-03 16:15 西北会法语 阅读(200) 评论(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 and decided to pl 阅读全文
posted @ 2017-08-03 16:14 西北会法语 阅读(188) 评论(0) 推荐(0) 编辑
摘要: The end of the school year is near and Ms. Manana, the teacher, will soon have to say goodbye to a yet another class. She decided to prepare a goodbye 阅读全文
posted @ 2017-08-03 16:09 西北会法语 阅读(257) 评论(0) 推荐(0) 编辑
摘要: A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence ( a1, a2, ..., aN) be any sequence ( ai1, 阅读全文
posted @ 2017-08-03 16:08 西北会法语 阅读(82) 评论(0) 推荐(0) 编辑
摘要: A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, ..., xm > another 阅读全文
posted @ 2017-08-03 16:05 西北会法语 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 下图是个数字三角,请编写一个程序计算从顶部至底部某处一条路径,使得该路径所经过的数字总和最大。 7 3 8 8 1 0 2 7 4 4 1. 每一步可沿左斜线向下或右斜线向下走; 2. 1<=三角形行数<=100 3. 三角形中的数字为整数 0,1,……,99。 4. 如果有多种情况结果都最大,任意 阅读全文
posted @ 2017-08-03 16:04 西北会法语 阅读(166) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页