摘要:
Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. 阅读全文
posted @ 2020-02-17 15:39
quanjun
阅读(220)
评论(0)
推荐(0)
摘要:
题目链接: "https://www.luogu.com.cn/problem/P4017" 解题思路: 定义 $f[i]$ 为到点 $i$ 的方案数,则: $$f[i] = \sum_{j \to i}{f[j]}$$ 其中 $j \to i$ 表示存在一条从 $j$ 到 $i$ 的边。 实现代码 阅读全文
posted @ 2020-02-17 11:27
quanjun
阅读(238)
评论(0)
推荐(0)
摘要:
题目链接: "https://www.luogu.com.cn/problem/P1964" 对于第 $i$ 件物品: 如果 $a_i$ 能被 $c_i$ 整除,则将其转换成 $\frac{a_i}{c_i}$ 件体积为 $1$,价格为 ${c_i} \cdot b_i$ 的物品; 如果 $a_i$ 阅读全文
posted @ 2020-02-17 10:28
quanjun
阅读(311)
评论(0)
推荐(0)
浙公网安备 33010602011771号