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

Is there any error in the problem text?

Posted by wahab at 2007-04-17 07:45:14 on Problem 1373
Can anyone tell what is the correct output for this problem for the following input:


baabbbbaabaaaaa
aabbababbbaaa
b
abb

according to what is written in this thread

a --> baabbbbaabaaaaa
b --> aabbababbbaaa
start --> b
z --> aab



so starting with


b


and applying one Direct derivation


b --> aabbababbbaaa


we get


aabbababbbaaa


and since

abb

is a substring of the current string then the output should be


YES



but according to the judge solution <a href=http://www.acm.inf.ethz.ch/ProblemSetArchive/B_EU_CERC/1996/all_cerc_96.tgz>in this link</a> it is problem c it get

NO

i think the judge start from the goal and use DP it go back to the start string but i dont know why it get

NO

in that test case but i think that there is something missing in the problem text

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