QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#309388#8130. Yet Another Balanced Coloring Problemucup-team1293#RE 449ms15992kbC++173.7kb2024-01-20 17:00:142024-01-20 17:00:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 13104kb

input:

2
7 7
5 5 6 6 7 7
5 6 5 6 7 7
5 4
4 4 5 5
4 4 4

output:

RBBR
BRB

result:

ok ok (2 test cases)

Test #2:

score: 0
Accepted
time: 30ms
memory: 14764kb

input:

10000
6 6
5 5 5 5 6
5 6 6 6 6
9 6
7 9 7 7 6 8 9 9
6 6 6 6 6
9 8
9 9 8 7 7 8 8 9
7 7 8 7 7 7 8
6 10
4 5 5 6 6
4 6 5 7 8 9 8 9 10
6 9
6 6 6 6 6
6 9 7 8 8 9 9 9
8 9
8 6 6 7 6 7 8
7 9 7 6 7 8 9 9
9 8
6 7 7 5 8 8 8 9
7 5 6 5 8 7 8
8 7
6 6 5 5 6 7 8
5 7 6 6 7 7
9 9
8 9 8 8 8 8 9 9
9 9 8 8 9 9 8 9
9 8
8 8 ...

output:

BBRR
BRBRB
BRBBRR
BBR
BRBBR
BRBBR
RRBB
BRBR
BBBBRRR
BBBBRRR
BRB
BRBBRR
BBR
BRBRBBR
BBBRRR
RBBR
BBR
BBBRR
BBR
RBBRB
BRRBB
BRRB
BBBRR
BBR
BBRRB
BBRR
BRBRRB
BBBRRR
BRBR
RBRBBR
BBRBRR
BBBRR
BBBRRR
BBRBRR
BBRRBR
BRB
BBRR
RBB
BBR
BBBRR
BRRB
BBBRRR
BRB
BRRBB
RBB
BBBRRR
BBRRBR
BBR
BBBRRR
BRB
RBB
BBRR
BRBBR
...

result:

ok ok (10000 test cases)

Test #3:

score: 0
Accepted
time: 58ms
memory: 14480kb

input:

1000
98 96
41 39 52 47 34 37 45 33 68 54 74 35 65 58 49 46 53 42 87 30 43 48 38 36 56 40 88 66 32 31 72 44 91 96 51 85 83 61 60 59 80 63 70 80 75 61 51 83 50 69 86 55 79 62 67 57 73 93 96 64 69 91 78 73 80 83 81 91 91 71 76 81 75 90 92 77 82 89 82 86 98 84 96 89 97 96 91 97 94 93 95 97 97 95 96 97 9...

output:

RRRBRBBRRRBRBRBRBBBBRRBBBBRRB
BRRRBRRRBBBBBRBBBRRBBRRR
RBBRRBBBBBBBBRBBBBBBBRBRBBBRRRBBBRRBBBBRRRRRRRRRRBBBBRRRBRRRBBRRRBRRRBBRRRBBRRR
RRRBRRBBRBBRRRBBRRBBBBBBR
BBRRBBBRBBBBRBRRRBBRRBRRRBRBBBBRRRBRBRBBBBRRRBRRRR
BBRRBRBRRRBBBBBBBRBRRRBBBBRBRRRBRRRR
BBRBBBRBBBBRBRRBRRBBBRRBRRBRRRRBBRRRBR
RBRBBRB
RRBB...

result:

ok ok (1000 test cases)

Test #4:

score: 0
Accepted
time: 449ms
memory: 15992kb

input:

10
9442 9473
6729 7355 6467 7301 7964 7025 7066 7206 8711 8044 7401 6634 6594 9405 7767 7253 7611 6730 6630 8250 6872 6720 8868 8644 9280 7272 6808 8887 7965 7384 6376 9115 8340 7618 8377 9351 8690 8842 9014 6913 7207 7552 8087 9013 9340 6509 8152 6963 8666 8716 7681 6447 8097 7014 6854 8576 6915 92...

output:

BRRBBRRRBRRBRRBRBBBRBRBBBBRBRBBRBBBBBBRBBBRBRRRRBBBBRBBBRRRRRBRRBBBBBRBRBRRRBRBRRBBBRBRBBRBBRRBBBRRBRBRBBBBBBBRBRBBBBRBBBBBRRBRBBBBBBRRBBRRRBBBBBBBBRBRBBBBBBBRRBBRBBRBBRBRRRRRRRRBRRRBRBBBRRBRRBBBRBRBBBBBBBBBBBBRRRBBBBBRBRRBRBBBRRBBRBBBBBBRBBBBRBBBRBRBBBRBBRBRBBBRBBBRRRRBBBBBBRBRBRRBBRBBRBRRBBBBBBBBR...

result:

ok ok (10 test cases)

Test #5:

score: -100
Runtime Error

input:

1
100000 100000
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 9...

output:


result: