银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共166篇)
题解 | 学生综合评估系统
#include<bits/stdc++.h> using namespace std; const int N=1e3+10; // 定义学生结构体 struct Student{ int id; int academic_score; int activit...
2026-01-22
0
23
题解 | 两点间距离
/** * struct Point { * int x; * int y; * Point(int xx, int yy) : x(xx), y(yy) {} * }; */ class Solution { public: /** * 代码中的类名、方法名、参数名已...
2026-01-22
0
21
题解 | 最厉害的学生
#include<bits/stdc++.h> using namespace std; const int N=1e3+10; struct Students{ string name; int c1,c2,c3,t,number; }s[N]; bool cmp(Stud...
2026-01-22
0
22
题解 | 凯撒解密
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 进行凯撒解密 * @param password string字符串 旺仔哥哥的密码 * @par...
2026-01-22
0
20
题解 | 求阶乘
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算 n 的阶乘 * @param n int整型 * @return int整型 *...
2026-01-22
0
28
题解 | 第一宇宙速度
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算星球的第一宇宙速度 * @param M double浮点型 星球的质量 * @param r...
2026-01-22
0
16
题解 | 一元二次方程
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 判断二元一次方程组是否有解 * @param a int整型 二次项系数 * @param b i...
2026-01-22
0
34
题解 | 平方根
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求非负整数 n 的平方根 * @param n int整型 你需要求 n 的平方根 * @retu...
2026-01-22
0
22
题解 | 字符串操作
#include<bits/stdc++.h> using namespace std; string s; int n,m,l,r; char c1,c2; int main(){ cin>>n>>m; cin>>s; for(int i=...
2026-01-21
0
23
题解 | 牛牛的考试
#include<bits/stdc++.h> using namespace std; string a,b,c,d; int n; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>a>&...
2026-01-21
0
22
首页
上一页
8
9
10
11
12
13
14
15
16
17
下一页
末页