摘要: 省选前的晚上,非常爽啊 void dfs(int u) { static counter=0; int children=0; visit[u]=1; dfn[u]=low[u]=++counter; while(遍历每一个有边连接的点v) { if(!visit[v]) { fa[v]=u; ch 阅读全文
posted @ 2017-04-14 23:18 OcahIBye 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 哈哈哈哈这是省选前一天我要疯了 因为学了其他的stl,stack的用法纯粹是自己脑补出来的,居然是对的,好神啊 #include<cstdio> #include<stack> #include<algorithm> using namespace std; int main() { stack<i 阅读全文
posted @ 2017-04-14 22:41 OcahIBye 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 #include<stdio.h> #include<stdlib.h> #include<time.h> #define random(x)(rand()%x) int main() { int n; srand((int)time(0)); scanf("%d",&n); for( 阅读全文
posted @ 2017-04-14 22:39 OcahIBye 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio>#include<cstring>#include<algorithm>#define maxn 10000000//往大的开也不会死的using namespace std;int wa[maxn],wb[maxn],wv[maxn],ws[maxn];int ra 阅读全文
posted @ 2017-04-14 00:45 OcahIBye 阅读(116) 评论(0) 推荐(0) 编辑