QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#197527#7179. Fischer's Chess Guessing Gameucup-team1623#TL 1327ms3728kbC++142.1kb2023-10-02 16:49:132023-10-02 16:49:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 30ms
memory: 3720kb

input:

GAME 1
4
3
1
5
8
END

output:

RQKBBNRN
RQKNBRNB
RQBKNNRB
RKNBBRQN
RKRBBQNN

result:

ok (c) correct after 1 tests, max moves 5 (1 test case)

Test #2:

score: 0
Accepted
time: 1327ms
memory: 3628kb

input:

GAME 1
4
3
1
5
8
GAME 2
5
3
3
3
8
GAME 3
4
3
2
6
8
GAME 4
4
1
3
2
8
GAME 5
3
2
4
2
8
GAME 6
3
1
2
6
8
GAME 7
3
1
5
8
GAME 8
3
1
6
8
GAME 9
2
3
1
3
8
GAME 10
3
0
1
8
GAME 11
2
4
6
8
GAME 12
3
0
2
4
3
8
GAME 13
2
3
3
6
8
GAME 14
2
2
3
5
8
GAME 15
1
1
8
GAME 16
2
3
3
8
GAME 17
2
2
4
2
8
GAME 18
1
2
3
8...

output:

RQKBBNRN
RQKNBRNB
RQBKNNRB
RKNBBRQN
RKRBBQNN
RQKBBNRN
RQKRBNNB
RQNKBBRN
RQKBNRBN
RKRBBNQN
RQKBBNRN
RQKNBRNB
RQBKNNRB
RKQBBNNR
RKRBBNNQ
RQKBBNRN
RQKNBRNB
RNBBKQRN
BQNBRKRN
RKRBQNBN
RQKBBNRN
NRBBQKRN
RKNBQNBR
RNBBKNQR
RKRBNQBN
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKQBNNBR
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKR...

result:

ok (c) correct after 96 tests, max moves 6 (96 test cases)

Test #3:

score: 0
Accepted
time: 1294ms
memory: 3728kb

input:

GAME 1
4
3
2
8
GAME 2
3
1
4
8
GAME 3
4
2
1
3
8
GAME 4
3
1
2
8
GAME 5
3
2
8
GAME 6
2
6
5
8
GAME 7
2
4
4
8
GAME 8
2
4
5
3
8
GAME 9
2
3
1
5
8
GAME 10
1
0
8
GAME 11
1
0
6
8
GAME 12
1
0
6
6
8
GAME 13
4
4
3
3
8
GAME 14
5
5
3
8
GAME 15
4
4
2
4
8
GAME 16
4
2
2
8
GAME 17
3
1
3
2
8
GAME 18
3
0
4
8
GAME 19
5
6...

output:

RQKBBNRN
RQKNBRNB
RQBKNNRB
RKQBBNNR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQKBBNRN
RQKNBRNB
RQBKNBRN
RNKBRNBQ
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKQBNNBR
RQKBBNRN
NRBBQKRN
RKNBQNBR
RQKBBNRN
RKBBNQNR
RNBBNQKR
RKNBNQBR
RQKBBNRN
RKBBNQNR
RKNRBQNB
RKQNBBNR
RQKBBNRN
RKBBNQNR
RKNRBQNB
RKBRQNNB
RKNQBBNR
RQK...

result:

ok (c) correct after 96 tests, max moves 6 (96 test cases)

Test #4:

score: -100
Time Limit Exceeded

input:

GAME 1
3
2
0
2
8
GAME 2
3
3
1
2
8
GAME 3
2
1
4
5
4
8
GAME 4
3
1
2
1
8
GAME 5
2
2
3
0
8
GAME 6
3
2
1
0
2
8
GAME 7
2
1
4
5
8
GAME 8
2
0
3
1
8
GAME 9
1
0
3
8
GAME 10
2
1
3
8
GAME 11
2
0
5
8
GAME 12
1
1
2
0
2
8
GAME 13
3
3
2
8
GAME 14
4
1
2
6
8
GAME 15
3
2
2
2
0
8
GAME 16
2
1
4
6
8
GAME 17
2
0
4
2
8
GAM...

output:

RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRKNBRN
QRKRBBNN
RQKBBNRN
NRBBQKRN
RBBKNQRN
BRKNQNRB
NRKRBBQN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
BRKRQBNN
QRKRNBBN
NRKRBBNQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKQBNNBR
QRKRBNNB
RQKBBNRN
RKBBNQNR
RNKNRQBB
RKNQRBBN
NRKRBQNB
RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRBKRNN
RNQNBKRB
NRKRBNQB
RQKBBNRN
RKB...

result: