QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505397#5786. Bridge Buildersxiaowuc125 ✓74ms13152kbC++173.4kb2024-08-05 05:04:592024-08-05 05:04:59

詳細信息

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 8ms
memory: 12592kb

input:

50
2 2
T.
T#
4 4
T##.
##.#
.#T#
####
2 30
T#############################
..............................
30 2
T.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
#.
2 30
T#############################
T#############################
30 2
TT
##
##
##
##
##
##
##
##
##...

output:

Case #1: 2
Case #2: 24
Case #3: 435
Case #4: 435
Case #5: 871
Case #6: 871
Case #7: 107880
Case #8: 15483
Case #9: 9705
Case #10: 4424
Case #11: 1837
Case #12: 6358
Case #13: 15
Case #14: 4966
Case #15: 3241
Case #16: 14568
Case #17: 5908
Case #18: 2701
Case #19: 5634
Case #20: 3485
Case #21: 10658
...

result:

ok 50 lines

Subtask #2:

score: 17
Accepted

Test #2:

score: 17
Accepted
time: 74ms
memory: 13152kb

input:

50
2 2
T.
T#
4 4
T##.
##.#
.#T#
####
4 4
T##.
##.#
.#T#
T###
5 5
T#T.#
..#.#
#.###
###.#
T###T
30 2
TT
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
##
TT
30 30
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
TTTTTTTTTTT...

output:

Case #1: 2
Case #2: 24
Case #3: 24
Case #4: 49
Case #5: 647
Case #6: 899
Case #7: 11849
Case #8: 1348
Case #9: 1229
Case #10: 100
Case #11: 731
Case #12: 1162
Case #13: 32
Case #14: 1227
Case #15: 581
Case #16: 290
Case #17: 5393
Case #18: 2049
Case #19: 8058
Case #20: 8270
Case #21: 384
Case #22: 8...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed