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 |
一个我错的地方5 4 1 3 5 E 1 2 5 S 1 5 5 W 1 4 5 N 3 2 5 4 2 4 4 3 4 4 答案是 10 10 10 因为我是先将所有建树和询问的信息全部读入,然后边建树变判断是否符合index的时间,也就是我只判断了单组的询问,如果几组询问的index是相同的,就会只输出一组答案。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator