QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505459#5831. Rotatexiaowuc123 ✓28ms3608kbC++172.3kb2024-08-05 05:32:562024-08-05 05:32:57

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 1ms
memory: 3608kb

input:

100
7 3
.......
.......
.......
...R...
...BB..
..BRB..
.RRBR..
6 4
......
......
.R...R
.R..BB
.R.RBR
RB.BBB
4 4
R...
BR..
BR..
BR..
3 3
...
...
...
3 3
B.B
RBR
RBR
3 3
...
...
...
3 3
...
...
...
3 3
RB.
BBR
BRR
3 3
RB.
BRB
RRB
3 3
R.R
BBR
RBB
3 3
BR.
RBB
RBR
3 3
..B
.BR
RRB
3 3
B.R
RBB
RBR
3 3
R....

output:

Case #1: Neither
Case #2: Both
Case #3: Red
Case #4: Neither
Case #5: Blue
Case #6: Neither
Case #7: Neither
Case #8: Blue
Case #9: Both
Case #10: Neither
Case #11: Blue
Case #12: Neither
Case #13: Blue
Case #14: Red
Case #15: Neither
Case #16: Blue
Case #17: Both
Case #18: Blue
Case #19: Both
Case ...

result:

ok 100 lines

Subtask #2:

score: 12
Accepted

Test #2:

score: 12
Accepted
time: 28ms
memory: 3548kb

input:

100
3 3
...
...
...
3 3
...
...
...
3 3
RB.
BBR
BRR
3 3
RB.
BRB
RRB
3 3
R.R
BBR
RBB
3 3
BR.
RBB
RBR
3 3
..B
.BR
RRB
3 3
B.R
RBB
RBR
4 3
..B.
..R.
BRBR
BBRR
4 3
....
BR..
RB..
RBR.
5 4
B..RB
R.BRR
BBRBB
BBRBR
RRRBR
5 4
..R..
B.R..
R.B.B
RRRBB
BBRRB
6 3
R.....
B...B.
R...B.
B...RR
B.BRBR
RRBRRB
6 6
.R...

output:

Case #1: Neither
Case #2: Neither
Case #3: Blue
Case #4: Both
Case #5: Neither
Case #6: Blue
Case #7: Neither
Case #8: Blue
Case #9: Red
Case #10: Red
Case #11: Neither
Case #12: Neither
Case #13: Blue
Case #14: Neither
Case #15: Red
Case #16: Blue
Case #17: Red
Case #18: Red
Case #19: Blue
Case #20...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed