Herman欧y
Herman欧y
全部文章
分类
题解(18)
归档
标签
去牛客网
登录
/
注册
Herman欧y的博客
Rating+++++
TA的专栏
11篇文章
0人订阅
牛客语法入门班
10篇文章
0人学习
回文对称数#题解
题解#鹏
牛客周赛#题解
1篇文章
0人学习
牛客周赛125#题解#小苯的01合并
全部文章
(共71篇)
题解 | 神秘石像的镜像序列
#include <iostream>//由于要逆序输出,我们可以考虑用栈,因为stack是先进后出的容器 #include <stack>//stack的头文件 using namespace std; using ll = long long ; int main() {...
2025-12-19
0
20
题解 | 数位之和
#include <iostream> #include <cmath> using namespace std; using ll = long long ; int main() { ll n;//ll意思是long long,定义ll类型变量, cin...
2025-12-19
0
23
题解 | 牛牛学数列5
#include <iostream>//头文件,这是写给未来的萌新的题解, using namespace std;//根据题目所给的斐波那契数列的定义,我们知道当项n>2时,第n+1项总是等于前两项之和,所以我们不妨定义一个递归函数,来解决这个兔子数列问题 using ll =...
2025-12-19
0
19
题解 | 牛牛的判断题
#include <iostream> using namespace std; int main() { int x,l,r; cin>>x>>l>>r; if(x>=l&&x<=r)cout<...
2025-12-16
0
20
题解 | 及格分数
#include <iostream> using namespace std; int main() { int x; cin>>x;//输入分数 if(x>=60)cout<<"Pass";//如果分数大于等于...
2025-12-16
0
21
题解 | 最高分与最低分之差
#include <iostream> #include <algorithm>//调用里面的sort库函数 #include <vector>//调用动态数组 using namespace std;//由于题目要求求出最大值与最小值的差,我们不妨命名一个数组a...
2025-12-16
0
26
题解 | 学生基本信息输入输出
#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() { int number; char ch; double c...
2025-12-16
0
25
题解 | A×A=B
#include <iostream>//新人的第3发题解,如有不足请dalao指出,我将改进,感谢! #include <cmath>//首先题目是要我们判断我们输入的数是否存在完全平方数,所以我们直接使用sqrt函数,求其算术平方根,尽管sqrt函数返回值类型是浮点型,我...
2025-12-16
0
23
题解 | B=A×A
#include <iostream> #include <cmath> using namespace std; int main() { int T; cin >> T; while (T--) { long long...
2025-12-16
1
20
题解 | 小乐乐找最大数
#include <iostream> using namespace std;//反正也就4位数求最大数,对于我们新人。我们不妨使用交换排序,下面就是accode,如果看不明白的话,建议在草稿纸上模拟一下,感兴趣的话可以去网上学习下冒泡排序, int main() { int ...
2025-12-16
0
17
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页