Nitrene
Nitrene
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Nitrene的博客
全部文章
(共53篇)
题解 | 小苯的比赛上分
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,x,temp; multiset<int> pq; cin>>n>>m; for(int ...
2025-11-04
0
21
题解 | 两端问优先队列
#include<bits/stdc++.h> using namespace std; int main(){ int n; multiset<int> pq; cin >>n; while(n--){ int x...
2025-10-31
0
24
题解 | 结构体优先队列
#include<bits/stdc++.h> using namespace std; struct node{ int chinese, math, english, sum; }; bool operator<(node a, node b){ if(a....
2025-10-31
0
23
题解 | 结构体优先队列
#include<bits/stdc++.h> using namespace std; struct node{ int chinese, math, english, sum; }; bool operator<(node a, node b){ if(a....
2025-10-30
0
27
题解 | 【模板】整数优先队列
#include<bits/stdc++.h> using namespace std; int main(){ priority_queue <int> pq; int q; cin>>q; while(q--){ ...
2025-10-30
0
18
题解 | 不重复数字
#include<bits/stdc++.h> using namespace std; int main() { int T; cin >> T; unordered_set<int> b; while (T--) { ...
2025-10-29
0
35
题解 | 宝石计数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param jewels string字符串 * @param stones strin...
2025-10-29
0
34
题解 | 快乐数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return bool布尔型 */ ...
2025-10-27
0
27
题解 | 数对计数
#include<bits/stdc++.h>using namespace std;int main(){ multiset<int> A;//因为要包括出现次数,所以要开多重集合 int n,c,sum=0; cin>>n>>c;...
2025-10-22
0
25
题解 | 动态整数集最近值提取
#include<bits/stdc++.h> using namespace std; set<int> s; int main() { int Q; int temp; cin >> Q; while (Q--) { ...
2025-10-22
0
27
首页
上一页
1
2
3
4
5
6
下一页
末页