摘要: 链接 :http://codeforces.com/contest/1388/problem/C 题意: 有若干个人,树根为1,从根开始往下走,心情可能会变坏,坏心情不可能变好, 每个城市有个happyness值,问你这个图成不成立, 题解 :dfs树一下,因为dfs树是从下向上回溯,所以反过来,考 阅读全文
posted @ 2020-08-05 21:47 摸鱼选手LLF 阅读(207) 评论(0) 推荐(0)
摘要: #include<iostream> #include <algorithm> #define pb push_back #define fi first #define se second #define io std::ios::sync_with_stdio(false) using name 阅读全文
posted @ 2020-08-05 21:41 摸鱼选手LLF 阅读(103) 评论(0) 推荐(0)