QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#173598#7179. Fischer's Chess Guessing Gameucup-team678#AC ✓28ms3708kbC++145.1kb2023-09-10 00:26:472023-09-10 00:26:47

詳細信息

Test #1:

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

input:

GAME 1
4
3
3
8
END

output:

RQKBBNRN
RQKNBRNB
QRKBBNNR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 17ms
memory: 3620kb

input:

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

output:

RQKBBNRN
RQKNBRNB
QRKBBNNR
RKRBBQNN
RQKBBNRN
RKNBBQRN
RBKNBQRN
RKRBBNQN
RQKBBNRN
RQKNBRNB
QRKBBNNR
QRKNBBRN
RKRBBNNQ
RQKBBNRN
RQKNBRNB
RNBBKQRN
QRNBBKRN
RKQBRNBN
RKRBQNBN
RQKBBNRN
NRBBQKRN
RKNBQNBR
QRKBNNBR
RKQBNRBN
RKRBNQBN
RQKBBNRN
NRBBQKRN
RKNRBBQN
QRKRBNNB
RKQBNNBR
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RKN...

result:

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

Test #3:

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

input:

GAME 1
4
3
5
8
GAME 2
3
1
4
8
GAME 3
4
2
4
8
GAME 4
3
1
2
1
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
0
8
GAME 10
1
0
8
GAME 11
1
0
6
8
GAME 12
1
0
6
6
8
GAME 13
4
4
4
2
8
GAME 14
5
3
4
8
GAME 15
4
4
3
3
8
GAME 16
4
2
2
3
8
GAME 17
3
1
3
2
8
GAME 18
3
0
4
1
8
GAME 19...

output:

RQKBBNRN
RQKNBRNB
QRKBBNNR
RKQBBNNR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQKBBNRN
RQKNBRNB
RKNQBBRN
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
QRKRBNNB
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: 0
Accepted
time: 19ms
memory: 3624kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNBQNBR
QRKRBBNN
RQKBBNRN
NRBBQKRN
RBBKNQRN
BRKNQNRB
NQNRBKRB
NRKRBBQN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QRKRNBBN
QRBNKBRN
NRKRBBNQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
QRKRBNNB
RQKBBNRN
RKBBNQNR
RNKNRQBB
RKRNQBBN
NRKRBQNB
RQKBBNRN
NRBBQKRN
RKNBQNBR
RQBKRBNN
BRKQNNRB
NRKRBNQB
RQKBBNRN
RKBBNQNR
BRK...

result:

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

Test #5:

score: 0
Accepted
time: 22ms
memory: 3708kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQNKRBBN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QRNBKRBN
RBNKRNBQ
RNQKRBBN
RQKBBNRN
BNRKRNQB
RNBNKRQB
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RQKNNBBR
RQNKRNBB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QBRKBRNN
RNQKRNBB
RQKBBNRN
BNRKRNQB
BNRBNKQR
RNBKRQNB
RNNKRQBB
RQKBBNRN
RKBBNQNR
NQRBNKBR
RKQNBRNB
RBB...

result:

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

Test #6:

score: 0
Accepted
time: 27ms
memory: 3664kb

input:

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

output:

RQKBBNRN
RKBBNQNR
RNKNRQBB
QRBKNBRN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QRKRNNBB
BBRQNKRN
NRBKQBRN
RQKBBNRN
BNRKRNQB
RKRNNBBQ
RKBRNQNB
QRKNNRBB
NRBKNBRQ
RQKBBNRN
RKBBNQNR
RNKNRQBB
QRBKNNRB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QBBNRKRN
BQRKRBNN
NRBKQNRB
RQKBBNRN
BNRKRNQB
BRNNKQRB
RKNNRQBB
BRKNQRNB
NRBKNQRB
RQKBBNRN
NRB...

result:

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

Test #7:

score: 0
Accepted
time: 25ms
memory: 3660kb

input:

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

output:

RQKBBNRN
RKBBNQNR
NQRBNKBR
RKQNBRNB
RBBKQRNN
RBBQKRNN
RQKBBNRN
RKBBNQNR
RNKNRQBB
QNRBKNBR
RBQKNRBN
RBBNKRQN
RQKBBNRN
BNRKRNQB
RKQNNBBR
QRBBNKNR
QBNNBRKR
RBBNKRNQ
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QRNBKRBN
RQNNKRBB
RBQNKRBN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QBRKBRNN
RNNKBRQB
RBNQKRBN
RQKBBNRN
BNRKRNQB
RKQNNBBR
QRN...

result:

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

Test #8:

score: 0
Accepted
time: 28ms
memory: 3648kb

input:

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

output:

RQKBBNRN
RKBBNQNR
RNKNRQBB
QRBKNNRB
QRNBKNBR
RQKBBNRN
RKBBNQNR
RNKNRQBB
QRBKNNRB
NRQBKNBR
RQKBBNRN
BNRKRNQB
RKQNNBBR
QRBBNKNR
NQBRKBNR
NRNBKQBR
RQKBBNRN
QBRNNKBR
BBQRNKNR
QRNNKBBR
RQKBBNRN
QBRNNKBR
BBNRNQKR
QRBNKBNR
NRQNKBBR
RQKBBNRN
QBRNNKBR
QNNRKRBB
QRBKNRNB
BBNRKQNR
NRNQKBBR
RQKBBNRN
BNRKRNQB
BRN...

result:

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

Test #9:

score: 0
Accepted
time: 25ms
memory: 3580kb

input:

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

output:

RQKBBNRN
BNRKRNQB
RKRNNBBQ
QBBRKNNR
RQKBBNRN
QBRNNKBR
QNNRKRBB
BRNNKBQR
NBBRKQNR
RQKBBNRN
BNRKRNQB
BRNNKQRB
QBBNRNKR
QNRNBBKR
NBBRKNQR
RQKBBNRN
BNRKRNQB
RKRNNBBQ
QRNKBBNR
BRQBNKNR
QBNRKNBR
RQKBBNRN
BNRKRNQB
RKRNNBBQ
QRNKBBNR
NRBQNKRB
NBQRKNBR
RQKBBNRN
QBRNNKBR
BBNRNQKR
BBNRQKNR
NBNRKQBR
RQKBBNRN
QBR...

result:

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

Test #10:

score: 0
Accepted
time: 21ms
memory: 3608kb

input:

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

output:

RQKBBNRN
QBRNNKBR
QBBRNKNR
QBBNNRKR
BBRQNKNR
RQKBBNRN
QBRNNKBR
QBBRNKNR
BBRNQKNR
RQKBBNRN
QBRNNKBR
QBNRNKBR
BBRNNKQR
RQKBBNRN
RKBBNQNR
RKNRBQNB
RQBNNBKR
RNQBNKBR
BQRBNKNR
RQKBBNRN
BNRKRNQB
RNBNKRQB
QNRKBBNR
BNRBQKNR
RQKBBNRN
BNRKRNQB
BNRBNKQR
RQKBBNRN
BNRKRNQB
RKRNNBBQ
QRBNNKRB
NRKRNQBB
QBRNBKNR
RQK...

result:

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

Test #11:

score: 0
Accepted
time: 26ms
memory: 3608kb

input:

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

output:

RQKBBNRN
RKNBBQRN
RQNKBNRB
RQNBBNKR
RQKBBNRN
RQKNBRNB
RKNQBBRN
RQNBKNBR
RNQBBNKR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBRNBQ
RNKQRBBN
RNNBBQKR
RQKBBNRN
NRBBQKRN
RQKNNBBR
RQNNBBKR
RQKBBNRN
RKBBNQNR
RNKNRQBB
RKRNQBBN
RBQNKNBR
RNQNBBKR
RQKBBNRN
RKBBNQNR
RNKNRQBB
QNRBKNBR
RNNKBBQR
RNNQBBKR
RQKBBNRN
RKBBNQNR
NQR...

result:

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

Extra Test:

score: 0
Extra Test Passed