Welcome To Ke_scholar's Bl|

Ke_scholar

园龄:2年1个月粉丝:30关注:10

2025牛客寒假算法基础集训营5
摘要: 2025牛客寒假算法基础集训营5 小L的三则运算 思路 签到。 代码 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(false); cin.
11
0
0
2025寒假天梯赛训练3
摘要: 2025寒假天梯赛训练3 L1-1 今天我要赢 思路 代码 I'm gonna win! Today! 2022-04-23 L1-2 种钻石 思路 代码 #include <bits/stdc++.h> using namespace std; using i64 = long long; int
6
0
0
2025牛客寒假算法基础集训营4
摘要: 2025牛客寒假算法基础集训营4 Tokitsukaze and Balance String (easy) 思路 暴力枚举即可,复杂度 \(\mathcal{O}(2^nn^2)\)。 代码 #include <bits/stdc++.h> using namespace std; using i
7
0
0
SMU winter 2025 Personal Round 2
摘要: SMU winter 2025 Personal Round 2 A. Ichihime and Triangle 思路 \(a, b, c, d\) 单调递增,所以 \(x, y, z\) 也会单调递增。这时只需要满足 \(x + y > z\) 就行了。 我们把 \(x, y\) 取最大值:\(
6
0
0
2025牛客寒假算法基础集训营3
摘要: 2025牛客寒假算法基础集训营3 智乃的博弈游戏 思路 当石子数 n 为奇数时,先手每次取 11 个石子,剩余偶数个石子。对方被迫取与偶数互质的奇数,剩余奇数个石子。循环此过程,最终先手在石子数为 11 时获胜。若 n 为偶数,后手将采用相同策略获胜。因此,判断 n 的奇偶性即可,奇数输出 Yes,
13
0
0
点击右上角即可分享
微信分享提示
深色
回顶
收起