陶良策
陶良策
全部文章
分类
归档
标签
去牛客网
登录
/
注册
陶良策的博客
全部文章
(共66篇)
题解 | 二叉树
#include <iostream> #include<vector> using namespace std; void addNode(vector<int>& v1, int m, int n){ if(m>n)return; ...
2025-02-28
0
29
题解 | 二叉树
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b) { // 注意 while 处理多个 case while...
2025-02-28
0
25
题解 | 二叉排序树
#include <iostream> using namespace std; struct tnode { struct tnode* l; struct tnode* r; int val; }; // 初始化节点 struct tnode* initN...
2025-02-26
0
34
题解 | 魔咒词典
#include <iostream> #include<map> #include <vector> using namespace std; int main() { string s1; map<string, string>m...
2025-02-26
0
30
题解 | A + B
#include <iostream> #include<map> #include<sstream> using namespace std; int main() { map<string,int>m1; m1["one...
2025-02-26
0
33
题解 | Median
#include <iostream> #include<vector> using namespace std; int main() { vector<int>v1; vector<int>v2; string s1; ...
2025-02-26
0
30
题解 | 开门人和关门人
#include <iostream> #include<map> using namespace std; int main() { int M; while(scanf("%d",&M)!=EOF){ ma...
2025-02-26
0
30
题解 | 字符串排序
#include <iostream> #include<algorithm> using namespace std; int main() { char arr[21]; while (cin >>arr) { // 注意 while 处理多个...
2025-02-25
0
27
题解 | Primary Arithmetic
#include <iostream> using namespace std; int main() { unsigned long a, b; while (cin >> a >> b) { // 注意 while 处理多个 case ...
2025-02-23
0
30
题解 | Grading
#include <iostream> #include<math.h> using namespace std; int maxval(int a, int b, int c){ int tmp=a; if(tmp<b)tmp=b; if(t...
2025-02-23
0
28
首页
上一页
1
2
3
4
5
6
7
下一页
末页