会员
商店
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LegendStane
AFO
博客园
首页
新随笔
联系
订阅
管理
随笔 - 90
文章 - 0
评论 - 27
阅读 -
20062
07 2022 档案
[题解] Codeforces 468 E Permanent 折半,DP,图论
摘要:题目 建立一个二分图,左右各n个点,在左边的第x个点和右边的第y个点之间连一条权值为
a
x
,
y
a
x
,
y
的边。根据“积和式”的定义,我们是要在矩阵中选择n个位置,满足任意两个位置不共行、不共列,并计算所有选择方案的对应位置的值的积之和。显然,每一种选位置的方案对应这个二分图的一个完美匹配,我们现在要计
阅读全文
posted @
2022-07-19 22:14
LegendStane
阅读(59)
评论(0)
推荐(0)
编辑
[笔记] 求质数的原根
摘要:素数的原根的定义:若
g
0
,
g
1
⋯
g
p
−
1
g
0
,
g
1
⋯
g
p
−
1
在mod p意义下各不相同,则g是p的一个原根。质数的最小的原根通常很小,所以从2开始枚举每一个正整数,判断其是否为p的原根。 判断的方法:如果g不是p的原根,则存在
0
≤
i
<
j
≤
p
−
1
0
≤
i
<
j
≤
p
−
1
满足
g
i
≡
g
j
g
i
≡
g
j
阅读全文
posted @
2022-07-08 21:53
LegendStane
阅读(716)
评论(0)
推荐(0)
编辑
公告
昵称:
LegendStane
园龄:
2年10个月
粉丝:
25
关注:
0
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
积分与排名
积分 - 21625
排名 - 71895
随笔分类
笔记(9)
其它(2)
收藏(2)
题解(78)
随笔档案
2024年6月(2)
2023年7月(1)
2023年3月(6)
2023年2月(4)
2023年1月(10)
2022年12月(17)
2022年11月(15)
2022年10月(8)
2022年9月(4)
2022年8月(10)
2022年7月(2)
2022年6月(2)
2022年5月(9)
阅读排行榜
1. 解决 Windows VS Code C/C++ 代码补全间歇性失效的问题(2064)
2. CSP-S 2022 第二轮 题解(1605)
3. [笔记] 兰道定理 Landau's Theorem(1184)
4. [题解] Codeforces Global Round 22 1738 A B C D E F 题解(927)
5. Codeforces Round #857 Div.1/Div.2 CF1801/1802 2A~1F 题解(876)
6. [笔记] 求质数的原根(716)
7. 最小生成树 Boruvka算法 及例题 (CSAcademy MST and Rectangles) (598)
8. Codeforces Round #854 by cybercats (Div. 1+2) 1799 A~G 题解(592)
9. ACM-ICPC World Finals 2022 L Where Am I? 题解(536)
10. [笔记] 二维FFT(508)
评论排行榜
1. Codeforces Gym 100958 E Cellular Automaton (Makoto rng_58 Soejima contest) 题解(3)
2. [题解] Atcoder Regular Contest ARC 146 A B C D 题解(2)
3. Educational Codeforces Round 167 (Rated for Div. 2) CF 1989 题解(1)
4. Codeforces Round #854 by cybercats (Div. 1+2) 1799 A~G 题解(1)
5. LOJ 3395 集训队作业 Yet Another Permutation Problem 题解 (生成函数技巧)(1)
推荐排行榜
1. [题解] Codeforces Global Round 22 1738 A B C D E F 题解(4)
2. Codeforces Round #857 Div.1/Div.2 CF1801/1802 2A~1F 题解(3)
3. Codeforces Round #854 by cybercats (Div. 1+2) 1799 A~G 题解(3)
4. [题解] Codeforces Global Round 23 1746 A B C D E1 F 题解 (3)
5. Atcoder Beginner Contest ABC 284 Ex Count Unlabeled Graphs 题解 (Polya定理)(2)
6. Codeforces Good Bye 2022 CF 1770 F Koxia and Sequence 题解(2)
7. Codeforces Round #829 (Div. 1/Div. 2) 1753 A B C D 题解(2)
8. [题解] Atcoder Regular Contest ARC 151 A B C D E 题解(2)
9. [题解] Codeforces Dytechlab Cup 2022 1737 A B C D E 题解(2)
10. [题解] Atcoder ARC 142 D Deterministic Placing 结论,DP(2)
最新评论
1. Re:Educational Codeforces Round 167 (Rated for Div. 2) CF 1989 题解
太牛了orz
--一只大黄猫
2. Re:Codeforces Round #854 by cybercats (Div. 1+2) 1799 A~G 题解
orz
--DerekFeng
3. Re:LOJ 3395 集训队作业 Yet Another Permutation Problem 题解 (生成函数技巧)
orz
--DerekFeng
4. Re:Codeforces 1630 E Making It Bipartite 题解 (Dilworth定理)
orz
--DerekFeng
5. Re:Atcoder Regular Contest ARC 153 A B C D 题解
orz
--DerekFeng
点击右上角即可分享