QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#503153 | #8065. Thwack! | xiaowuc1 | AC ✓ | 41ms | 3972kb | C++17 | 3.8kb | 2024-08-03 16:46:50 | 2024-08-03 16:46:51 |
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: 3620kb
input:
4 BWBW
output:
2 2 3 3 2
result:
ok 3 lines
Test #2:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
11 .BW.WB..W..
output:
0
result:
ok single line: '0'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
8 BBBBW.BW
output:
1 5 4
result:
ok 2 lines
Test #4:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
9 BBBBBW.BW
output:
0
result:
ok single line: '0'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
12 WBBWBWWBBWBW
output:
5 2 1 4 5 5 4 10 11 11 10
result:
ok 6 lines
Test #6:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
11 WBBWWWBBWBW
output:
5 1 2 4 3 9 10 10 9 11 10
result:
ok 6 lines
Test #7:
score: 0
Accepted
time: 41ms
memory: 3708kb
input:
100 BWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBW
output:
56 2 1 3 2 3 4 6 5 6 7 13 14 14 15 15 14 17 18 18 17 19 18 21 20 25 24 26 25 26 27 29 28 29 30 33 34 35 34 36 37 37 38 38 37 40 41 41 40 42 41 43 44 49 48 49 50 52 51 52 53 58 57 59 60 60 61 61 60 63 64 64 63 65 64 66 67 68 67 72 71 72 73 75 74 75 76 76 77 80 81 82 83 83 84 84 83 86 87 87 86 88 87 9...
result:
ok 57 lines
Test #8:
score: 0
Accepted
time: 35ms
memory: 3700kb
input:
99 BWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWBWB
output:
26 2 1 10 11 11 12 13 14 18 17 20 19 22 21 25 24 34 35 36 37 41 40 43 42 45 44 55 56 57 58 59 60 64 63 66 65 75 76 78 79 80 81 82 83 87 86 89 88 90 89 98 99
result:
ok 27 lines
Test #9:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
1 .
output:
0
result:
ok single line: '0'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
100 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
output:
0
result:
ok single line: '0'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
100 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
output:
0
result:
ok single line: '0'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
100 ....................................................................................................
output:
0
result:
ok single line: '0'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
5 .W.B.
output:
0
result:
ok single line: '0'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
1 B
output:
0
result:
ok single line: '0'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
1 W
output:
0
result:
ok single line: '0'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
2 BW
output:
2 1 2 2 1
result:
ok 3 lines
Test #17:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
2 WB
output:
2 1 2 2 1
result:
ok 3 lines
Test #18:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2 ..
output:
0
result:
ok single line: '0'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
2 BB
output:
0
result:
ok single line: '0'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
2 WW
output:
0
result:
ok single line: '0'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
3 B.W
output:
0
result:
ok single line: '0'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
98 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWBBWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
output:
0
result:
ok single line: '0'
Test #23:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
97 BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBWWBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
output:
2 49 48 50 51
result:
ok 3 lines
Test #24:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
100 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
output:
2 49 50 51 50
result:
ok 3 lines
Test #25:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
99 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
output:
2 49 50 51 50
result:
ok 3 lines
Test #26:
score: 0
Accepted
time: 30ms
memory: 3784kb
input:
100 WWBBWBWBBWWWBWWBWWWWBWWWBBBWWWBWBWWBWBWWBBWBBWBWBWWBBBWWBWWWWWWWWBWBWBBBWWBBWWWWWWWBWBWWWWWWBWWWWBWB
output:
0
result:
ok single line: '0'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
100 WWB.BBBBWWWBBWWBBWBWWBB.WWWBWBWWB.BBBBBBWBBWBB.W.WWBWWWBWBWBWWWBWBWB..BWB..WWWB.WBWBWW.BWBWW.BBBB..W
output:
0
result:
ok single line: '0'
Test #28:
score: 0
Accepted
time: 34ms
memory: 3664kb
input:
100 WWBWBBWBWBBWBWWWWBWWWBBWBBWBBBWWBBBBBWBBWBBWBBWWWBWWBWWBBWBBBBWWBBWBWBWBBBBWBBBWWWWBBWBBBBWBWWBBWBWB
output:
4 3 4 38 37 38 39 53 54
result:
ok 5 lines
Test #29:
score: 0
Accepted
time: 34ms
memory: 3772kb
input:
100 BBBWBWWWBBBWWWBWWBWWBWBBWBWWBBWWBWBWBBBBWWBWWBWBBBWWWWWBWWWWWWBWBWBBBWWBWBBWBBWBBBBBWBBBBBWBWWBBWBBW
output:
6 32 33 35 36 37 36 47 46 56 57 62 63
result:
ok 7 lines
Test #30:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
100 ..WW.WBB.BBWWWWW.WW.B.WWB...W.BWBB.BBBWWB..BW..W.BWW.BWBW...BBB..W..BB.BBBB.BBBW.W.WW......BWW.W.WW.
output:
9 12 11 38 39 40 41 41 40 44 45 45 44 54 55 57 56 79 80
result:
ok 10 lines
Test #31:
score: 0
Accepted
time: 1ms
memory: 3772kb
input:
100 .WBBWBB..BW.BWBB.BBWW...B.WWWBWBBWWBWWW.W.WWWWB.W.B......W.B.W.W.BB.W..WWBB....WBBWW..WB..BW.B...BBW
output:
3 29 30 33 34 36 35
result:
ok 4 lines
Test #32:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
100 BWB..B.BB..BBWBW.BBW.B.WWB..WB.BWB...BB.BWBBBBBWW.BWWBWW.BWW.BBBW..BW..WW.WBW.BWWWBB.WBB.WWB.W..B.B.
output:
10 13 14 15 16 20 19 26 25 42 43 54 55 58 59 65 64 86 87 92 91
result:
ok 11 lines
Test #33:
score: 0
Accepted
time: 4ms
memory: 3772kb
input:
100 BBBBBBBBBBBWBBBBBBBWBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBWBBBBBBBBBBBBBBBBBWBBBBBBBWBBBBBBB
output:
3 67 66 92 93 94 93
result:
ok 4 lines
Test #34:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
100 WBWWWWWWWWWW....WWWWWBBBWBWW.W.WWBWWWWWBBWWWBWWWWWWWWB.BWWBW.WBBBWW.WBWWWBBWBW.WWWWWWWWWWWWBWBWWWWWW
output:
2 45 44 54 53
result:
ok 3 lines
Test #35:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
100 W.B.B.W...B.BW.B.BB.WWWBBW.WB...W.B...WW..B.WWWBB..W.WW.B....WBB..WW..B.WWW.BB.BBB.BB.W.BWWBW..WWBW.
output:
0
result:
ok single line: '0'
Test #36:
score: 0
Accepted
time: 1ms
memory: 3776kb
input:
100 WBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
output:
1 2 1
result:
ok 2 lines
Test #37:
score: 0
Accepted
time: 0ms
memory: 3972kb
input:
100 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWB
output:
1 99 100
result:
ok 2 lines