UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#99139#1147. 扫雷游戏地雷数计算Billy_Hellington1003ms1252kbC++636b2020-02-22 21:44:222020-02-22 21:44:23

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1252kb

input:

100 100
?*???***?**?**??**?**?***?*?????**?*****?*?*??**??****????*****????*??????****?*****?*??**??...

output:

1*223***3**3**22**4**4***5*43222**2*****4*2*22**22****3333*****3223*311002****4*****4*43**34**21212*...

result:

ok 100 lines

Test #2:

score: 10
Accepted
time: 1ms
memory: 1244kb

input:

100 1
?
*
?
?
*
*
?
?
?
?
?
?
?
?
*
?
?
?
?
*
?
?
?
?
?
*
?
?
*
?
?
*
?
?
?
?
?
*
?
*
?
?
?
?
?
?
?
...

output:

1
*
1
1
*
*
1
0
0
0
0
0
0
1
*
1
0
0
1
*
1
0
0
0
1
*
1
1
*
1
1
*
1
0
0
0
1
*
2
*
1
0
0
0
0
0
0
0
1
*
...

result:

ok 100 lines

Test #3:

score: 10
Accepted
time: 0ms
memory: 1236kb

input:

100 100
********************************************************************************************...

output:

****************************************************************************************************...

result:

ok 100 lines

Test #4:

score: 10
Accepted
time: 2ms
memory: 1248kb

input:

100 100
??????????????????????????????????????*?????????????????????????????????????????????????????...

output:

00000000000000000000000000000000000001*10000000000000000000000000000000000000000000000000000001*1000...

result:

ok 100 lines

Test #5:

score: 10
Accepted
time: 0ms
memory: 1212kb

input:

20 10
??????????
??????????
??????????
??????????
??????????
*?????????
???*??????
?*?**?????
??*???...

output:

0000000000
0000000000
0000000000
0000000000
1100000000
*111100000
223*310000
1*4**11110
23*3211*10
*...

result:

ok 20 lines

Test #6:

score: 10
Accepted
time: 0ms
memory: 1252kb

input:

100 100
??????????????????*???*???????????*???????*??*????????????*??????????????????????????*??????...

output:

000000000000000001*101*10000000001*1001111*11*100000000001*21100001110000000111000001*21100000000000...

result:

ok 100 lines

Test #7:

score: 10
Accepted
time: 0ms
memory: 1204kb

input:

3 3
*??
???
?*?

output:

*10
221
1*1

result:

ok 3 lines

Test #8:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

1 1
*

output:

*

result:

ok single line: '*'

Test #9:

score: 10
Accepted
time: 0ms
memory: 1208kb

input:

1 1
?

output:

0

result:

ok single line: '0'

Test #10:

score: 10
Accepted
time: 0ms
memory: 1208kb

input:

10 10
?**?*?????
?**?*?**?*
**?**??***
*???***?*?
****?????*
*???****?*
????**?***
**?**?*?*?
**??**...

output:

2**4*32221
4**6*4**5*
**4**65***
*655***4*4
****56544*
*434****6*
3324**6***
**3**7*6*5
**44***5**
3...

result:

ok 10 lines