QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#804171 | #9665. Black-White Cubic Lattice | ucup-team4744 | AC ✓ | 76ms | 8140kb | C++20 | 2.5kb | 2024-12-07 20:50:02 | 2024-12-07 20:50:03 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3856kb
input:
2 2 2 WW WW BB BB 1 1 1 1 2 2 2 2
output:
5
result:
ok single line: '5'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2 1 1 W B 0 1
output:
1
result:
ok single line: '1'
Test #3:
score: 0
Accepted
time: 30ms
memory: 8140kb
input:
1 1 5000 B W W W W W W W W B B B W B W B W B W W B W W B B W B B B B W W W W W W W B B B B B B B B B W B B W B B B W W B B W W W W W W W B B B B W B B W B W W W W W B B W B B W W B W B B B B W W W B B W B W W W W W B W B B B W W B W B B W B W B B B B B W B B W W W W B W B W B W B W B B W B B B W W W...
output:
1218
result:
ok single line: '1218'
Test #4:
score: 0
Accepted
time: 26ms
memory: 6960kb
input:
5000 1 1 B W B W B B B B W W W W B W W W W W W W B B B B B B W W W B B B B B B B W B W B W B B W B B W B B B W B W B B B B W B W W B W B W B W W W W B B W W W B W W W W B W B W B W W W W B B W B W B W B B W W W B B B B W W W B W B W B B B W B W B W B B B W B W B B B W B B B B W W B W B W W W W W B W...
output:
242900000
result:
ok single line: '242900000'
Test #5:
score: 0
Accepted
time: 1ms
memory: 4884kb
input:
1 5000 1 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW...
output:
100000
result:
ok single line: '100000'
Test #6:
score: 0
Accepted
time: 76ms
memory: 4732kb
input:
2 2500 1 BWBBWWWBBBWBWBBBBBBBWBBBBBWWWWBBWBWWBBBBBBBBBWBWBWBBWWBBWWWBBWWWBBWWWWBWBBBWWBWBWBWWBBBWBWWWWWWWWWBBBBWWWBBBBWWBWBWBWBWBWWBWBBBBBBWBBWWWBWWBWWBWWBWWWBWWWBBBBBBBWBBWWBWWWWWWWBBBBWWBBBBBWWWBBBBBBWBWWWBWWWWBBBBWWWWWBWWBBBBWWWBWWBBWBWBBWWWBBBWWBBWBBWWBWWBBWBWBBWBWWWBWWWWWBBWWWBWWWWWWBWWWBBBWWBW...
output:
12335546
result:
ok single line: '12335546'
Test #7:
score: 0
Accepted
time: 64ms
memory: 5056kb
input:
1666 3 1 WBB WWB BWB BWW WWB WWB BBB BBB BBW WBB BBB BBW BWW WWB BBB BBW WWW BBW WWW BWW BWB WWB BWB WWW BWB BWW WWB BWW BWB BBB BBW BBB BWB WWB WBW WWB BWB BWW BWB WWW BBW BBW BBW BWW BWB BBB WWB BBB BBB WBB BBW BBB BBW BBB BBB WBW BBW WBW BBB BWB WBW BBW WWW WWW WWW BWB WWB BBW WBB WWB BWW BBW WBW...
output:
11971988
result:
ok single line: '11971988'
Test #8:
score: 0
Accepted
time: 66ms
memory: 6948kb
input:
4 1 1250 W B W B B W B B B W B B W W W W B B B B W B B B B W W B W W B W W B W W B B W B B W B B W B W W B W W B W B W B W W W B B B W W B B W B B B W B B W W W B B W B W B B B W B B W B W B B B B B W W W B W B W W W W B W B W B B B W W B W W W W W B B B B B W W W W B B W W W W W B B B B B B W W W B...
output:
12131611
result:
ok single line: '12131611'
Test #9:
score: 0
Accepted
time: 13ms
memory: 4608kb
input:
70 71 1 WBBWBBBWWBBBWWWBBBWWBWWWBWBBBWBWWWWWBWWBBWBWWWBWBWWBBWWBBWWBBBWBWWWWWWB WWBBBWWBWWBWBBWBBWWWWBBBWWWBBWWBBWWWWWBWWWBWWBWWBWBWWBBWWBBWBWWBWBWBBWW BWWWBWBBBBWWWWWWBWWBBWWBWWWWWBWWWWBBWBBWBWBWWBWWBBBBWBBBBWBBWWWWBBBBWWB BWBWBWBBWWWBBWWBBWWBWWBBWWBWBBWBWBBWBWWBWWBBBWBWWWBBWBBBWWWBBWBBBWWWBBW WWWW...
output:
11904642
result:
ok single line: '11904642'
Test #10:
score: 0
Accepted
time: 20ms
memory: 6656kb
input:
12 4 95 BBWW WBWW BWBW WWBW BWBB BWBW WBWW BWWB WWBW BWBW WWWB BWBW WWWB WBWB BWBB BBBW WBBB BWWW BWWW BBWW WWBW WBWB WWBB WWWW WBWW BBBW WBBB WWWW WBBW BBBB WWBB WBWW WWWW BBWW WBBW WWBW WWWB WWWB BWWW BWWW BWWB BWBW BBBB WWWB WBBB WWWB WWWW WBWB WWWB BBBB WWBB WBBW BBWB BBWB WWWW WWBW WBWW WBWW WW...
output:
10402
result:
ok single line: '10402'
Test #11:
score: 0
Accepted
time: 10ms
memory: 5960kb
input:
25 10 20 BBWBWBWBBW BBBWBBWBWW WBWBWBWWWB WBWBBWBWBW WWWWWWWBWB BBWBWBWWBB BBBBBWBWWB BWWWWBWWBW BWBBBBWWWW WWBBWBWBWW WWBWWWBBWW BWBWWBBWBB BBWBBWBWWB WBBBBBWWWW BBWWBBBWWB WWWWBWWWWB WBBBWWBWBW WBBWBWWBBB BBWBWWBBWW WWBWBWBWWB BBBBWWBWBB WWWWWWBBWB WWWBWWBBBW WBBWWWWBWW BBBWWWBWWB BWWWBWBBBB BBBWW...
output:
11106
result:
ok single line: '11106'
Test #12:
score: 0
Accepted
time: 14ms
memory: 4828kb
input:
50 2 50 BB WB BB BB BB BW BW WW BB WB WW BW WB BB BW WW BW BW BB WB WB BW WB WB WW WW WB BB WW BW WB BW WW BB BW BB BW BB WB WW WW WW BB WW BW BB BB BB BB WB BW WW WB BW BW BW WW WB BB WW WW BB WW BB WB BB BW BB BB WB WW BB WW WB WB WW WW BB BW WB WB WW WB WB WB WB BB WB WW BW WW BB WB BW BW WB WB W...
output:
11686
result:
ok single line: '11686'
Test #13:
score: 0
Accepted
time: 40ms
memory: 4604kb
input:
4 5 210 BWBWW BBBWW WBWWW WBWWW WBWBB BWBWW BBBWB WBBWB BWWWB BWBBB BWBBB WBBBB BBBBB WWBWB WBBBW WBWWB WBBBB BBWBB BWWBB WBBWW WWWBW WBBBW WWBBB WWBBB WWBWB BWBWW BWBBB BWWBB BBWBB BWWWB WWBBW WBBBB WBWBW BBWBW WBBBB BWBWW BBBWW BBWWW WWBBB WWWWB WWWBB BBBWB WWBWB BBWBW BBBBB BBBBB WWWWW BBWBB WWBW...
output:
9895
result:
ok single line: '9895'
Test #14:
score: 0
Accepted
time: 10ms
memory: 4896kb
input:
15 43 7 BWWWWBWBWBBBWWWWWBWBWBBBBBWWBBBBWWBWBWWBWBW BBWBWBWBBBWBBWWWWBWWWWWWBBBBBWWBWBWWWBBBWWB BWBBWBBBBBWBBWBBBWBBBBBBBWBBBBBWWWWBBBBBBBW BWBWWBBWBWBBBBWBBWBWWWWWWWBBWBWWBWBBWBBWBBB BBWWWBWWWBWWBWWBBWWWWWWWWBBWWWWWWBWBBBWWWBB WBWWBWBWBWWBWWWWWWWWBWWWBWWWWWBWWBBWBBBBWBW BBBBWWWBBWBBBBBBWWWBWBWWBBWW...
output:
10218
result:
ok single line: '10218'
Test #15:
score: 0
Accepted
time: 15ms
memory: 6004kb
input:
10 10 50 BBBBWWBBWW BWBBWBWWBB WWBBWWWWBB WBWWBBWWBW WBWBWBWBWW BBWBWWBWBB BWBWBBWBBB WWWBWBBBBW WBWWBBWWBW BWWWWBBWBB WWWWBWWWBW BBWBWWWBWB WWWWWWWBBB WBBBWWWWBB WWWBWBBBBW BWWWBWWWBB WWBBBBBBWB BWBBWBWWWB BBWWWWWWWB WWBWWBBWWW BWWWBWWBBB WWBBWWWBBB WWWBWWBWWW BWBWWBBWBW BBBBBWBWBW WBWWWWWBBB BBBBB...
output:
113532736
result:
ok single line: '113532736'
Test #16:
score: 0
Accepted
time: 12ms
memory: 4776kb
input:
16 17 18 WBWBWBWBWWWWBBWBB BBWBBWWWWBWBWBBBW BBWBWBBBBBWBWWBWB WBBBBBWWBBBBBWWBB WBBWWWWBWBWBWWWBW WBBWWWWWWBWWBWWBW WWBBBBBBBWWBBWBWB WWBWBWWWBWWWWBWBW BBBBBBBBBBWWWBBBW WWBBWBWBBWBBWBWWW WBBWBBBBBBWWWWWBW BBBBWWBBWBBBBBBBB WBWWBWWWBBWWWBWBW WBBWBBBBWBWBWBBWB WBBBWBWBWBBBWWWWB WWBWBWWWWBWWBWBWB WWB...
output:
109472675
result:
ok single line: '109472675'
Test #17:
score: 0
Accepted
time: 1ms
memory: 4840kb
input:
17 17 17 BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBB...
output:
100000
result:
ok single line: '100000'
Test #18:
score: 0
Accepted
time: 8ms
memory: 4712kb
input:
17 17 17 WWWBBBBWWBBBWWBWW WWWWBBBBBWBBBBBWW BWWWBBWWBWBWBWWWW WBBBBWBWWBWBWWWWB BWWBWWWWWBWBBBBWW WBBBWWBBBBWBBBWWB BWWWBBBBWWBWBWBWW WWBWBWBBBBWBWBBBW WWBWWWBWBBWBWWWBW BWWBBWWBBBWBWBWWB BBBWBBBWWBWBWBWWB WWWBWWWBBWBBWWWBB WBBBWBWBBBWWWBBBW WBWBWBBBWBWBBWWWW BBBWWBWWBWWBWBBBB WBBBWBBWBBWBBBWBB WWW...
output:
1128
result:
ok single line: '1128'
Test #19:
score: 0
Accepted
time: 8ms
memory: 6268kb
input:
17 17 17 WWWBBWWBBWBWWBWWB BWWBBBWWWWWWWBWBB WWWBWBBBBBWWWWWBB WWWWWWBWBBBBWWWBW WBWWBBWWWBBWBWWWB BWBBWWWBBWWWBBBBW WBBBBWBWWWBWWWBBB WWWWWWWWBBWWWWWBW WWWWBBWBWWWWWBWWB BBBBBBWWBBBWBBBWW BBBBBBBBBWWWWWWWB BBWWWWBBWWBBWWBBB WBWBBBBWWBWBBWWBB BBBBWBWWWBBBBBBWB BWBWWWBBWWBBWBWBB BBWWWBWWBWBWWBWBB WBB...
output:
5346
result:
ok single line: '5346'
Test #20:
score: 0
Accepted
time: 15ms
memory: 4760kb
input:
17 17 17 WWBBWWWWWBWWWBBBW BWWWWWWBWBWWBBWWW WWWWWBWBWBWWWWWBW WWWWBWBBBBWBWWWWW BBBBWBBWWWWWBWWWW WBWWBWWWBBBBBWBBW BBWWWWWBWBBBBWBBW BWWBBBWBWWWBBWWBW WWBBWWWBBWWBBWBWB WBBBWBWBBBBBBBBWW BWWBWBBWBWWBWBBBB WWWBWWWWWBWBBWWWW BBBBBBWBWWWBWBBBB WWWWWBBBBBBWWWWWB BWBBWWWBWBBWWBBWB WBWBBBBBWBWBWWBBB WWW...
output:
113499454
result:
ok single line: '113499454'
Extra Test:
score: 0
Extra Test Passed