金刚侠
金刚侠
全部文章
分类
归档
标签
去牛客网
登录
/
注册
金刚侠的博客
全部文章
(共98篇)
题解 | 旺仔哥哥转圈圈
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算出旺仔哥哥最后会站在哪位小朋友旁边 * @param a int整型vector 第 i 个小朋友的数字...
2026-01-10
0
58
题解 | 旺仔哥哥挤地铁
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算旺仔哥哥在地铁上的最长停留时间 * @param t int整型vector 序列 t,表示地铁在相邻...
2026-01-10
0
64
题解 | 【模板】序列操作
#include <iostream> using namespace std; #include <vector> #include <algorithm> int main() { int n; cin>>n; vector...
2026-01-10
0
72
题解 | 两直线交点
#include <bits/stdc++.h> using namespace std; struct point { double x, y; point(double A, double B) { x = A, y = B; } p...
2026-01-10
0
67
题解 | 直线与圆交点间距
#include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } point() = ...
2026-01-06
0
70
题解 | 三角形面积
//叉乘法计算三角形面积 #include <bits/stdc++.h> using namespace std; struct point{ double x,y; point(double A,double B){ x=A,y=B; } ...
2026-01-06
0
74
题解 | 二进制数1
#include <iostream> using namespace std; int main() { long long x; cin>>x; int cnt=0; while (x) { cnt+=x&1; ...
2026-01-06
0
54
题解 | 点到直线距离
#include <bits/stdc++.h> #include <cmath> #include <math.h> using namespace std; struct point{ double x,y; point(double A,d...
2026-01-05
0
56
题解 | 上三角矩阵判定
#include <iostream> using namespace std; #include <vector> int main() { int n; cin>>n; vector<vector<int>>...
2026-01-05
0
69
题解 | 硬币凑钱
#include <iostream> using namespace std; #include <vector> #include <algorithm> int main() { const int INF =0x3f3f3f3f; int ...
2026-01-04
0
57
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页