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

环只能有一个“There exists a way from each street to another street in the town.”

Posted by zhangcy269 at 2023-01-31 16:33:19 on Problem 1041 and last updated at 2023-01-31 16:59:45
用dfs,别用回溯,dfs起点是第一行比较小的junction号码,
”Assume that Johnny lives at the junction ending  (,which/where/) the street appears first in the input , with smaller number“
总感觉这是个少个where或者,which的定语从句,读了半天才琢磨出来这个意思

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