金刚侠
金刚侠
全部文章
分类
归档
标签
去牛客网
登录
/
注册
金刚侠的博客
全部文章
(共108篇)
题解 | 【模板】整数优先队列
#include <iostream> using namespace std; #include <queue> int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); priority_queu...
2025-12-29
0
65
题解 | 【模板】多重集合操作
#include<bits/stdc++.h> using namespace std; #include<set> multiset<int>op_set; void insertValue(int x){ //TODO 实现插入逻辑 op_se...
2025-12-29
0
44
题解 | 【模板】集合操作
#include<bits/stdc++.h> using namespace std; #include <set> set<int>op_set; void insertValue(int x){ //TODO 实现插入逻辑 op_set.in...
2025-12-29
0
57
题解 | 大整数哈希
#include <iostream> #include <unordered_map> using namespace std; #include <map> typedef unsigned long long ull; int main() { ...
2025-12-29
0
48
题解 | 字符串哈希
#include <iostream> #include <set> #include <string> using namespace std; int main(){ int n; cin>>n; string s; ...
2025-12-27
0
65
题解 | 两数之和
#include <unordered_map> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vec...
2025-12-27
1
64
题解 | 数组计数维护
#include <iostream> using namespace std; #include<vector> int solve(vector<int>&s,int &b){ int S=0,cnt=0; for(int x:...
2025-12-27
0
53
题解 | 凯撒解密
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 进行凯撒解密 * @param password string字符串 旺仔哥哥的密码 * @par...
2025-12-27
0
56
题解 | 求阶乘
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算 n 的阶乘 * @param n int整型 * @return int整型 *...
2025-12-27
0
53
题解 | 第一宇宙速度
#include <cmath> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算星球的第一宇宙速度 * @param M double浮点...
2025-12-27
0
61
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页