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

A Problem

Posted by szh at 2006-08-23 13:57:01
输入一串字符串(最长1000000),该字符串只有A和B 组合而成。然后按照字典顺序查找,输出第一个没有的字符A和B 的组合 。

举个例子 比如输入AAB 按照字典顺序为A,B,AA,AB,BA,BB到这里我们发现没有BA,然后输出BA即可 。或者AAABBA 按照字典排序:A,B,AA,AB,BA,BB,AAA,AAB,ABA,ABB,这里我们发现没有ABA,然后输出ABA即可

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