#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e18;/* ...
分类:
其他好文 时间:
2020-06-04 19:38:52
阅读次数:
55
题意: 给出若干行字符串和 空格,输出:开头,结尾都没有空格;每一行 两个字符串之间最少有一个空格,每一列字符串 左对齐。 #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> // for mem ...
分类:
其他好文 时间:
2020-06-04 13:56:09
阅读次数:
53
题目如下: 思路: 1.输入完成后会按enter 要记得\n也会被计入数字喔! 代码: #include<cstdio> #include<cstring>> #include<iostream> using namespace std; int main(){ string ss; getline ...
分类:
移动开发 时间:
2020-06-03 13:43:20
阅读次数:
111
<table> <caption>表格标题</caption> <thead> <tr> <th>表头1</th> <th>表头2</th> <th>表头3</th> </tr> </thead> <tbody> <tr> <td>数据1</td> <td>数据2</td> <td>数据3</td> ...
分类:
其他好文 时间:
2020-06-02 14:57:05
阅读次数:
72
#include<bits/stdc++.h> const int N=100+10; const int T=5000; using namespace std; int n,t,k,ans; int v[N],h[N],f[T]; int now; //如果不考虑大的,x=t-h[i] //考虑 ...
分类:
其他好文 时间:
2020-06-01 21:08:26
阅读次数:
98
1 #include <iostream> 2 #include <iomanip> 3 #include <cmath> 4 using namespace std; 5 6 int main() 7 { 8 double num; 9 cin>>num; 10 num=sqrt(num); 11 ...
分类:
其他好文 时间:
2020-06-01 13:49:42
阅读次数:
58
题目如下: 思路: 1.看清题目:每个数字保留五个场宽!意思是每个数字前面要空四个格子 2.利用c++的函数进行全排列 代码如下: #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int mai ...
分类:
其他好文 时间:
2020-05-31 15:54:25
阅读次数:
70
先点赞后关注,防止会迷路 寄语:长风破浪会有时,直挂云帆济沧海。 本文已收录至https://github.com/likekk/-Blog欢迎大家star 😄😄😄 ,共同学习,共同进步。如果文章有错误的地方,欢迎大家指出。后期将在将github上规划前端学习的路线和资源分享。 前言 亲爱的读 ...
分类:
其他好文 时间:
2020-05-31 11:03:47
阅读次数:
111
AVL树 AVL树是平衡二叉搜索树,比普通二叉搜索树多了一个平衡功能; 当一个节点的左子树与右子树的高度差超过1时 ,就被认为是不平衡的。然后通过旋转二叉树维持平衡。 插入操作 左节点的左子树插入操作(单旋转)插入5号: 左节点的右子树插入操作(双旋转)插入5号: ] 删除操作: 需要删除一个节点时 ...
分类:
其他好文 时间:
2020-05-30 22:12:51
阅读次数:
79
第五章学习了树与二叉树等相关内容 具体有如何去遍历一颗二叉树,分为层次遍历,先序遍历,中序遍历和后序遍历。其次还有最优的哈夫曼树,怎么去构造一棵哈夫曼树,从低往上构造等等。以及树的构造中会用到的链式存储及顺序存储结构还有借助数组来解决相关问题,定义树时采用的是递归的方式。 #include<iost ...
分类:
其他好文 时间:
2020-05-30 16:05:52
阅读次数:
78