Krizaljka
의견: 0
\(2^{nd}\) round, November \(10^{th}\), 2012
Do you like to solve crosswords? If you do, you probably know the traditional le\(ad-in\) for beginners –
small 3 by 3 crosswords, like the following^{1}:
1
2
3
2
3
Horizontal:
1. device used to cool a PC
2. solid water
3. to obtain
Vertical:
1. small, soft, sweet fruit
2. strong playing card
3. fisherman's tool
1Solve a crossword like this one! Not gonna happen? Fine, then at least put it together given six words
that appear in it (three as horizontal and three as vertical).
Each of the six lines of input contains a word consisting of three uppercase English letters. The words
are given in a lexicographically sorted order.
If it is impossible to put together a 3 by 3 crossword using the given six words, output 0.
Otherwise, output the crossword in three lines.
If there is more than one possible solution, output the one that is first in lexicographic order, where,
for sorting purposes, the crossword is viewed as a ni\(ne-le\)tter word obtained by concatenating its rows.
ANA
ANA
DAR
DAR
RAD
RADDAR
ANA
RADEVO
HEP
HIR
IVA
PAD
RODHEP
IVA
RODAKO
CES
DOC
DON
ESI
KES0
1 adapted from http://www.goobix.com/crosswords/0303/평가 및 의견
Krizaljka
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Krizaljka