新一鑫
新一鑫
全部文章
分类
归档
标签
去牛客网
登录
/
注册
新一鑫的博客
全部文章
(共59篇)
题解 | 三角形面积
#include <bits/stdc++.h> #include <cmath> #include <math.h> using namespace std; struct point { double x, y; point(double A...
2025-09-09
0
6
题解 | 点到直线距离
#include <bits/stdc++.h> #include <cmath> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=...
2025-09-09
0
8
题解 | 学生综合评估系统
#include<bits/stdc++.h> #include <cstdio> using namespace std; // 定义学生结构体 struct Student{ int id; int academic_score; int act...
2025-09-09
0
6
题解 | 两点间距离
/** * struct Point { * int x; * int y; * Point(int xx, int yy) : x(xx), y(yy) {} * }; */ #include <cmath> class Solution { public: /**...
2025-09-09
0
6
题解 | 最厉害的学生
#include <stdio.h> int main() { int N; scanf("%d", &N); int i = 0; int jilu[100]; int jilushu; int max =...
2025-09-09
0
7
题解 | 凯撒解密
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 进行凯撒解密 * @param password string字符串 旺仔哥哥的密码 * @param n int整型 每个字符加密过程中错位的次数 * @return string字符串 *...
2025-09-09
0
5
题解 | 求阶乘
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算 n 的阶乘 * @param n int整型 * @return int整型 */ // #define mod 1000000007 // int factorialOfN(int n...
2025-09-09
0
7
题解 | 求阶乘
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算 n 的阶乘 * @param n int整型 * @return int整型 */ #define mod 1000000007 int factorialOfN(int n ) { ...
2025-09-09
0
5
题解 | 第一宇宙速度
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算星球的第一宇宙速度 * @param M double浮点型 星球的质量 * @param r double浮点型 星球的半径 * @return double浮点型 */ #includ...
2025-09-09
0
6
题解 | 第一宇宙速度
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算星球的第一宇宙速度 * @param M double浮点型 星球的质量 * @param r double浮点型 星球的半径 * @return double浮点型 */ #includ...
2025-09-09
0
6
首页
上一页
1
2
3
4
5
6
下一页
末页