OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ba677
)
fix(tree-diameter.md): 去掉了头文件
author
Mout-sea
<2582621015@qq.com>
Wed, 27 Jan 2021 07:27:04 +0000
(15:27 +0800)
committer
Mout-sea
<2582621015@qq.com>
Wed, 27 Jan 2021 07:27:04 +0000
(15:27 +0800)
docs/graph/tree-diameter.md
patch
|
blob
|
history
diff --git
a/docs/graph/tree-diameter.md
b/docs/graph/tree-diameter.md
index
12edd1a
..
e2532f7
100644
(file)
--- a/
docs/graph/tree-diameter.md
+++ b/
docs/graph/tree-diameter.md
@@
-29,9
+29,6
@@
因此定理成立。
```cpp
-#include <bits/stdc++.h>
-using namespace std;
-
const int N = 10000 + 10;
int n, c, d[N];
@@
-64,9
+61,6
@@
int main() {
我们记录每个节点向下,所能延伸的最远距离 $d_1$ ,和次远距离 $d_2$ ,那么直径就是所有 $d_1 + d_2$ 的最大值。
```cpp
-#include <bits/stdc++.h>
-using namespace std;
-
const int N = 10000 + 10;
int n, c, d = 0;