湖畔竹影12138
湖畔竹影12138
全部文章
分类
归档
标签
去牛客网
登录
/
注册
湖畔竹影12138的博客
全部文章
(共28篇)
题解 | #二叉树遍历#
//要点:1.二叉树的结构(可以先写好构造函数) // 2.先序构造二叉树,为空直接返回,如果没有构造函数,需要malloc并赋值,然后递归到左右子树 // 3.中序遍历输出二叉树 #include <iostream> #include<string> us...
2024-01-05
0
245
题解 | #球的半径和体积#
#include <iostream> #include<cmath> #include <memory> using namespace std; #define pi acos(-1) struct point { double x,y,z; }; d...
2024-01-05
0
254
题解 | #成绩排序#
#include <iostream> #include<algorithm> using namespace std; struct stu { int number; int grade; }; bool cmp(stu a,stu b) { if...
2024-01-05
0
217
题解 | #质因数的个数#
#include <iostream> #include<cstring> #include<cmath> using namespace std; #define maxn 100000 //10^9*4B约为4GB了 int a[maxn]; void isp...
2024-01-05
0
236
题解 | #手机键盘#
#include <iostream> #include<string> using namespace std; //abc def ghi //jkl mno pqrs //tuv wxyz const int tab[26]={1,2,3,1,2,3,1,2,3,1,2...
2024-01-05
0
233
题解 | #反序输出#
#include <iostream> #include<string> //其实本题直接swap(s[0],s[3]),swap(s[1],s[2])就Ok 了 using namespace std; string reverse(string s) { int ...
2024-01-04
0
172
题解 | #约数的个数#
#include <iostream> #include<cmath> #include<cstring> using namespace std; //int prime[100000]; /* void judge(int n) { memset(pr...
2024-01-04
0
211
题解 | #成绩排序#
#include <iostream> #include<string> #include<algorithm> using namespace std; struct stu { char *name; int grade; int or...
2024-01-04
0
233
首页
上一页
1
2
3
下一页
末页