牛客596495425号
牛客596495425号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客596495425号的博客
全部文章
(共74篇)
题解 | 成绩排序
#include <iostream> #include<vector> #include<algorithm> using namespace std; struct student { string name; int age; in...
2025-03-20
0
16
题解 | 二叉树遍历
#include <iostream> #include <string> using namespace std; struct treenode { char data; treenode* left = NULL; treenode* righ...
2025-03-20
0
18
题解 | 二叉排序树
#include <iostream> using namespace std; struct tree { int data; tree* parent; tree* left=NULL; tree* right=NULL; }; void buil...
2025-03-20
0
15
题解 | 树查找
#include <iostream> #include<cstring> using namespace std; const int null = 0x3f3f3f3f; const int N = 1010; int e[N]; int d; bool isempty...
2025-03-20
0
17
题解 | 打牌
#include <iostream> #include<string> using namespace std; int main() { string str1, str2; while (cin >> str1 >> str2)...
2025-03-19
0
16
题解 | 矩阵幂
#include <iostream> #include<cstring> #include<string> using namespace std; const int N = 12; int n; int mode[N][N], res[N][N]; //这...
2025-03-19
0
16
题解 | 素数
#include <iostream> using namespace std; const int N = 10010; bool visit[N]; int main() { int n; while (cin >> n) { // 注意 while 处...
2025-03-19
0
15
题解 | 求解立方根
#include <iostream> using namespace std; int main() { double accu = 1e-3; double l = -20, r = 20; double x; cin >> x; ...
2025-03-19
0
17
题解 | 搬水果
#include<iostream> #include<queue> using namespace std; int main() { priority_queue<int,vector<int>,greater<int>>heap;...
2025-03-19
0
15
题解 | 排列与二进制
#include <iostream> using namespace std; //二进制包含几个末尾0取决于他包含几个因子2 //也就是要找n-m+1~n中包含几个因子2 int f(int n,int x){ //求n的阶乘中包含几个质因子x int res = ...
2025-03-19
0
18
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页