谜一样的Andy
谜一样的Andy
全部文章
分类
归档
标签
去牛客网
登录
/
注册
谜一样的Andy的博客
全部文章
(共43篇)
题解 | 字符串优先队列
#include<bits/stdc++.h> #include <ostream> #include <queue> using namespace std; priority_queue<string,vector<string>,great...
2025-10-17
0
28
题解 | 结构体优先队列
#include<bits/stdc++.h> #include <queue> using namespace std; struct Student{ int yuwen,shuxue,waiyu; Student(int a,int b,int c){ ...
2025-10-17
0
34
题解 | 【模板】整数优先队列
#include<bits/stdc++.h> #include <set> using namespace std; multiset<int>s;int n,op,x; int main(){ cin>>n; for (int i=...
2025-10-17
0
26
题解 | 不重复数字
#include<bits/stdc++.h> #include <vector> using namespace std; unordered_set<int>s;int T,n,a; int main(){ cin>>T; for ...
2025-10-16
0
33
题解 | 宝石计数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param jewels string字符串 * @param stones strin...
2025-10-16
0
33
题解 | 快乐数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return bool布尔型 */ ...
2025-10-16
0
20
题解 | 数对计数
#include<bits/stdc++.h> using namespace std; int N,C,temp,jishuqi;multiset<int>M;bool zhongzhi{0}; int main(){ cin>>N>>C; ...
2025-10-16
0
24
题解 | 动态整数集最近值提取
#include<bits/stdc++.h> using namespace std; int Q,op,x;set<int>S; int main(){ cin>>Q; for (int i=0; i<Q;++i) { c...
2025-10-16
0
20
题解 | 【模板】多重集合操作
#include<bits/stdc++.h> #include <set> using namespace std; int n,opt,x;multiset<int>Set; int main(){ cin>>n; for (int...
2025-10-16
0
25
题解 | 【模板】集合操作
#include<bits/stdc++.h> using namespace std; set<int>M;int n,opt,x; int main(){ cin>>n; for (int i=0; i<n;++i) { ...
2025-10-15
0
34
首页
上一页
1
2
3
4
5
下一页
末页