duire
duire
全部文章
分类
归档
标签
去牛客网
登录
/
注册
duire的博客
全部文章
(共23篇)
题解 | 二进制不同位数
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; long long x = 0; x = m^n; int cnt =...
2025-12-09
0
11
题解 | 小苯的数字排序
#include<bits/stdc++.h> using namespace std; void solve(){ int n; cin>>n; vector<int> even,odd; for(...
2025-12-03
0
9
题解 | 清楚姐姐的糖葫芦
#include<bits/stdc++.h> using namespace std; int main(){ string s; int cnt = 0; cin>>s; for(size_t i=0;i<s.size();i++){...
2025-11-25
0
14
题解 | 数颜色
#include<bits/stdc++.h> using namespace std; int main(){ string s; int a=0,b=0,c=0; cin>>s; for(int i=0;i<s.size();i++){ if(s[i]=...
2025-09-16
0
23
题解 | 买橘子
#include <iostream> #include <queue> #include <vector> using namespace std; //简单背包问题 const int INF = 0x3f3f3f3f; const int MAXV = 10...
2025-09-15
0
30
题解 | 字符串操作
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; string s; cin>>s; for(int i=0;i<m;i++){ ...
2025-08-23
1
39
题解 | 好串
#include<bits/stdc++.h> using namespace std; bool check(string s){ stack<char> st; int len = s.size(); for(int i=0;i<len;i++){ if(...
2025-08-21
0
30
题解 | 【模板】栈的操作
#include<bits/stdc++.h> using namespace std; int main(){ stack<int> s; ios::sync_with_stdio(false); cin.tie(0); int n;cin&...
2025-08-14
1
40
题解 | 两点间距离
/** * struct Point { * int x; * int y; * Point(int xx, int yy) : x(xx), y(yy) {} * }; */ class Solution { public: /** * 代码中的类名、方法名、参数名已...
2025-08-14
0
45
题解 | 矩阵转置
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; int a[n][m]; for(int i=0;i<n;i++){ for(int j=0...
2025-08-12
0
50
首页
上一页
1
2
3
下一页
末页