1.7k2 分钟

dsu on tree #include <bits/stdc++.h> /* #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/hash_policy.hpp> */ using namespace std; const double eps = 1e-10; const double pi = 3.1415926535897932384626433832795; const double eln
2.1k2 分钟

码力有待加强! //1787 D. Game on Axis #include <bits/stdc++.h> /* #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/hash_policy.hpp> */ using namespace std; const double eps = 1e-10; const double pi = 3.141592653589793238462
3.3k3 分钟

#include<bits/stdc++.h> using namespace std; using ll=long long; const ll inf = 1e18; template < typename T, auto op, auto e, typename F, auto mapping, auto composition, auto e1 > class segtree { int n; vector< T > v; vector< F > l
8021 分钟

需要O2优化 #include<bits/stdc++.h> using namespace std; using ll=long long; vector<double> st[(int)1e3+9]; ll n,m,id[(int)1e5+9],fk,l[(int)1e5+9],r[(int)1e5+9]; double a[(int)1e5+9]; int main(){ ios::sync_with_stdio(false); cin.tie(0); cin>>n>>m;
7891 分钟

#include<bits/stdc++.h> using namespace std; using ll=long long; const int maxn=1e5+9; double mx[maxn<<2]; ll ans[maxn<<2],n,m; ll query(int l,int r,int k,double ma){ if(mx[k]<=ma)return 0; if(l==r)return 1; else if(mx[k<<1