Skip to content

Commit

Permalink
some format
Browse files Browse the repository at this point in the history
  • Loading branch information
LogSingleDog committed Sep 3, 2024
1 parent 877f3c3 commit 699b837
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 6-计算几何.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ double dis(pt a,pt b){
## 二维凸包
```cpp
pt pa[maxn];
ll st[maxn*2];
pt pa[maxn];
ll st[maxn];
ll tubao(pt p[],ll n){
sort(p+1,p+n+1);//先按横坐标排,再按纵坐标排
ll tp=1;
Expand Down Expand Up @@ -76,8 +76,8 @@ int main(){

```cpp
//一款基于凸包的求凸多边形直径的算法
ll st[maxn];
pt pb[maxn];
ll st[maxn];
pt pb[maxn];
double getdia(pt p[],ll n){
ll tp=tubao(pb,n);//凸包见上
double ans=0;
Expand Down

0 comments on commit 699b837

Please sign in to comment.