Logo
(追記) (追記ここまで)

4557번 - Syntax Included 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB46171361.905%

문제

You are writing your first website and seem to be making your fair share of simple HTML syntax errors. You have decided to write an HTML parser to help you determine if your HTML code is syntactically correct based on the following condensed HTML definition:

HTML CODE <HTML>BODY</HTML>
BODY <BODY>TEXT</BODY>
TEXT STRING | STRING TEXT | TAG | TAG TEXT
STRING possibly empty string of printable characters other than '<' and '>')
TAG BOLD | ITALICS | LINK
BOLD <B>TEXT</B>
ITALICS <I>TEXT</I>
LINK <A HREF=URL>TEXT</A>
URL http://STRING.com

입력

The first line contains a single integer n indicating the number of data sets.

The following n lines each represent a data set and consists of up to 1000 characters. Spaces can be contained anywhere within the data set.

Note that all tags are case sensitive.

출력

If the code is syntactically correct, the following string will be printed:

"Syntax Included"

Otherwise the following string will be printed:

"No Syntax Included"

제한

예제 입력 1

3
<HTML><BODY><B>Hello world!</B></BODY></HTML>
<HTML><BODY><B>Is this correct?</B></HTML>
<HTML><BODY><A HREF=http://www.go.com>link</A></BODY></HTML>

예제 출력 1

Syntax Included
No Syntax Included
Syntax Included

힌트

출처

ICPC > Regionals > North America > South Central USA Regional > 2004 South Central USA Regional Programming Contest 3번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /