smartiphone
smartiphone
全部文章
分类
题解(6)
归档
标签
去牛客网
登录
/
注册
smartiphone的博客
全部文章
(共27篇)
题解 | 相助(easy)
#include<bits/stdc++.h> #define INF 0x3fffffff #define endl '\n' using namespace std; void solve() { int n;cin >> n; vector<in...
2026-01-03
0
17
题解 | 先序遍历、中序遍历和后序遍历
#include<bits/stdc++.h> #define endl '\n' using namespace std; void dlr(int root); void ldr(int root); void lrd(int root); vector<vector<...
2026-01-01
0
20
题解 | 人人都是好朋友
#include<bits/stdc++.h> #define endl '\n' using namespace std; class dsu { vector<int> par; vector<int> rank; public: ...
2025-12-30
1
20
题解 | 小红的树上删边
#include <vector> #pragma GCC optimize(2) #include<bits/stdc++.h> #define endl '\n' #define INF 0x7fffffff #define _ << ' ' <<...
2025-12-27
0
17
题解 | 01串题
#include<bits/stdc++.h> #define endl '\n' using namespace std; void solve() { int a,b,x; cin >> a >> b >> x; if(x...
2025-12-18
0
22
题解 | 游游的字符重排
#include<bits/stdc++.h> #define endl '\n' using namespace std; int main() { string s;cin >> s; int len = s.length(); int ans ...
2025-12-03
0
15
题解 | 小sun的假期
最开始没看内存限制,写了朴素差分 #include<bits/stdc++.h> #define endl '\n' using namespace std; int main() { int n,m;cin >> n >> m; vector&...
2025-11-27
0
23
题解 | 小红杀怪
#include<bits/stdc++.h> using namespace std; int main() { cin.tie(nullptr)->sync_with_stdio(false); int a,b,x,y; cin >> a ...
2025-11-26
0
24
题解 | 圆与三角形
#include <cstdio> int main() { double r;scanf("%lf",&r); printf("%.2lf",r+1); return 0; } 题目太奇怪了,感觉像是硬凑出来的首先...
2025-11-25
0
26
题解 | #小红的踏前斩#
#include<bits/stdc++.h> #define endl '\n' #define int long long using namespace std; void solve(){ int n;cin>>n; vector<int> a(n+1...
C++
贪心
2025-11-24
0
37
首页
上一页
1
2
3
下一页
末页