- 博客(5)
- 收藏
- 关注
转载 I - All in All
You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not di...
2014-12-19 22:36:00 114
转载 E - Puzzle( UVA-227)
Puzzle A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter of the alphabet was prin...
2014-12-19 00:52:00 98
转载 数字三角形(SDUToj-1730)
= =听说是最水的动态规划,不过还是研究了挺长时间的,现在已经能熟练的做这类动规题了。大体思路就是每次第一次计算出MaxSum(i,j)的值时,把该值保存起来,以后再遇到MaxSum(i.j)时直接取出之前第一次调用时已经存放的值即可,不必再次调用MaxSum函数作递归计算。这样每个MaxSum(i,j)都只需要计算一次,计算次数为数字三角形中的数字总数。因此,不需要写递归函数,从第N-...
2014-12-17 09:27:00 153
转载 大数的加减乘除
= =用c做大数的题真是够够的了,跟着男神学了一下用Java做简单的加减乘除(即add,substract,multiply和divide),下面的代码是大数加法(多组输入)的代码。 import java.math.BigInteger; import java.util.*; public class Main { public static void ...
2014-12-17 08:52:00 86
转载 D - Periodic Strings(UVA-455)
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string "abcabcabcabc" has period 3, since ...
2014-12-17 01:32:00 133
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人