扫雷器代码编写练习
作者:Gururaj Kulkarni日期:2021年2月16日
问题:
N x M平方的字段由每行正好M个字符的N行表示。 字符“ *”代表地雷,字符“。” 代表没有地雷。
输入示例(acx 4的12方块雷场,其中2个是地雷)
3 4
*...
..*.
....
Your task is to write a program to accept this input and
produce as output a hint-field of identical dimensions
where each square is a * for a mine or the number of
adjacent mine-squares if the square does not contain a mine.
Example output (for the a
评论0
最新资源