
数论——组合数学
组合数学
_昨日不可追
这个作者很懒,什么都没留下…
展开
-
Codeforces 1359 E. Modular Stability(组合数学)
题意: 一个数组无论顺序怎么改变,总满足(((????mod????1)mod????2)…mod????????−1)mod????????=(((????mod????????1)mod????????2)…mod????????????−1)mod???????????? 找这样数组的数量 如果一个数组都是d的倍数,那个这个数组无论咋改变顺序,mod出来的结果都是0 代码 typedef long long ll; using namespace std; const int MAXN=1e5+5原创 2020-05-29 16:30:27 · 214 阅读 · 0 评论 -
Educational Codeforces Round 83 (Rated for Div. 2) D. Count the Arrays(组合数学)
传送门 题意: Your task is to calculate the number of arrays such that: each array contains ???? elements; each element is an integer from 1 to ????; for each array, there is exactly one pair of equal elements; f...原创 2020-03-10 09:49:08 · 2594 阅读 · 0 评论