随笔分类 -  立体几何

摘要:题目链接:https://vjudge.net/problem/HDU-6814 题意:在[1,n]中随机取三个数a,b,c作为直角四面体的三条直角棱,求顶点d到ABC面的高的倒数平方的数学期望。 思路: 1 //#include<bits/stdc++.h> 2 #include<time.h> 阅读全文
posted @ 2020-08-12 18:34 JamZF 阅读(153) 评论(0) 推荐(1)
摘要:题目: 题意:三维里有n个点,找一个最小的球将所有点覆盖。 题解:退火法模拟的一道板子题。 1 #include <stdio.h> 2 #include <iostream> 3 #include <math.h> 4 using namespace std; 5 const int MAXN=1 阅读全文
posted @ 2020-08-10 22:57 JamZF 阅读(175) 评论(0) 推荐(1)
摘要:1 #include <stdio.h> 2 #include <iostream> 3 #include <math.h> 4 using namespace std; 5 const int MAXN=105; 6 const double EPS=1e-8; 7 struct Point{ 8 阅读全文
posted @ 2020-08-10 20:25 JamZF 阅读(292) 评论(1) 推荐(1)