zxm6668
zxm6668
全部文章
分类
归档
标签
去牛客网
登录
/
注册
zxm6668的博客
全部文章
(共8篇)
题解 | 小红的排列构造②
#include <bits/stdc++.h> using namespace std; using ll = long long; #define all(x) (x).begin(), (x).end() #define sz(x) ((int)(x).size()) const ...
2026-03-19
0
60
题解 | 小红的回文串
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin>>t; while(t--){ ...
2025-12-31
0
73
题解 | 穷哈哈~
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; string a; c...
2025-12-27
0
81
题解 | 买橘子
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; if(n%8==0){ ...
2025-12-27
0
82
题解 | 机器翻译
#include<bits/stdc++.h> using namespace std; int main() { int m, n; cin >> m >> n; int cnt = 0; queue<int> a;//存文章 queue&...
2025-12-05
0
60
题解 | 表达式求值
class Solution { public: int calc(int a,int b,char c){ if(c=='+'){ return a+b; } if(c=='-')return a-b; if(c=='*')return a*b; if(c=='/')r...
2025-12-03
0
68
题解 | 验证栈序列
#include <bits/stdc++.h> using namespace std; int main() { int e; cin >> e; for (int v = 1; v <= e; v++) { int n; cin >> n...
2025-12-02
1
88
题解 | 扫雷
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; vector<string> a(n); for...
2025-11-20
0
69