摘要: There are two strings A and B with equal length. Both strings are made up of lower case letters. Now you have a powerful string painter. With the help 阅读全文
posted @ 2017-08-05 08:42 西北会法语 阅读(179) 评论(0) 推荐(0) 编辑
摘要: The cows are trying to become better athletes, so Bessie is running on a track for exactly N (1 ≤ N ≤ 10,000) minutes. During each minute, she can cho 阅读全文
posted @ 2017-08-05 08:41 西北会法语 阅读(147) 评论(0) 推荐(0) 编辑
摘要: The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the r 阅读全文
posted @ 2017-08-05 08:40 西北会法语 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 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 西北会法语 阅读(195) 评论(0) 推荐(0) 编辑