Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
还是自己糊涂啊。很不应该啊。题目样例已经说清楚了初始颜色为1,我也知道初始颜色为1,但是,T_T,我的线段树节点数值全部初始化为1,调bug时一直觉得这没错,初始颜色就是设为1了。然而,我定义的是位存储啊,1代表颜色0被涂色,而初始颜色为1,那就线段树节点初始值应该设为2才对啊。真是糊涂了。白白几个小时,就跪这了……也算是该踩的坑吧。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator