QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#165207#7179. Fischer's Chess Guessing Gameucup-team1688#AC ✓311ms3924kbC++143.3kb2023-09-05 16:39:142023-09-05 16:39:14

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 3624kb

input:

GAME 1
1
1
5
3
1
8
END

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 99ms
memory: 3920kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
RKRBBQNN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
RKRBBNQN
NRBBNKQR
QBRNKNBR
RKBBNQRN
BNRKQBRN
QRKRNBBN
RKRBBNNQ
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
RKRBQNBN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
RKRBNQBN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQ...

result:

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

Test #3:

score: 0
Accepted
time: 180ms
memory: 3688kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
RKQBBNNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
BBRNKRQN
RKNRBBNQ
RKNBBQNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
NRKBQRBN
RQNNKRBB
RKNBBNQR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
RKQBNNBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
RKNBQNBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQ...

result:

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

Test #4:

score: 0
Accepted
time: 311ms
memory: 3924kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
RQNBNKBR
RNKRBBQN
QRKRBBNN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
NRKRBBQN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
NRKRBBNQ
NRBBNKQR
QBRNKNBR
RKBBNQRN
NQRKBNRB
BNNRKBQR
QRKRBNNB
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
NRKRBQNB
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQ...

result:

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

Test #5:

score: 0
Accepted
time: 241ms
memory: 3856kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
BNQRKBRN
RNQNBKRB
RQNKRBBN
NRBBNKQR
QBRNKNBR
RKBBNQRN
BNQRKBRN
RNQNBKRB
RNQKRBBN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
RNNKRBBQ
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNBKQNRB
BNQBNRKR
RQNKRNBB
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNBKQNRB
BNQBNRKR
RNQKRNBB
NRBBNKQR
QBRNKNBR
RKBBNQRN
BNQ...

result:

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

Test #6:

score: 0
Accepted
time: 264ms
memory: 3652kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
NNBRKRQB
RKBBRNNQ
QRBKNBRN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
NRBKQBRN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
NRBKNBRQ
NRBBNKQR
QBRNKNBR
RKBBNQRN
NRKBQRBN
RQNNKRBB
QRBKNNRB
NRBBNKQR
QBRNKNBR
RKBBNQRN
BNRNKBRQ
RKNBNQBR
NRBKQNRB
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQ...

result:

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

Test #7:

score: 0
Accepted
time: 186ms
memory: 3924kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
BNRKQBRN
QRKRNBBN
RBBQKRNN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
RBBNKRQN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBNKNRBQ
RNKQBRNB
RBBNKRNQ
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
RBQNKRBN
NRBBNKQR
QBRNKNBR
RKBBNQRN
NRKBQRBN
RQNNKRBB
RBNQKRBN
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQ...

result:

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

Test #8:

score: 0
Accepted
time: 67ms
memory: 3688kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
QRNBKNBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
NRQBKNBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
NRNBKQBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
QRNNKBBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
NRQNKBBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
QBR...

result:

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

Test #9:

score: 0
Accepted
time: 164ms
memory: 3668kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
QBBRKNNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
NBBRKQNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
NBBRKNQR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
QBNRKNBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
NBQRKNBR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBB...

result:

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

Test #10:

score: 0
Accepted
time: 154ms
memory: 3892kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
QRNNKBBR
NRBQKNRB
BBRQNKNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBBKNNQR
RQKBBRNN
BBRNQKNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RNQKBBNR
RKNBNRBQ
BBRNNKQR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQKBNRN
RBKNNRBQ
BQRBNKNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
NNBRKRQB
RKBBRNNQ
BNRBQKNR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RBQ...

result:

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

Test #11:

score: 0
Accepted
time: 143ms
memory: 3644kb

input:

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

output:

NRBBNKQR
QBRNKNBR
RKBBNQRN
RKNQBBNR
BRKRNBQN
RQNBBNKR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RKNQBBNR
BRKRNBQN
RNQBBNKR
NRBBNKQR
QBRNKNBR
RKBBNQRN
BNRBNQKR
RNQNKBBR
RNNBBQKR
NRBBNKQR
QBRNKNBR
RKBBNQRN
NRNKBQRB
RBKNBNRQ
RQNNBBKR
NRBBNKQR
QBRNKNBR
RKBBNQRN
NRNKBQRB
RBKNBNRQ
RNQNBBKR
NRBBNKQR
QBRNKNBR
RKBBNQRN
RQN...

result:

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

Extra Test:

score: 0
Extra Test Passed