摘要: Problem: given a tree, color nodes black as many as possible without coloring two adjacent nodes思路: 如果根节点r被标记为黑色,则其直接子节点不能被标记为黑色,如果不标记r,则其子节点可以标记为黑色,得... 阅读全文
posted @ 2015-11-19 16:09 蟹粉小笼包 阅读(227) 评论(0) 推荐(0) 编辑