acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 竞赛
  • 讨论
  • 团队
登录
注册
题目详情提交记录(0)
  • 题解何意味

    #include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; typedef long long ll; typedef pair<ll, ll> Point; // 定义点的类型,使用long long存储坐标 int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; // 输入点的数量 vector<Point> points(n); for (int i = 0; i < n; ++i) { cin >> points[i].first >> points[i].second; // 输入每个点的坐标 } vector<Point> hull = convexHull(points); // 构建凸包 cout << rotatingCalipers(hull) << endl; // 计算并输出凸包直径的平方 return 0; }

    userId_undefined

    彼题一休尼の解何意味の嫁

    时空双修者
    12阅读
    0回复
    0点赞
  • 首A

    模板题,泰裤辣(洛谷真奇妙)

    userId_undefined

    MuktorFM

    出道萌新时空双修者荣耀黄金快乐小狗CSP-S二等奖出题人
    8阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页