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 |
冒泡排序这题目实际上比较水,冒泡排序就可以了 {1 -> 3, 2 -> 5, 3 -> 4, 4 -> 1, 5 -> 2} 把这个转换成 {1 <- 4, 2 <- 5, 3 <- 1, 4 <- 3, 5 <- 2} 把数组{4, 5, 1, 3, 2}冒泡排序一遍,再将顺序逆向输出即可~~ 5 3 5 4 1 2 这个数据的最简答案是 7 2 3 4 2 3 1 2 可惜简单题目没人做啊 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator