
组合计数
永夜莫明
菜是原罪
展开
-
不容易系列之(4)——考新郎(错排)
题目链接:https://cn.vjudge.net/problem/HDU-2049国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的:首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排;然后,让各位新郎寻找自己的新娘.每人只准找一个,并且不允许多人找一个.最后,揭开盖头,如果找...原创 2019-04-07 20:28:16 · 524 阅读 · 0 评论 -
Dandelion(卡特兰数+费马小定理求逆元)
题目链接:http://whu2019.contest.codeforces.com/group/YyBKO8xFiH/contest/102167/problem/DD. Dandeliontime limit per test1.0 smemory limit per test256 MBinputstandard inputoutputstandard o...原创 2019-04-08 17:48:29 · 408 阅读 · 0 评论 -
Just Jump(组合数学+dp)
链接:https://ac.nowcoder.com/acm/contest/888/J来源:牛客网题目描述Gromah and LZR have entered the final level. In this level, they need to cross the sea of death to gain the treasures.The sea of death...原创 2019-08-16 01:26:59 · 526 阅读 · 0 评论