시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 264 87 81 36.161%

문제

지뢰찾기는 n × n 격자 위에서 이루어진다. m개의 지뢰가 각각 서로 다른 격자 위에 숨겨져 있다. 플레이어는 격자판의 어느 지점을 건드리기를 계속한다. 지뢰가 있는 지점을 건드리면 플레이어가 진다. 지뢰가 없는 지점을 건드리면, 그곳의 상하좌우 혹은 대각선으로 인접한 8개의 칸에 지뢰가 몇 개 있는지 알려주는 0과 8 사이의 숫자가 나타난다. 완전히 플레이되지 않은 게임에서 일련의 동작이 아래에 나타나 있다.

 

여기서, n은 8이고, m은 10이며, 빈 칸은 숫자 0을 의미하고, 올라가 있는 칸은 아직 플레이되지 않은 위치이며, 별표 모양(*)과 닮은 그림은 지뢰를 의미한다. 맨 왼쪽의 그림은 일부만이 플레이된 게임을 나타낸다. 첫 번째 그림에서 두 번째 그림으로 오면서, 플레이어는 두 번의 이동을 시행해서, 두 번 다 안전한 곳을 골랐다. 세 번째 그림을 볼 때 플레이어는 운이 썩 좋지는 않았다. 지뢰가 있는 곳을 골라서 게임에서 졌다. 플레이어는 m개의 열리지 않은 칸을 남길 때까지 계속해서 안전한 곳을 고르면 이긴다. 그 m개의 칸은 반드시 지뢰이다.

당신이 할 일은 일부가 플레이된 게임의 정보를 읽어 해당하는 격자를 출력하는 것이다.

입력

첫 번째 줄에는 10보다 작거나 같은 양의 정수 n이 입력된다. 다음 n개의 줄은 지뢰의 위치를 나타낸다. 각각의 줄은 n개의 문자를 사용하여 한 행을 나타낸다. 온점(.)은 지뢰가 없는 지점이며 별표(*)는 지뢰가 있는 지점이다. 다음 n개의 줄에는 길이가 n인 문자열이 입력된다. 이미 열린 칸은 영소문자 x로, 열리지 않은 칸은 온점(.)으로 표시된다. 예제 입력은 문제 설명에서의 가운데 그림과 상응한다.

출력

출력은 각각의 위치가 정확하게 채워진 판을 표현해야 한다. 지뢰가 없으면서 열린 칸에는 0과 8 사이의 숫자가 있어야 한다. 지뢰가 있는 칸이 열렸다면 지뢰가 있는 모든 칸이 별표(*)로 표시되어야 한다. 다른 모든 지점은 온점(.)이어야 한다.

예제 입력 1

8
...**..*
......*.
....*...
........
........
.....*..
...**.*.
.....*..
xxx.....
xxxx....
xxxx....
xxxxx...
xxxxx...
xxxxx...
xxx.....
xxxxx...

예제 출력 1

001.....
0013....
0001....
00011...
00001...
00123...
001.....
00123...
W3sicHJvYmxlbV9pZCI6IjQzOTYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM5YzBcdWI4YjAgXHVjYzNlXHVhZTMwIiwiZGVzY3JpcHRpb24iOiI8cD5cdWM5YzBcdWI4YjBcdWNjM2VcdWFlMzBcdWIyOTQgbiAmdGltZXM7IG4gXHVhY2E5XHVjNzkwIFx1YzcwNFx1YzVkMFx1YzExYyBcdWM3NzRcdWI4ZThcdWM1YjRcdWM5YzRcdWIyZTQuIG1cdWFjMWNcdWM3NTggXHVjOWMwXHViOGIwXHVhYzAwIFx1YWMwMVx1YWMwMSBcdWMxMWNcdWI4NWMgXHViMmU0XHViOTc4IFx1YWNhOVx1Yzc5MCBcdWM3MDRcdWM1ZDAgXHVjMjI4XHVhY2E4XHVjODM4IFx1Yzc4OFx1YjJlNC4gXHVkNTBjXHViODA4XHVjNzc0XHVjNWI0XHViMjk0IFx1YWNhOVx1Yzc5MFx1ZDMxMFx1Yzc1OCBcdWM1YjRcdWIyOTAgXHVjOWMwXHVjODEwXHVjNzQ0IFx1YWM3NFx1YjRkY1x1YjlhY1x1YWUzMFx1Yjk3YyBcdWFjYzRcdWMxOGRcdWQ1NWNcdWIyZTQuIFx1YzljMFx1YjhiMFx1YWMwMCBcdWM3ODhcdWIyOTQgXHVjOWMwXHVjODEwXHVjNzQ0IFx1YWM3NFx1YjRkY1x1YjlhY1x1YmE3NCBcdWQ1MGNcdWI4MDhcdWM3NzRcdWM1YjRcdWFjMDAgXHVjOWM0XHViMmU0LiBcdWM5YzBcdWI4YjBcdWFjMDAgXHVjN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2VudCB0aGUgYm9hcmQsIHdpdGggZWFjaCBwb3NpdGlvbiBmaWxsZWQgaW4gYXBwcm9wcmlhdGVseS4gUG9zaXRpb25zIHRoYXQgaGF2ZSBiZWVuIHRvdWNoZWQgYW5kIGRvIG5vdCBjb250YWluIGEgbWluZSBzaG91bGQgY29udGFpbiBhbiBpbnRlZ2VyIGJldHdlZW4gMCBhbmQgOC4gSWYgYSBtaW5lIGhhcyBiZWVuIHRvdWNoZWQsIGFsbCBwb3NpdGlvbnMgd2l0aCBhIG1pbmUgc2hvdWxkIGNvbnRhaW4gYW4gYXN0ZXJpc2suIEFsbCBvdGhlciBwb3NpdGlvbnMgc2hvdWxkIGNvbnRhaW4gYSBwZXJpb2QuPFwvcD5cclxuIiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMSIsImh0bWxfdGl0bGUiOiIwIiwicHJvYmxlbV9sYW5nX2NvZGUiOiJcdWM2MDFcdWM1YjQifV0=

출처

Contest > Waterloo's local Programming Contests > 2 October, 1999 A번

  • 문제를 번역한 사람: kipa00
  • 문제의 오타를 찾은 사람: silvercube