随笔分类 -  数论-排列组合或容斥原理

摘要:题目链接:http://codeforces.com/problemset/problem/1288/C C. Two Arrays time limit per test 1 second memory limit per test 256 megabytes input standard inp 阅读全文
posted @ 2020-02-03 20:47 执||念 阅读(325) 评论(0) 推荐(0)
摘要:学习博客:https://blog.csdn.net/m0_37286282/article/details/78869512 对容斥原理的描述 容斥原理是一种重要的组合数学方法,可以让你求解任意大小的集合,或者计算复合事件的概率。 描述 容斥原理可以描述如下: 要计算几个集合并集的大小,我们要先将 阅读全文
posted @ 2019-04-21 14:28 执||念 阅读(5880) 评论(0) 推荐(0)
摘要:题目链接:https://vjudge.net/contest/237052#problem/H Here we go! Let's define the diversity of a list of numbers to be the difference between the largest 阅读全文
posted @ 2018-07-14 13:17 执||念 阅读(909) 评论(0) 推荐(0)