Xue1_
Xue1_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Xue1_的博客
全部文章
(共9篇)
题解 | 清楚姐姐买竹鼠
#include <iostream> #include <algorithm> using namespace std; int main() { // 1. 必须使用 long long 防止 10^9 * 10^9 溢出 long long a, b...
2026-04-21
0
12
题解 | 全排列
考察stl中next_permutation的运用 #include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int>a(n); ...
2026-04-21
0
14
题解 | 数水坑
#include <bits/stdc++.h> using namespace std; int dx[]={-1,1,0,0,-1,-1,1,1}; int dy[]={0,0,-1,1,-1,1,-1,1}; vector<vector<bool>>vis;...
2026-04-21
0
16
题解 | 小红书推荐系统
unordered_map,自定义sort,stringstream的应用 #include <bits/stdc++.h> using namespace std; bool cmp(pair<string,int>&a,pair<string,int>...
2026-04-21
0
11
题解 | 预知
#include <iostream> #include <vector> #include <algorithm> using namespace std; void solve() { int n; cin >> n; ...
2026-04-21
0
10
题解 | 小红的矩阵染色
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; int main() { // 加速输入输出...
2026-04-20
0
17
题解 | 挑7
#include <iostream> using namespace std; int contain7(int n) { int cnt=0; for(int i=1;i<=n;i++) { if(i%7==0) c...
2026-04-18
0
14
题解 | 不要三句号的歪
#include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; long long tail=s.find_last_of(','); string s...
2026-04-17
0
14
题解 | 小红的双生数
#include <iostream> #include <string> #include <vector> using namespace std; int cmpPair(int d, char a, char b) { int x = a - '...
2026-03-30
0
22