| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 133 | 37 | 31 | 31.313% |
The tests for this problem are open. In this problem, you have to choose one of the five items according to a textual description of an image.
"Barabashka" (originally named "Geistesblitz") is a board game that favors fast reaction. Below are the rules of the game for this problem. Please read them carefully, as they are slightly different from the original game rules.
The game set includes five items of different colors: a white ghost named Barabashka, a green bottle, a gray mouse, a blue book and a red chair, and also special cards. Each card contains an image with exactly two of these five items. Each of the items also has one of the aforementioned five colors, but the color of each item may be wrong. The colors of these two items are different. The image can contain other objects, but their colors are guaranteed to be different from the five colors above.
A single move in the game proceeds as follows. All items are put on the table, and after that, a card is drawn from the deck and shown to the players. If the card contains an item of the right color (the color on the picture matches the color of the real item on the table), the players have to grab that item. Otherwise, the players have to grab the item which is not present on the picture, and the true color of which also does not appear on the picture. The winner is the player who grabs the right item earlier than the others. The winner gets the card as a reward. It is guaranteed that all cards contain images for which there exists a unique right answer.
In this problem, each test consists of exactly five sentences. A sentence is a textual description of one card in English. The right answer for a sentence is the description of the item to grab when the players see such card.
Each sentence is written in English and can contain English letters, spaces and characters "'", ",", "-" and "." (ASCII codes 39, 44, 45 and 46). The names and the right colors of the items are the following: "white Barabashka", "blue book", "red chair", "gray mouse" and "green bottle".
Let a word be a sequence of English letters surrounded from both ends by line ends or non-letter characters. Then we can formulate the following restrictions on the sentences:
color name" where the word "color" is one of the five colors mentioned above, and the word "name" is one of the five item names.The tests in this problem are open for contestants and can be downloaded at the following addresses:
The problem contains 24ドル$ tests, that is, 24ドル \cdot 5 = 120$ card descriptions: one description for each possible combination of items and their colors on a card.
The input consists of five lines. Each line contains one sentence of length from 1ドル$ to 80ドル$ characters. The exact format of each sentence is given in the problem description. Uppercase and lowercase letters are considered different.
For each sentence, print a line containing two words separated by a space: the right color and name of the item to grab when the players see the card described by that sentence. Uppercase and lowercase letters are considered different.
A white Barabashka is staring at a gray bottle. A red mouse is running from a green Barabashka and its shadows. A gray book lies on a red chair's right arm. Black smoke is rising from a blue bottle lying under a white chair. A white mouse is trying to crawl out of a green bottle.
white Barabashka blue book red chair gray mouse green bottle
The first, third and fifth sentences of the example describe items of the right colors. So, their colors and names must be printed. In the second and fourth sentences, this is not the case, so we must choose such an item that neither its name nor its color appear as words in the sentence.