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

33549번 - Bad English 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 2048 MB97441627.586%

문제

The Dutch are known to be bad at English sometimes, especially when it comes to pronunciations and translations. A classic example is the football manager Louis van Gaal. During a press conference he said "That is another cook.", which is a literal translation of the dutch figure of speech "Dat is andere koek.". These so called "stonecoal English" sentences are sentences that are literally translated from Dutch to English.

Since you are responsible for the next broadcast of van Gaal, you wish to prevent the occurrence of these "stonecoal English" sentences. Luckily, this broadcast is not live and hence when you detect a faulty sentence, you can simply redo that part. During the recording a program automatically records all sentences van Gaal says. Your task is to write a program that, given a dictionary of words, the output of the recording by the program and the Dutch equivalent of the recording, checks if sentences are said in "stonecoal English". As said before, a "stonecoal English" sentence is a sentence that is literally translated. If different, additional or fewer words are used or if the sentence contains words that are spelled incorrectly, then we may assume that an attempt was made by van Gaal to speak correct English and thus we won't mark them as "stonecoal English". You do not have to take (correct) punctuation into account.

입력

Four strings $r,ドル $t,ドル $d$ and $e$ which contain between 1 and 10ドル^4$ (inclusive) words separated by spaces. The first string $r$ is the recording of van Gaal. The second string $t$ is the Dutch equivalent of what van Gaal meant. The third string $d$ lists the Dutch words said in $t$ without repetition, in lowercase and are sorted alphabetically. The fourth string $e$ contains the English translation of the words in $d$ in the same order as they occur in $d$ (this means that $e$ and $d$ contain an equal amount of words), again in lowercase.

출력

Output "STONECOAL" if the sentence was literally translated and hence belong to the domain of "stonecoal English". Output "VALID" otherwise.

제한

예제 입력 1

Make that the cat wise.
Maak dat de kat wijs.
dat de kat maak wijs
that the cat make wise

예제 출력 1

STONECOAL

예제 입력 2

He kicked the ball very hard.
Hij schopte hard tegen de bal.
bal de hard hij schopte tegen
ball the hard he kicked against

예제 출력 2

VALID

예제 입력 3

That hits like a tang on a pig.
Dat slaat als een tang op een varken.
als dat een op slaat tang varken
if that a on hit pliers pig

예제 출력 3

VALID

힌트

출처

University > Delft University of Technology > Sjaars Kampioenschap Programmeren 2015 B번

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

출처

대학교 대회

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

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