QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#645078#8544. Colorful Graph 2MaMengQiWA 774ms3656kbC++202.4kb2024-10-16 16:49:142024-10-16 16:49:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3588kb

input:

3
3 0
4 1
1 3
6 3
0 2
2 4
4 0

output:

BRB
BRBB
BBRBRR

result:

ok ok (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 774ms
memory: 3656kb

input:

100000
9 6
2 0
4 6
3 6
0 6
0 7
2 6
3 0
5 2
2 4
2 0
6 3
1 5
4 1
2 4
9 6
3 1
6 4
8 1
3 6
1 6
8 6
3 0
7 4
3 0
4 0
6 4
3 1
7 4
5 1
5 0
3 1
1 4
4 1
1 3
6 3
2 4
4 0
2 0
6 3
3 0
1 3
5 3
7 4
0 5
2 5
5 1
3 5
8 5
4 1
5 1
5 0
1 3
5 7
3 0
8 5
0 2
4 6
0 6
0 3
4 0
8 5
5 1
1 4
5 0
3 1
5 7
3 0
10 7
0 2
9 2
5 8
3 9
...

output:

BRRBBRRRB
BRB
BBRBB
BRBRBR
BRRBBBRBB
BRB
BRBRBBR
BRBBBRR
BBBR
BRBRRR
BBRRBR
BRBRBRR
BRBBBRBB
BRB
BRBRRBRB
BRBRBRBB
BRB
BRRBRBRBBR
BRRBBRRB
BRBRRBBRBR
BRRBRBBRBR
BRRRBBRBRR
BRB
BBRBRBR
BRRBBR
BBRBBBRB
BRBR
BRRBRBR
BRBRBRRRRR
BBRRBBR
BRBBRBBR
BRRBBR
BRBRRR
BRB
BRB
BBRRRBBRR
BRBBRBB
BRBRB
BRRBRBRBBR
BR...

result:

wrong answer Token parameter [name=S] equals to "Impossible", doesn't correspond to pattern "[BR]{1,200000}" (test case 35554)