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

对dictionay的字符串排序,再对字符串内的字符排序,然后比较就可以了

Posted by ImK at 2013-08-05 14:03:50 on Problem 1318 and last updated at 2013-08-05 14:06:00
先对dictionary里所有的word按照字典序排序,据我研究,用qsort函数。
再对dictionary里的每个word里的字母和密码里的每个word的字母排序,然后就可以直接比较了。

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