摘要:
1. BSGS 例题:P3846 【模板】BSGS / [TJOI2007] 可爱的质数 BSGS 的 oi wiki 介绍:链接 但是我感觉还是 chebs大佬的博客 更好理解。 示例程序: #include <bits/stdc++.h> using namespace std; using l 阅读全文
摘要:
双倍经验 题目链接:https://www.luogu.com.cn/problem/P1495 解题思路:完全来自 oi wiki 注意:要开 __int128,不然会被 hack。 示例程序: #include <bits/stdc++.h> using namespace std; using 阅读全文
摘要:
题目链接:https://www.luogu.com.cn/problem/P1559 模拟退火模板题。 实例程序: #include <bits/stdc++.h> using namespace std; int n, P[22][22], Q[22][22], p[22]; long long 阅读全文