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

Re:用map做的应该还满容易理解的

Posted by Pzjay at 2009-09-09 08:50:26 on Problem 1007
In Reply To:用map做的应该还满容易理解的 Posted by:foreverlin at 2008-11-13 08:54:11
你这个是不对的,你没考虑逆序数重复的情况呃:比如这组数据:
4 6
dcba
cbad
bacd
abcd
abbc
abcc
应该这样输出:
abcd
abbc
abcc
bacd
cbad
dcba
但你的是这样输出的:
abcc
abcc
abcc
bacd
cbad
dcba
个人认为要用multimap。

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