摘要:
题意:N个城市,给定一连通图,问相邻的城市间能否染不同颜色,能则用0、1表示红蓝色输出,否则输出-1。思路:双向建图,广搜~题目链接:http://acm.timus.ru/problem.aspx?space=1&num=1080View Code 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <queue> 5 #include <string> 6 #include <algorithm> 7 #include & 阅读全文
摘要:
一天下来,依旧感觉时间过得好快- - 收获挺多,不仅是知识,思想上也有了些升华~ 心情不好时可以想想:没有我幸福的人有很多,何必悲伤!! 听听音乐、敲敲键盘、往往蓝天、生活何其美好!!^_^ 阅读全文