DP算法
文章平均质量分 82
alex_yuqian
这个作者很懒,什么都没留下…
展开
-
POJ 3331: Factorial Calculation (High Precision Problem)
Overview: Give two numbers n, m, M is 0 to 9, ask n! How many m in the result; Input: (1) t: number of test cases; (2) n, m, total T lines; Output: n! Contains the number of M, a total of T lines. Solution: There are several procedures: Recursion is ..原创 2021-03-12 12:41:18 · 198 阅读 · 4 评论 -
DP algorithm: POJ 3046
Question meaning: There are T kinds of ants, every kind has a specific amount, in total there are A amount of ants. The value of variables S and B are given, ask how many combinations are there to form s, s+1,…,B amount of ants using T kinds of A amount ..原创 2020-05-14 09:16:18 · 248 阅读 · 1 评论 -
POJ 3021 Analysis: DP algorithm
Problem Solving There are now two currencies, M-group, each with a traditional currency and an IT currency. We are going to change these two currencies into a new one. The exchange method is that the...原创 2020-03-28 03:00:12 · 230 阅读 · 1 评论