摘要:
inline long long fpro(long long x,long long y,long long p) { long long z=(long double)x/p*y; long long res=(unsigned long long)x*y-(unsigned long long)z*p; return (res+p)%p; } inline ... 阅读全文
posted @ 2019-10-11 20:36
thjkhdf12
阅读(126)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> 阅读全文
posted @ 2019-10-11 20:25
thjkhdf12
阅读(106)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> 阅读全文
posted @ 2019-10-11 14:36
thjkhdf12
阅读(137)
评论(0)
推荐(0)
摘要:
int n; const int maxn = 100010; int a[maxn]; int sum1[maxn]; int sum2[maxn]; inline int lowbit(int x) { return x & (-x); } inline void updata(int i, int k) { int x = i; while (i <= n) { sum1[i] += k; 阅读全文
posted @ 2019-10-11 13:30
thjkhdf12
阅读(128)
评论(0)
推荐(0)
摘要:
const int maxn = 5000010; int a[maxn]; #define lc(x) x<<1 #define rc(x) x<<1|1 il int min(int a, int b) { return a > b ? b : a; } struct tree { int a; 阅读全文
posted @ 2019-10-11 13:06
thjkhdf12
阅读(160)
评论(0)
推荐(0)
浙公网安备 33010602011771号