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 heroyjz at 2010-08-20 16:56:38 on Problem 3687
For each test case output on a single line the balls' weights from label 1 to label N

按标号1到N顺序输出重量啊。输出的是重量!!!因为标号1到N,重量也是1到N,所以容易迷惑人啊。
拓扑+优先队列,反向构造解数组label。重量是label数组的下标。
比如说标签的顺序是2 1 3 4
那么2号重量是1,1号重量是2,3号重量是3,4号重量是4
于是按照1 2 3 4顺序输出重量2 1 3 4
居然是一样的。哈哈哈哈哈哈哈啊哈
样例阴人

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