陶良策
陶良策
全部文章
分类
归档
标签
去牛客网
登录
/
注册
陶良策的博客
全部文章
(共52篇)
题解 | 最小花费
#include <iostream> #include<vector> using namespace std; int caculatecost(int distance, int L1, int L2, int L3, int C1, int C2, int C3)...
2025-02-28
0
7
题解 | 最小花费
#include <iostream> #include<vector> using namespace std; int caculatecost(int distance, int L1, int L2, int L3, int C1, int C2, int C3)...
2025-02-28
0
7
题解 | 求最大最小数
#include <iostream> using namespace std; int main() { int N; int minval,maxval; while (cin >>N) { // 注意 while 处理多个 case ...
2025-02-28
0
5
题解 | 谁是你的潜在朋友
#include <iostream> #include<vector> using namespace std; int main() { int N,M; int book[201]; for(int i=0;i<201;i++)book[...
2025-02-28
0
5
题解 | Problem D
#include <iostream> using namespace std; string toPostorder(string& preorder,string& inorder){ if(preorder=="")return &qu...
2025-02-28
0
6
题解 | 二叉树
#include <iostream> #include<vector> using namespace std; void addNode(int& cnt, int m, int n) { if (m > n)return; cnt++; ...
2025-02-28
0
6
题解 | 二叉树
#include <iostream> #include<vector> using namespace std; void addNode(vector<int>& v1, int m, int n){ if(m>n)return; ...
2025-02-28
0
5
题解 | 二叉树
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b) { // 注意 while 处理多个 case while...
2025-02-28
0
5
题解 | 二叉排序树
#include <iostream> using namespace std; struct tnode { struct tnode* l; struct tnode* r; int val; }; // 初始化节点 struct tnode* initN...
2025-02-26
0
13
题解 | 魔咒词典
#include <iostream> #include<map> #include <vector> using namespace std; int main() { string s1; map<string, string>m...
2025-02-26
0
9
首页
上一页
1
2
3
4
5
6
下一页
末页