摘要: C. Timofey and a tree 链接: http://codeforces.com/contest/764/problem/C 题意: 一棵树中各个节点被染上了c[i]颜色; 让你在一棵树中随便选一个节点作为根节点,然后把整棵树抬起来; 问你是否存在一个根节点,这个根节点的直系儿子节点的 阅读全文
posted @ 2017-02-12 11:43 Flowersea 阅读(168) 评论(0) 推荐(0)
摘要: E. Dasha and Puzzle 链接: http://codeforces.com/contest/761/problem/E 代码: 阅读全文
posted @ 2017-02-12 10:09 Flowersea 阅读(159) 评论(0) 推荐(0)