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 |
注意啊!!!!!仔细读题目。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator