千早爱音a
千早爱音a
全部文章
分类
归档
标签
去牛客网
登录
/
注册
千早爱音a的博客
全部文章
(共68篇)
题解 | 求峰谷点数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求序列a中的峰、谷点的个数 * @param a int整型vector 序列a * @retur...
2025-11-19
0
14
题解 | 直线与圆交点间距
#include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = ...
2025-11-18
0
14
题解 | 三角形面积
#include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = ...
2025-11-18
0
13
题解 | 点到直线距离
#include <bits/stdc++.h> #include <cmath> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=...
2025-11-18
0
18
题解 | 学生综合评估系统
#include<bits/stdc++.h> using namespace std; //本题主要考察了对结构体数据的访问,以及利用这些数据进行运算和判断 // 定义学生结构体 struct Student{ int id; int academic_score; ...
2025-11-17
0
17
题解 | 两点间距离
/** * struct Point { * int x; * int y; * Point(int xx, int yy) : x(xx), y(yy) {} * }; */ class Solution { public: /** * 代码中的类名、方法名、参数名已...
2025-11-17
0
16
题解 | 最厉害的学生
#include <iostream> using namespace std; //本题主要考察结构体的用法,没有逻辑和思维上的难度,下面对用法进行一些讲解 int main() { struct student{//定义结构体struct string nam...
2025-11-17
0
15
题解 | 凯撒解密
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 进行凯撒解密 * @param password string字符串 旺仔哥哥的密码 * @par...
2025-11-15
0
12
题解 | 求阶乘
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算 n 的阶乘 * @param n int整型 * @return int整型 *...
2025-11-15
0
15
题解 | 第一宇宙速度
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算星球的第一宇宙速度 * @param M double浮点型 星球的质量 * @param r...
2025-11-15
0
14
首页
上一页
1
2
3
4
5
6
7
下一页
末页