QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#403460#2796. 围棋dXqwq100 ✓159ms246188kbC++232.1kb2024-05-02 13:34:452024-05-02 13:34:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 99ms
memory: 246188kb

input:

3 6 3 5
BBB
BBB
BXB
BXB
WBB
BBW
BXW
BXW
BXW
XBW

output:

3798657
4136885
4220235
4169987
4248612

result:

ok 5 lines

Test #2:

score: 10
Accepted
time: 87ms
memory: 246144kb

input:

2 9 6 5
BBBBBB
BBBBBB
BXBXBX
BXBXBX
BXBXBX
XBXBXB
WBXXBW
WBXWBB
WBBXXB
BWWBXW

output:

2673
2898
2898
2916
2916

result:

ok 5 lines

Test #3:

score: 10
Accepted
time: 100ms
memory: 246060kb

input:

2 12 3 5
BBB
BBB
BXB
BXB
WBB
BBW
BXW
BXW
BXW
XBW

output:

477653708
821622012
859339100
859339100
859339100

result:

ok 5 lines

Test #4:

score: 10
Accepted
time: 90ms
memory: 246060kb

input:

2 12 5 5
BBBBB
BBBBB
BXBXB
BXBXB
XXXXX
BWWWB
BWBXW
WBXBB
BBBBB
WWWWW

output:

34543457
37908992
38260350
38263266
34543457

result:

ok 5 lines

Test #5:

score: 10
Accepted
time: 81ms
memory: 246044kb

input:

10 8 3 5
BBB
BBB
BXB
BXB
WBB
BBW
BXW
BXW
BXW
XBW

output:

60353453
651794108
55783479
631588427
689556341

result:

ok 5 lines

Test #6:

score: 10
Accepted
time: 94ms
memory: 246128kb

input:

10 10 5 5
BBBBB
BBBBB
BXBXB
BXBXB
XXXXX
BWWWB
BWBXW
WBXBB
BBBBB
WWWWW

output:

881166659
785900622
655545297
250433880
736937348

result:

ok 5 lines

Test #7:

score: 10
Accepted
time: 115ms
memory: 246160kb

input:

100 10 5 5
BBBBB
BBBBB
BXBXB
BXBXB
XXXXX
BWWWB
BWBXW
WBXBB
BBBBB
WWWWW

output:

782437669
425234378
464731278
206717410
439863397

result:

ok 5 lines

Test #8:

score: 10
Accepted
time: 159ms
memory: 246080kb

input:

100 12 5 5
BBBBB
BBBBB
BXBXB
BXBXB
XXXXX
BWWWB
BWBXW
WBXBB
BBBBB
WWWWW

output:

572586688
306014166
511399088
469450314
84357363

result:

ok 5 lines

Test #9:

score: 10
Accepted
time: 157ms
memory: 246004kb

input:

100 12 6 5
BBBBBB
BBBBBB
BXBXBX
BXBXBX
BXBXBX
XBXBXB
WBXXBW
WBXWBB
WBBXXB
BWWBXW

output:

567223526
645235519
109930172
819649896
425302214

result:

ok 5 lines

Test #10:

score: 10
Accepted
time: 98ms
memory: 246128kb

input:

3 4 2 5
BB
BB
BW
WB
BB
WW
BX
BX
WB
BX

output:

33813
38088
36288
36890
38556

result:

ok 5 lines