xiaowuc1   4년 전

The input data do not satisfy the conditions in the following sentence:

That is, an uppercase letter, a single space, an arrow, a single space, and a string of zero or more uppercase or lowercase letters. Rule productions are at most 10 characters long. The start variable S is the head of the first rule given.

Looking at the data provided in this post, line 11 of that input file is invalid. Other lines may also be invalid.

august14   4년 전

I misread the condition, sorry. Is the following input right?

xiaowuc1   4년 전

That looks correct. Thanks for fixing!

august14   4년 전

설명)

A ->

와 같은 조건은

A*->

가 아닌

A*->*

의 형태로 입력이 들어와야 합니다. (*는 공백)

예전에 제가 추가했던 데이터와 예제 입력 1이 이 부분에 문제가 있어 보입니다.
수정 후 재채점 부탁드립니다.


startlink   4년 전

재채점했습니다.

댓글을 작성하려면 로그인해야 합니다.