费姣人
费姣人
全部文章
分类
归档
标签
去牛客网
登录
/
注册
费姣人的博客
全部文章
(共8篇)
题解 | 队列消数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param tickets int整型vector * @param k int整型 ...
2026-01-29
1
8
题解 | 验证栈序列
#include <iostream> #include <stack> using namespace std; // 入栈序列能等于出栈序列,输出是否;入栈序列一个个入栈,并于出栈序列比较,如果于出栈序列相等则出栈,循环语句,入栈前一个元素与下一个 出栈元素相等,则出栈...
2026-01-29
1
7
题解 | 直线与圆交点间距
#include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = ...
2026-01-24
0
8
题解 | 三角形面积
#include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = ...
2026-01-24
0
15
题解 | 点到直线距离
#include <bits/stdc++.h> using namespace std; //计算点到直线的距离 struct point{ double x,y; //结构体中可以有构造函数,与c的区别,c只能有变量 point(double A,doubl...
2026-01-24
1
13
题解 | 凯撒解密
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 进行凯撒解密 * @param password string字符串 旺仔哥哥的密码 * @par...
2026-01-23
1
12
题解 | 简写单词
#include <iostream> #include <string> using namespace std; //输出每个单词的首字母大写,疑似笨方法,找空格,输出下一字母 int main() { string s; char fist; ...
2026-01-22
1
12
题解 | 矩阵转置
#include <iostream> using namespace std; const int MAX = 11; //矩阵转置temp=a[i][j],a[i][j] = a[j][i]; a[j ][ i] = temp; int main() { int a[MAX...
2026-01-17
1
15