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

把所有字母的组合作为一个状态。

Posted by yygy at 2012-11-12 21:51:18 on Problem 1171
计算出模式串所能表示的状态总数。然后二重循环状态。
状态总数目不多。
因为长度是7
每种字母不一样,那么状态总数目是2的7次方。才100多。
二重循环完全可以接受。
刚开始写错了。以为是两个字符串加起来等于原来的串。

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