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 xyh33210 at 2009-05-18 09:46:36 on Problem 1984
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:
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