dfs
fufck
这个作者很懒,什么都没留下…
展开
-
Codefoces 986C AND Graph(DFS)
C. AND Graphtime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a set of size mm with integer elements between 00 and 2n−12n−1 inclusive...原创 2018-07-07 14:18:17 · 237 阅读 · 0 评论 -
Codeforces 982 C Cut 'em all!(DFS)
C. Cut 'em all!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou're given a tree with nn vertices.Your task is to determine the maximum possible ...原创 2018-07-07 14:44:11 · 229 阅读 · 0 评论 -
HDU 4848 Wow! Such Conquering! (搜索+floyd)
Wow! Such Conquering!Time Limit: 15000/8000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2549 Accepted Submission(s): 768 ...原创 2018-07-30 12:27:03 · 151 阅读 · 0 评论 -
CF 1076 E
#include<cstdio>#include<vector>using namespace std;typedef long long ll;#define low(i) ((i)&(-i))const int maxn=3e5+5;int n,m,tot;ll val[maxn];int dep[maxn],now[maxn],pre[m...原创 2018-11-18 17:07:32 · 134 阅读 · 0 评论