霜山雨迟
霜山雨迟
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
霜山雨迟的博客
全部文章
(共248篇)
题解 | 字符串输出1.0
#include <iostream> using namespace std; int main() { int i = 3; while(i--){ cout << "Welcome to ACM / ICPC!" <<e...
2026-01-29
0
7
题解 | 凯撒解密
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 进行凯撒解密 * @param password string字符串 旺仔哥哥的密码 * @par...
2026-01-25
0
11
题解 | 求阶乘
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算 n 的阶乘 * @param n int整型 * @return int整型 *...
2026-01-23
0
13
题解 | 第一宇宙速度
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算星球的第一宇宙速度 * @param M double浮点型 星球的质量 * @param r...
2026-01-23
0
11
题解 | 一元二次方程
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 判断二元一次方程组是否有解 * @param a int整型 二次项系数 * @param b i...
2026-01-23
0
11
题解 | 平方根
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求非负整数 n 的平方根 * @param n int整型 你需要求 n 的平方根 * @retu...
2026-01-23
0
9
题解 | a 乘 b 问题(函数)
class Solution { public: long long aTimesB(long long a, long long b) { // write code here long long sum = a*b; return...
2026-01-23
0
11
题解 | a 加 b 问题(函数)
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 实现求两个参数的和 * @param Integer1 int整型 * @param Integ...
2026-01-23
0
12
题解 | 字符串操作
#include <iostream> #include <string> using namespace std; int main() { int n, m; cin >> n >> m; string s; ci...
2026-01-23
0
13
题解 | 字符串操作
#include <iostream> #include<string> using namespace std; int main() { int n,m; cin >> n >> m; string s; cin ...
2026-01-23
0
12
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页