摘要:
P4994 终于结束的起点 解题思路 几个要点 : 一、 不能用数组,可能会爆; 二、 由于数可能溢出,每次加之后要对M取模,我习惯叫它对于M的特征值。 这个和码蹄集有一题有点像,不过那题是找规律题 #include<iostream> using namespace std; int main() 阅读全文
posted @ 2026-05-21 19:50
shuiwangrenjia
阅读(2)
评论(0)
推荐(0)
摘要:
P1025 [NOIP 2001 提高组] 数的划分 解题思路 方法一:DFS 一步步枚举下一个可选的数。 #include<iostream> using namespace std; int n,k; long long ans = 0; void dfs(int remain,int cnt, 阅读全文
posted @ 2026-05-21 08:21
shuiwangrenjia
阅读(4)
评论(0)
推荐(0)

浙公网安备 33010602011771号