01 2022 档案
摘要:#include<bits/stdc++.h> using namespace std; set<pair<double, double>> s; vector<pair<int, int> > v; int res; int main() { for (int i = 0;i < 20;i ++)
阅读全文
摘要:#include <bits/stdc++.h> #define pb push_back #define fi first #define se second using namespace std; const int INF = 0x3f3f3f3f; const int MOD = 1e9
阅读全文
摘要:#include<bits/stdc++.h> using namespace std; int a[10]; double x,y,z; int main() { int n; cin >> n; for (int i = 1;i <= n;i ++) cin >> a[i]; double ma
阅读全文
摘要:ios::sync_with_stdio(false);cin.tie(0);
阅读全文
摘要:从n边形的一个顶点可以引出(n-3)条对角线。 n边形一共有n(n-3)/2条对角线。 对角线交点公式:n * (n-1) * (n-2) * (n-3) / 24 证明: 首先由于不会有三条对角线交于一点,所以过某一个交点有且只能有2条对角线 而这两条对角线实质上是确定了4个顶点(也可以看做是一个
阅读全文