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 Baileys at 2015-06-30 17:47:53 on Problem 2128 and last updated at 2015-06-30 17:50:04
In Reply To:很奇怪的WA与AC Posted by:Rieman at 2010-12-17 16:42:14
“Also building two new highways in one city would disturb people too much, so all the cities that would be the ends of the new highways must be different. ”
题意只说不能让Highway的end相同,没说起点不能相同啊。
也就是说,如果这组数据:
4
100 200 201

那么3~4路段是最短的,所以输出答案可以是:4 1 4 3

你的答案却是:3 1 4 2,也就是选择2~3之间作为循环节。

不懂为什么你这样可以额……

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