摘要: [NOIP2012 普及组] 摆花 [NOIP2012 普及组] 摆花 题意 有 \(n\) 个数,每种可以选 \(0 \le x_i \le a_i\) 个,问有多少种方法可以使得 \(\sum_{i=1}^n x_i = m\) 。 Solution 1. 深搜 \(dfs\) 显然可以先暴力深 阅读全文
posted @ 2023-09-21 18:37 Laughing_xxx 阅读(67) 评论(0) 推荐(0)
摘要: A. Two Vessels Two Vessels contest Two Vessels problemset 一道诈骗题。 Problem 给你三个杯子,前两个杯子分别装着 \(a\) ,\(b\) 克水,第三个杯子里是空的,最多能装 \(c\) 克水。每次你能从任意杯子里取出 \(c\) 克 阅读全文
posted @ 2023-09-18 20:48 Laughing_xxx 阅读(31) 评论(0) 推荐(0)