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:理解题意

Posted by lihuiyykl at 2009-07-22 19:56:47 on Problem 2159
In Reply To:理解题意 Posted by:0409 at 2009-03-22 22:38:28
> //   For some letters substitute letter may coincide with the original letter.
> //  For example, applying substitution cipher that changes all letters from 'A' to 'Y' to 
> //  the next ones in the alphabet, and changes 'Z' to 'A', to the message "VICTORIOUS" 
> //  one gets the message "WJDUPSJPVT". 
> // 
> //  题目仅仅是举例说明:替代时候如何建立关联而已,举了个相差1的例子罢了。
> // 
> //   这句话前面的那句才是关键:Substitutes for all letters must be different.
> //   只要替代的时候保持一一映射就行了。
> // 
> //   而permutation就是把这种一一映射后的字符串换换位置,无关痛痒。
> //   所以,解题的思路就是根据这种一一映射的关系,也即只要只要两数组的字母频度数组一样就行。
> //   说的更清楚点:频度为1的字母个数一样,频度为2的字母个数一样……

支持LZ说的,被这道题目耍了,而LZ的这帖子很明显是解题的关键

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