Test Case for Question #3 in DWITE 2009-2010 High School Round 4
Contest: DWITE 2009-2010 High School Round 4
Question: #3
Input File: DATA3.txt
Output File: OUT3.txt
Input
1.....
12.........
.2..1.....
210..
2111111
Output
1.....
.1....
..1...
...1..
....1.
12.........
.1.2.......
..1..2.....
...1...2...
....1....2.
.2..1.....
...2.1....
.....21...
.......3..
........12
210..
..3..
..012
..0.1
..0..
2111111
..31111
...1311
....113
.....11