该文被密码保护。 阅读全文
posted @ 2020-07-10 21:21 sodak 阅读(3) 评论(1) 推荐(1) 编辑
摘要: 题目 P3385 【模板】负环 细节 判负环时不要用deque,否则会wa一个点 WA掉的数据 洛谷数据#9 正确输出:NO 代码 #include<bits/stdc++.h> using namespace std; const int maxn=2e6+10,maxm=1e6+10; int 阅读全文
posted @ 2020-07-10 19:21 sodak 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目 P1457 [USACO2.1]城堡 The Castle 思路 三遍DFS求解 代码 #include<bits/stdc++.h> using namespace std; int n,m; const int maxn=50+5; int a[maxn][maxn][maxn][maxn 阅读全文
posted @ 2020-07-10 18:26 sodak 阅读(159) 评论(0) 推荐(0) 编辑