摘要: 传送门 质数处取值易算 加入质数幂次易算 只要方便加入质数幂次就算不是积性函数也能 min25 筛 点击查看代码 #include <bits/stdc++.h> using namespace std; #define INF 0x3f3f3f3f #define N 200010 #define 阅读全文
posted @ 2022-04-11 21:20 Administrator-09 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 传送门 人类智慧可知只有逆序对数为奇数的排列不优美 i 可以用 [1, i+1] f ij 第 i 个数,j 没有用过 点击查看代码 #include <bits/stdc++.h> using namespace std; #define INF 0x3f3f3f3f #define N 5010 阅读全文
posted @ 2022-04-11 21:18 Administrator-09 阅读(2) 评论(0) 推荐(0) 编辑