Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

还是自己糊涂啊。很不应该啊。

Posted by 565261641 at 2017-10-12 01:00:13 on Problem 2777 and last updated at 2017-10-12 01:00:59
题目样例已经说清楚了初始颜色为1,我也知道初始颜色为1,但是,T_T,我的线段树节点数值全部初始化为1,调bug时一直觉得这没错,初始颜色就是设为1了。然而,我定义的是位存储啊,1代表颜色0被涂色,而初始颜色为1,那就线段树节点初始值应该设为2才对啊。真是糊涂了。白白几个小时,就跪这了……也算是该踩的坑吧。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator