英语翻译A crossword can be stored as a matrix m x n of zeros and ones.Zero represents white squares and one represents black squares.Some squares of the crossword are numbered and assigned to these numbers are the descriptions of the words that s
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 06:03:12
英语翻译A crossword can be stored as a matrix m x n of zeros and ones.Zero represents white squares and one represents black squares.Some squares of the crossword are numbered and assigned to these numbers are the descriptions of the words that s
英语翻译
A crossword can be stored as a matrix m x n of zeros and ones.Zero represents white squares and one represents black squares.Some squares of the crossword are numbered and assigned to these numbers are the descriptions of the words that should be written either ``across'' or ``down'' into the crossword.A square is numbered if it is a white square and either (a) the square below it is white and there is no white square immediately above,or (b) there is no white square immediately to its left and the square to its right is white.The squares are numbered from left to right,from the top line to the bottom line.
From the matrix a crossword diagram can be drawn.In the diagram each square is represented by a box 4 x 6 characters.Black square and white squares (numbered and not numbered square) are represented as follows (where nnn is the number of the square):
++++++ ++++++ ++++++
++++++ +nnn + + +
++++++ + + + +
++++++ ++++++ ++++++
The remaining characters of the box are spaces.If black squares are given at the edges,they should be removed from the diagram (see the example).Only use spaces as necessary filling characters.Don't use any unnecessary spaces at the end of the line.
Input
The input consists of several blocks of lines each representing a crossword.Each block starts with the line containing two integers m < 25 and n < 25 separated by one space.In each of the next m lines there are n numbers 0 or 1,separated by one space.The last block will be empty,m = n = 0.
Output
The output contains the corresponding crossword diagram for each except the last block.After each diagram there is two empty lines.
..使用软件翻译我也会呀.先看下它翻译出来是什么吧..
英语翻译A crossword can be stored as a matrix m x n of zeros and ones.Zero represents white squares and one represents black squares.Some squares of the crossword are numbered and assigned to these numbers are the descriptions of the words that s
一个纵横填字游戏能被储存如零和一些的点阵式 m x n .零表现白色的正方形,而且一表现黑色的正方形.纵横填字游戏的一些广场被总计而且分配到这些数字是应该被写的字描述或across''或向下的''进入纵横填字游戏之内.一个广场是有限的,如果它是一个白色的正方形而且或 (一) 正方形在它下面是白色的,而且剩下不一个白色的正方形立刻上述 ,或 (b) 没有白色的正方形立刻到它的,而且它的右边正方形是白色的.从最高的线到底线广场从左边到右边被总计.
从点阵式一个纵横填字游戏图表能被画.在图表中每个正方形被一个盒子 4 x 6个个性表现.黑色的广场和白色的正方形 ( 有限的和不是有限的正方形) 依下列各项被表现:(nnn 是正方形的数字哪里)
++++++++++++++++++
+++++++ nnn+++
++++++++++
++++++++++++++++++
盒子的剩余个性是空间.如果黑色的正方形在边缘有,他们应该从图表被移动.(见到例子) 只有使用隔开如必需的充填物个性.在线结束的时候不使用任何的不必要的空间.
输入
输入有一些范围线每个表现一个纵横填字游戏.和包含二完整的事物 m