bigDog_
bigDog_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
bigDog_的博客
全部文章
(共7篇)
题解 | 二叉树
#include <iostream> #include <cmath> using namespace std; int main() { int m,n; while(cin>>m>>n){ if(m==0&...
2025-03-25
0
35
题解 | 哈夫曼树
#include <iostream> #include <vector> #include <algorithm> using namespace std; bool comp(int a,int b){ return a>b; } int m...
2025-03-24
0
31
题解 | 简单计算器
#include <iostream> #include <stack> #include <cctype> using namespace std; int _priority(char c) { if (c == '+' || c == '-') r...
2025-03-23
0
30
题解 | 找位置
#include <iostream> using namespace std; void _measure(int index, string str) { char c = str[index]; // format of output cout <<...
2025-03-23
0
32
题解 | 复数集合
#include <iostream> #include <vector> #include <cmath> #include <algorithm> using namespace std; // 阅读一遍就行,有一些注意:如库函数调用、数字字符转...
2025-03-16
0
35
题解 | 二叉排序树
#include <iostream> using namespace std; struct tnode { int data; tnode* right, *left; tnode() {}; tnode(int x): data(x), left(...
2025-03-16
0
37
题解 | a+b 简单模拟加法运算
#include <iostream> #include <algorithm> #include <vector> using namespace std; vector<int> _add(string lag,string sma){ ...
2025-03-03
1
45