BZOJ2756: [SCOI2012]奇怪的游戏
摘要:
题目:http://www.lydsy.com/JudgeOnline/problem.php?id=2756对棋盘进行黑白染色。若答案为x,有c1*x-s1==c2*x-s2得x=(s1-s2)/(c1-c2),那么若c1!=c2,检测x就可以了。若不是就二分x。建图:s->黑点 c=x-a[i]... 阅读全文
posted @ 2015-12-09 21:57 ctlchild 阅读(217) 评论(0) 推荐(0) 编辑