2025牛客寒假算法基础集训营6
摘要:
2025牛客寒假算法基础集训营6 A-复制鸡_2025牛客寒假算法基础集训营6 (nowcoder.com) 思路 将连续的元素看成一个即可。 代码 #include <bits/stdc++.h> using namespace std; using i64 = long long; void s
SMU winter 2025 Personal Round 3
摘要:
SMU winter 2025 Personal Round 3 A. Vasya and Book 思路 计算从起始页 \(x\) 到目标页 \(y\) 的最小按键次数。每次按键可向前或向后滚动 \(d\) 页,但不可越界。解题关键在于分析三种可能路径: 直接移动:若 \(|x - y|\) 能被