摘要: #include <bits/stdc++.h> using namespace std; const int N=2020; int f[N][N][2],a[N]; int main() { int n; cin>>n; for(int i=1; i<=n; i++) cin>>a[i]; fo 阅读全文
posted @ 2020-05-20 23:04 晴屿 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ```#include#include#include#include#includeusing namespace std;const int N = 400005;int n, m;int h[N], e[N], ne[N], idx;int dfn[N], low[N], timestamp;int stk[N], top;bool in_stk[N];int id[N];int scc_c... 阅读全文
posted @ 2020-05-20 16:36 晴屿 阅读(109) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include using namespace std; typedef long long ll; const int N = 1000010, M =1000010; inline int read() { int x=0,t=1; char ch=getchar(); while(ch>'9'||ch='0'&&ch 1) cu 阅读全文
posted @ 2020-05-20 11:30 晴屿 阅读(109) 评论(0) 推荐(0) 编辑