摘要:
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MOD = 998244353; struct Node { int l, r; // 区间左右端点 ll sum; // 区间和 ll laz 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int MOD=1e9+7; struct mat{ll a[2][2];}; ll n; mat mat_mul(mat x,mat y)//矩阵乘法 阅读全文
摘要:
#include <iostream> #include <vector> using namespace std; const int N = 1e5 + 10; int n, q; vector<int> tree[N]; vector<pair<int, int>> queries[N]; / 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int N = 10005; int n,m; vector e (N,vector<int>()); vector ne (N,vector<int>()); vector<int>dfn(N) 阅读全文
摘要:
题面来自牛客:https://ac.nowcoder.com/acm/problem/23482” #include<bits/stdc++.h> using namespace std; const int N = 5e5+10; int n,m,s,a,b; vector<int> e[N]; 阅读全文