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 cse_acm_jsh at 2012-05-27 03:38:25 on Problem 4052
三步走:字符串转换、建Trie图、去掉子串
数据:
100
1
AA
A
输出:0
8
B
CB
ACB
DACB
D
DA
DAC
DACB
DACB
输出:1
3
A
B
C
ABCC
输出:3
2
[2A]B
[3A]B
[5A]B[4A]B
输出:1
2
AB
DCB
DABC
输出:1
3
A
AB
ABC
DABC
输出:1
3
AB
CD
EF
ABCDEF
输出:3
26
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
ABCDEFGHIJKLMNOPQRSTUVWXYZ
输出:26

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