Arcueid_
Arcueid_
全部文章
分类
题解(9)
归档
标签
去牛客网
登录
/
注册
Arcueid_的博客
全部文章
(共8篇)
题解 | #无人驾驶#
这题直接使用的数学方法,因为能到所以要满足a+b<=M,然后假设中间重复的步骤都一次性完成,则多余步数一定是2的倍数 #include<bits/stdc++.h> using namespace std; void change(int&nbs...
C++
2025-12-12
0
6
题解 | #字符数量#
//string读取 #include<iostream> #include<string> using namespace std; int main() { string str; ...
C++
2025-12-01
0
5
题解 | #超半的数#
摩尔投票, #include<iostream> using namespace std; using ll=long long; int main() { int n; &nb...
C++
2025-12-01
0
8
题解 | #金字塔#
#include <iostream> using namespace std; int main() { int n; whil...
C++
2025-11-25
0
10
题解 | #字符统计#
比较无脑的方法 #include <iostream> #include <cctype> using namespace std; int main() { i...
C++
2025-11-25
0
10
题解 | #素数判断#
优质解法 #include <iostream> using namespace std; bool isPrime(int n) { if (n <...
C++
2025-11-24
0
14
题解 | #零钱兑换#
没有复杂度限制直接暴力枚举 #include<iostream> using namespace std; int main() { int n;  ...
C++
2025-11-19
0
19
题解 | #3和5#
#include<iostream> using namespace std; int main() { int n; cin>>n; &...
C++
2025-11-19
0
18