QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#290834 | #85. Leverage MDT | lmq26052003 | AC ✓ | 40ms | 8448kb | C++17 | 1.2kb | 2023-12-25 17:08:07 | 2023-12-25 17:08:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3428kb
input:
2 2 GG GG
output:
4
result:
ok single line: '4'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
1 1 B
output:
1
result:
ok single line: '1'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3464kb
input:
2 2 BB BB
output:
4
result:
ok single line: '4'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
2 2 GB BB
output:
1
result:
ok single line: '1'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
2 2 BG BB
output:
1
result:
ok single line: '1'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
2 2 BB GB
output:
1
result:
ok single line: '1'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3408kb
input:
2 2 BB BG
output:
1
result:
ok single line: '1'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3448kb
input:
2 2 BB GG
output:
4
result:
ok single line: '4'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3412kb
input:
2 2 BG BG
output:
1
result:
ok single line: '1'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3416kb
input:
2 2 BG BG
output:
1
result:
ok single line: '1'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3468kb
input:
2 2 GG GG
output:
4
result:
ok single line: '4'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3468kb
input:
5 5 GGGGG GBBBG GBBBG GBBBG GGGGG
output:
9
result:
ok single line: '9'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3416kb
input:
5 1 G G G G G
output:
1
result:
ok single line: '1'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
5 1 G B G G G
output:
1
result:
ok single line: '1'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
1 5 GGGGG
output:
1
result:
ok single line: '1'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3460kb
input:
1 5 GBGGG
output:
1
result:
ok single line: '1'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3456kb
input:
10 10 GBBBBGBBGB GBBBGGBBGB BGBGBBGGBB BGBGBBBGBG BGBBGGBGBG GGBGBBBGGG BBGGBGBBBB GGGGBGGGGG GBBBBGBBGB BGBBGGGGBB
output:
9
result:
ok single line: '9'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3452kb
input:
10 10 GGBBGBGBGB BGGBGGBGGB BGGGBGBGGG GGGBGBGGBB BBBBBGBBGB BGBBBGGGGB BGBBGBGGGG GBBGGGBBBB GGBGBGBGGB BBBBGBGBGG
output:
9
result:
ok single line: '9'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
30 30 BBGBGBGGGGGBBGBBGBGBBGGGGBBGGG BBBBBBGBGGBGBGBBGBGGBBGBBBGBBG BGBBBGGGGBGGBBGBGGGBBBBGGGGBBB BBGBBGGBBBBBGGGGGBBBGBGGBGGBGG BGBBBGGGGBBGGBBGBBGGBGGGBGGGGB GGBBGGBGBBBGBBBGBGGBGBGBGGGBGG BBGBBGGGBGGBGBBBBGBGBGGBBBGGBG GGGGBGGBGGBGGGGGGBBGBBGGGBGGBG BBBBGGBGGGGBBBGBGBBBBBGGGGGBBG BGGGGBGBGBGBGBB...
output:
9
result:
ok single line: '9'
Test #20:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
30 30 GGBGGGGGBGGBGGBGBGBGGBGGGGGBBB BGGGBBBBBBBGBBGGGBBGGGBBGGBBGB BGBGBBBGBGBBGBGBBGBGGBGGBBGBGG BBBGGBGGGGGBGGBBBBBGBGBGBBGBGG GGBGGGBBGBGGGGBGGBGBGGBGGBGBGG BBGGBBGGBGGGGBGBBBBBBBGBGGBGBB BGBGGBBGBBGBGBGBGBGBGGGGBGGBGB GGBBBBGGBBGGBGGGGBBGGBBBGBBGGB GGBGGBGBBBBBBBGGBGBGBBGBBBBBBG GGBBBBGGGBGGBGB...
output:
9
result:
ok single line: '9'
Test #21:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
100 100 GGGBGBGGGGBBBGGGBGBGBBGGBBBBBGGGGGBGBBBGBGGGGBGBBBGBBGGGGBBBGGGGGBBGGBGBGGGBBBBGBBGGBBGBBGGBGGGBBBBG BGGGBBBGGGBGGGGGBBBGBBBBGGGGGBGGBBBBBBGGGGBBBBBGGBBGBBBGGBBBBBBGBGBGBBBBGBBBGBGBGBBGBGBBGBGGBGGBGBBG GBBBGGGBGBGGGGBBBGBBGGGGBGBBGBGGBBGBBBGBBBGGBGGGBBGBBBGBGGGBGGBGBGBBBBBGGGBGGGGBGBGBGBBBGB...
output:
16
result:
ok single line: '16'
Test #22:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
100 100 GGGGBGGGBGGGBGGBBGGGGGGBGBBGGBBGBBGGGGGGBBBGGGGBBBBBGBGGGBGBGGBGBBBGBBBBBBBBGGBGBGBGBGGGBGGGBGGGBGGG BGGGGGGBBGGBGGBGBBGGBBGGBGGBGBGBBGGBBBGBBGGGBBBGBBGBGGGGBBGBGGBBBGGGBBGGBGGGBBBGGBBBGBGBGGGBBBBBBBGB BGBBGGBBBBGBGGBGBGGBGGBGBBGBBBGBGGBBGBBGGBBGBBBGGGBBGGBGBGGGBGGBGGGGBBBBBBGGBGGGGBBBGGGGBG...
output:
16
result:
ok single line: '16'
Test #23:
score: 0
Accepted
time: 26ms
memory: 8368kb
input:
1000 1000 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
1000000
result:
ok single line: '1000000'
Test #24:
score: 0
Accepted
time: 4ms
memory: 3920kb
input:
300 300 BGBBBBBBGGGBGBGBGBGGGBGGGGBGGBBBBBBBGBBGGBGGBGGBBGBBGGGBGBGBGGGGGBBBGGBBGGBBBGGGBBBBGBBBBGGBBGBBGBGBBGBGGGGGBGBBGBGGBBBGGGBBGGBBBBBGBGGGGGGBBBGGGGBGBBBBBGGBBBBGGBGBBGGGGBGGGGBBGGBGGBGGGGGBBGGBBGGBGBBGBBBBBBGGGBBGBGBGBGBBGGGBBGGGBBGBGGBGGBBBGGGGGGGGGBGBGBBBGBGBGBGGBGBGGBBGBBBGGBGGBBBGBGBGBBBB...
output:
16
result:
ok single line: '16'
Test #25:
score: 0
Accepted
time: 4ms
memory: 3928kb
input:
300 300 BBBBBGGGBGGBGGBBGBBBGGGGGBGBBGGGBGGBGGBBBGBGGGGBBGGBBBBGBBBGGBGGBGGGGBBGBBGGBGGGBGGGBGGBBGBBGGGGBBGBBGBBBBBBGBBBBBBGGGBBGGGBGBGGBBBBBBGGGGBGGGBGGGBBGGBGBGBGGGBBGGGBBBBGGBBBGBGBBBGBGBBBBGGBGGGGGBBBBGGGGGGGGGGBBBGBBBGBBGGGGBBBBBGBBGGBBBGBBBGGGGGBBGBGGBGBGGBGGGBBGGBGBGGGGGBGGBBBGBBGGBGBBGBGBBGG...
output:
16
result:
ok single line: '16'
Test #26:
score: 0
Accepted
time: 11ms
memory: 4792kb
input:
500 500 GBGBBGGBBGGBGGGGGBGGBGBBBGGBBBGBGGBBGBGGBBGBGGBBGGGGBBBBBGGGBBBBBBBGGGGGGBGGBGGGGBGBBGGGGBBGGGGBBGGGGBGGBGGGBGGGBBBBBBGBBBGGBGGGGBBBGGGBBBBBBBBGGGBGBBGBGGGGGBGGGBGGGBGBGBBGGBGBBBGGBBGGGGGBBGBBGBBGBGGBBBGBGGGBBGBGGBBBGGBGGBGGGBBGBBBBGGBBGBGBBGGGBBBGBBGGBBBGGBBBBGGGBBBBBGBBGBGGGBBGBGBGBGGBGBGG...
output:
25
result:
ok single line: '25'
Test #27:
score: 0
Accepted
time: 10ms
memory: 4680kb
input:
500 500 BBGBBGBGGBGGGGGBBBGBBBBBGGBGBBBGBGBBBGGBBBBBGBGBBBBGBGBGBGGGBBGGBGGGGBBGBBGBBBBGBBGBGGBGGBBBBBGBBBBGGGGBGGGGBGGBGGGBGGGGBGBBBBBGGBBBBBBGBBBGGGBBGBBGGBGGBGGBGBGBBGGBGGGGGGBBGGGBGBBBBGGGGBBBGBGBBGBGBBBGGBGGGBGGBBGGBGBGBGBGBBGBGGGGGGGGBGGGBBBGGGGGBBBGGGGGGGBBGGBGGBBBBGGGBGGBBBGBBBBGBBBBGGGGGGGB...
output:
16
result:
ok single line: '16'
Test #28:
score: 0
Accepted
time: 40ms
memory: 8448kb
input:
1000 1000 GBGBBBGBBGBGBBGBBBGBGBGBGBGGGGBBGBBGBGBGBBGGGBGGBBBGBGBGBBGBGBBGGBGBGGBBGGGGGGGBGBGGGBBBGGBBBGGGBGBGGBGBBBBGBGBGGGGBGGBBBGGGGBGGBGBGGGGBGBGGGBGBBBBBGGGGBBGGGGBBBGBGBBGBBBGBBBGGBGGBGGGGGBGBGBBBBGBBBGBGBGBGBBBGGBBGGGGGBGBBGBBBGGGGGBBBGBBBBGGBGBGGGBGGGBBBGGGGBBGBGBBBBGGGGGBBGBGBBBBGGGGBBBGGGB...
output:
16
result:
ok single line: '16'
Test #29:
score: 0
Accepted
time: 37ms
memory: 8384kb
input:
1000 1000 GGBBGGBBGBBGGGBBGGGBGBBGGBGBBBBBBBBGGGGBGGBBGBGBBGGBGBGGBBGBBGBBBBGBBBBGBBBBGGGBBGGBBBBBGBGGGGBGBGGBGGGGBGGGGBBGGBGBBGGBGBGBGGBBBBGGBBGBBBBBGBBGBBBGBGGGBBBGGBBBBBGGBBGGBGBBBGBGGGBBBBGBBBBGGBBGGBGBBBGBBBGGBGGGGGBBGGGGBBGBBGGGBBGBGBGGBBGGGGGGBGBBGBGBBBBGGGBBBGBBGBGGGGGGGBGBBGGGBGBGGGGGBGGGGB...
output:
25
result:
ok single line: '25'
Test #30:
score: 0
Accepted
time: 27ms
memory: 8424kb
input:
1000 1000 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...
output:
1000000
result:
ok single line: '1000000'
Test #31:
score: 0
Accepted
time: 30ms
memory: 8428kb
input:
1000 1000 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
998001
result:
ok single line: '998001'
Test #32:
score: 0
Accepted
time: 1ms
memory: 3496kb
input:
3 3 BBB BGB BBB
output:
1
result:
ok single line: '1'
Test #33:
score: 0
Accepted
time: 3ms
memory: 3880kb
input:
300 300 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG...
output:
90000
result:
ok single line: '90000'
Test #34:
score: 0
Accepted
time: 4ms
memory: 3880kb
input:
300 300 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...
output:
90000
result:
ok single line: '90000'
Test #35:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
1 1 G
output:
1
result:
ok single line: '1'