Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 314 Bytes

File metadata and controls

18 lines (15 loc) · 314 Bytes

Description

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.

Sample

Input:
*...
....
.*..
....

Output:
*100
2210
1*10
1110