Crossword Applet



Submit your data set

You can submit your own questions and answers to mingyuanli.5000@gmail.com in the following format:


The input file will be DATA.txt

Line 1: the number of question-answer pair, n
Next n lines: questions
Next n lines: answers
Next n lines: the arrangement of answers on the 7 x 9 crossword grid
  • the first 2 numbers (separated by a space) represent the coordinate of the answer's first character; ie. (1 1) is the top-left corner and (7 9) is the bottom-right corner; note: a maximum of 2 answers may begin at the same cell
  • after a space character, the next single uppercase character represent the direction in which the answer runs on the crossword grid; the only four possibilities are: L-Left, R-right, U-up, D-down
Next 7 lines: the actual crossword grid; a period character '.' indicates a blank cell

Sample Input

Sample Output

5
Question 1
Question 2
Question 3
Question 4
Question 5
Ans1
Ans2
Ans3
Ans4
Ans5
1 1 R
6 9 L
7 3 U
7 3 R
1 1 D
ANS1.....
N........
S........
5.3......
..S......
..N..2SNA
..ANS4...
Click on "Sample" in the applet for sample output.