
数学
天心流月
这个作者很懒,什么都没留下…
展开
-
[LuoguP1025][数据加强]数的划分
原题连接:Click加强数据:ClickSolution参考博客:Click题目意思非常明确了,这是一道组合数学的题目。我就直接讲dp解法了。dp题意可以转化为将nnn个苹果放进kkk个盒子里,并且不允许空盒。设f[i][j]f[i][j]f[i][j]代表将iii个苹果放入jjj个盒子中,那么我们用解决这类问题的常用方法来分析:我们必须先保证每个盒子非空,因此在iii个苹果中...原创 2019-12-26 17:46:42 · 236 阅读 · 0 评论 -
[Codeforces]1263C Everyone is a Winner!
题目On the well-known testing system MathForces, a draw of nnn rating units is arranged. The rating will be distributed according to the following algorithm: if kkk participants take part in this event...原创 2019-12-04 16:58:09 · 540 阅读 · 0 评论 -
[CodeForces]1263A Sweet Problem
题目链接题目描述You have three piles of candies: red, green and blue candies:the first pile contains only red candies and there are rrr candies in it,the second pile contains only green candies and there ...原创 2019-12-03 22:01:47 · 353 阅读 · 0 评论