银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共214篇)
题解 | 字符串优先队列
#include<bits/stdc++.h> using namespace std; priority_queue<string, vector<string>, greater<string>> s; void insertValue(strin...
2026-02-10
0
25
题解 | 结构体优先队列
#include<bits/stdc++.h> using namespace std; struct node{ int chinese, math, english, sum; }; bool operator<(node a, node b){ // TO...
2026-02-10
0
20
题解 | 【模板】整数优先队列
#include<bits/stdc++.h> using namespace std; int n,op,x; int main(){ priority_queue<int,vector<int>,greater<int>> pr; ...
2026-02-10
0
32
题解 | 不重复数字
#include<bits/stdc++.h> using namespace std; const int N=5e4+10; int T,n,a; int main(){ cin>>T; while(T--){ cin>>n; multi...
2026-02-09
0
43
题解 | 宝石计数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param jewels string字符串 * @param stones strin...
2026-02-09
0
33
题解 | 快乐数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return bool布尔型 */ ...
2026-02-09
0
25
题解 | 数对计数
#include<bits/stdc++.h> using namespace std; const int N=2e5+10; int n,c,a[N]; multiset<int> mst; int main(){ cin>>n>>c; ...
2026-02-09
0
39
题解 | 动态整数集最近值提取
#include<bits/stdc++.h> using namespace std; set<int> st; int Q; int main(){ cin>>Q; int op,x; while(Q--){ cin>>op>...
2026-02-09
0
34
题解 | 动态整数集最近值提取
#include<bits/stdc++.h> using namespace std; set<int> st; int Q; int main(){ cin>>Q; int op,x; while(Q--){ cin>>op>...
2026-02-09
0
38
题解 | 【模板】多重集合操作
#include<bits/stdc++.h> using namespace std; multiset<int> st; void insertValue(int x){ //TODO 实现插入逻辑 st.insert(x); return; } ...
2026-02-09
0
32
首页
上一页
10
11
12
13
14
15
16
17
18
19
下一页
末页