摘要: ```cpp #include using namespace std; typedef long long LL; LL n , k , p = 1e9 + 7; inline LL fpow(LL x , LL y) { LL res = 1; while (y) { if (y & 1) res = res * x % p; x = x * x % p , y >>= 1; } return 阅读全文
posted @ 2020-02-20 19:38 leiyuanze 阅读(181) 评论(0) 推荐(0)
摘要: ```cpp #include #include using namespace std; const int M = 10000; const double inf = 1e18; int n , m , h[505] , cur[505] , dep[505] , s , t , tot = 1; double a[55] , b[55] , ans , Max; struct edge{ i 阅读全文
posted @ 2020-02-20 19:37 leiyuanze 阅读(125) 评论(0) 推荐(0)
摘要: 代码 (树链剖分) 阅读全文
posted @ 2020-02-20 19:34 leiyuanze 阅读(178) 评论(0) 推荐(0)
摘要: ```cpp #include #include using namespace std; typedef long long LL; const int N = 1 = 4) return; c[++tot] = i , c[++tot] = i + 1; } if (!tot) return; for(register int i = 1; i <= tot; i++) for(registe 阅读全文
posted @ 2020-02-20 19:33 leiyuanze 阅读(159) 评论(0) 推荐(0)
摘要: ```cpp #include #include using namespace std; const int N = 210 , M = 210000 , INF = 2147483647; int a[N + 5][N + 5] , b[N + 5][N + 5] , n , m , s , t , ans; char str[N + 5]; int dep[N * N + 5] , cur[ 阅读全文
posted @ 2020-02-20 19:32 leiyuanze 阅读(183) 评论(0) 推荐(0)
摘要: ```cpp #include #include #include #include using namespace std; typedef long long LL; const int N = 1e5; int n , lim , x[N + 5] , y[N + 5] , z[N + 5] , sum; int bl[(N '9'; ch = getchar()); for(; ch >= 阅读全文
posted @ 2020-02-20 19:26 leiyuanze 阅读(92) 评论(0) 推荐(0)
摘要: #pragma GCC optimize(2) #pragma GCC optimize(3) #include<cstdio> using namespace std; const int N = 30000; const double INF = 1e8; int n , l , a[N + 5 阅读全文
posted @ 2020-02-20 19:24 leiyuanze 阅读(144) 评论(0) 推荐(0)
摘要: ```cpp #include #include using namespace std; typedef long long LL; const int N = 1e6; LL x , a , b , c , m , f[N + 10] , p; int n , len , vis[N + 10]; inline LL fpow(LL x , int y , LL p) { LL res = 1 阅读全文
posted @ 2020-02-20 19:22 leiyuanze 阅读(113) 评论(0) 推荐(0)
摘要: 代码 阅读全文
posted @ 2020-02-20 19:20 leiyuanze 阅读(102) 评论(0) 推荐(0)
摘要: 代码 阅读全文
posted @ 2020-02-20 19:18 leiyuanze 阅读(185) 评论(0) 推荐(0)
摘要: 代码 阅读全文
posted @ 2020-02-20 19:15 leiyuanze 阅读(851) 评论(0) 推荐(0)
摘要: 代码 阅读全文
posted @ 2020-02-20 19:12 leiyuanze 阅读(165) 评论(0) 推荐(0)