摘要:
const db pi = acos(-1); struct com { db x, y; com() {x = y = 0; } com(db _x, db _y) {x = _x, y = _y; } com(db r) { x = cos(r), y = sin(r); } friend co 阅读全文
摘要:
const int P = 998244353; int power(int a, int b, int c = 1) { for(; b; b >>= 1, a = (ll)a * a % P) if(b & 1) c = (ll)c * a % P; return c; } struct min 阅读全文
摘要:
三维凸包(已经忘光了 #include <bits/stdc++.h> using namespace std; typedef double db; const int N = 2100; const db eps = 1e-9; int n; int vis[N][N]; db Ran() { 阅读全文
摘要:
我好像只过了模板题 感觉很迷 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 4e5 + 10; const int mod = 1e9 + 7; const int iv2 = 500 阅读全文