摘要:
算叉积时注意溢出问题。 #include <bits/stdc++.h> // from: cpp.json #define INF 8e18 #define int long long using namespace std; // 几何模板 template<class T> struct Po 阅读全文
摘要:
正无穷处向下看时,你只能看到在每个 x 位置上 y 值最大的那条直线,所以维护上凸包即可求解。 #include <bits/stdc++.h> // from: cpp.json #define INF 8e18 #define int long long using namespace std; 阅读全文
摘要:
#include <bits/stdc++.h> // from: cpp.json #define INF 8e18 #define int long long using namespace std; // 几何模板 template<class T> struct Point { T x; T 阅读全文
摘要:
#include <bits/stdc++.h> // https://www.luogu.com.cn/problem/P2742 // 求出给定点集 P 的凸包 // from: cpp.json #define INF 8e18 #define int long long using name 阅读全文