QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#178379#7179. Fischer's Chess Guessing GameWhiteqwqAC ✓99ms7772kbC++201.6kb2023-09-13 21:58:402023-09-13 21:58:41

詳細信息

Test #1:

score: 100
Accepted
time: 6ms
memory: 7488kb

input:

GAME 1
4
3
3
2
8
END

output:

RQKBBNRN
RQKNBRNB
RKQNBNRB
QRKRBNNB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 90ms
memory: 7772kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RKQNBNRB
QRKRBNNB
RKRBBQNN
RQKBBNRN
RKNRBNQB
RKNBBQRN
RKRBBNQN
RQKBBNRN
RQKNBRNB
RKQNBNRB
QRKRBBNN
RKRBBNNQ
RQKBBNRN
RQKNBRNB
RKBQRNNB
QRBNKNRB
RKRBQNBN
RQKBBNRN
NRQBBKNR
RKNRBBQN
QRKNBBRN
QRKRNBBN
RKRBNQBN
RQKBBNRN
NRQBBKNR
RKNRBBQN
QRKBNNBR
QRKRBBNN
RKRBNNBQ
RQKBBNRN
NRQBBKNR
QRB...

result:

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

Test #3:

score: 0
Accepted
time: 84ms
memory: 7436kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RKQNBNRB
QRKRBNNB
RKQBBNNR
RQKBBNRN
NRQBBKNR
QBNRBNKR
QRKRBBNN
RKNBBQNR
RQKBBNRN
RQKNBRNB
RNBBQNKR
QBRKBNNR
RKNBBNQR
RQKBBNRN
NRQBBKNR
QRKBNNBR
QRKRBBNN
RKQBNNBR
RQKBBNRN
NRQBBKNR
QRBBNNKR
QRBKNBRN
QRKRBBNN
RKNBQNBR
RQKBBNRN
NRKBBQNR
RQNBBKNR
RKQRBBNN
QRKRBBNN
RKNBNQBR
RQKBBNRN
NRK...

result:

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

Test #4:

score: 0
Accepted
time: 95ms
memory: 7536kb

input:

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

output:

RQKBBNRN
NRQBBKNR
QRKBNNBR
QRKNRBBN
QRKRBBNN
RQKBBNRN
NRQBBKNR
QRKBNNBR
QRKRBBNN
NRKRBBQN
RQKBBNRN
NRKBBQNR
QRKRNBBN
QRKBRNBN
NRKRBBNQ
RQKBBNRN
NRQBBKNR
QRKBNNBR
QBRKBNNR
QRKRBNNB
RQKBBNRN
NRKBBQNR
QRKRBBNN
QRKRBNNB
NRKRBQNB
RQKBBNRN
NRQBBKNR
QRKBNNBR
QRKNRBBN
NRKRBNQB
RQKBBNRN
NRKBBQNR
QNNBBRKR
RBB...

result:

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

Test #5:

score: 0
Accepted
time: 98ms
memory: 7720kb

input:

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

output:

RQKBBNRN
NRQBBKNR
BNRQKBRN
QRKRBNNB
QRKRBBNN
RQNKRBBN
RQKBBNRN
NRKBBQNR
RKNQNRBB
QBRNBKRN
QRKRBBNN
RNQKRBBN
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
QNRKNBBR
QRKRBBNN
RNNKRBBQ
RQKBBNRN
NRQBBKNR
BNRQKBRN
QRKRNBBN
RQNKRNBB
RQKBBNRN
NRKBBQNR
RKNQNRBB
QRKNRNBB
QRKRNBBN
RNQKRNBB
RQKBBNRN
RNBBNKRQ
RKNNQRBB
RKQNNBBR
RNN...

result:

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

Test #6:

score: 0
Accepted
time: 96ms
memory: 7504kb

input:

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

output:

RQKBBNRN
NRKBBQNR
RBBNKQNR
QRBKRNNB
QRBKNBRN
RQKBBNRN
NRKBBQNR
QNNBBRKR
QRKNNBBR
QRBKRBNN
NRBKQBRN
RQKBBNRN
RNBBNKRQ
NRQNBKRB
QRBKRNNB
NRBKNBRQ
RQKBBNRN
NRKBBQNR
RBBNKQNR
QRBKRNNB
QRBKNNRB
RQKBBNRN
NRKBBQNR
QNNBBRKR
QRKNNBBR
QRBKRBNN
NRBKQNRB
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
BBQNRKNR
NRBKNQRB
RQKBBNRN
NRQ...

result:

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

Test #7:

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

input:

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

output:

RQKBBNRN
NRKBBQNR
RBBNKQNR
QRBKNRNB
RBBQKRNN
RQKBBNRN
NRKBBQNR
RKNQNRBB
QBRNBKRN
QRKNRNBB
RBBNKRQN
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
RQKBBNRN
NRKBBQNR
RKNQNRBB
QRKNRNBB
QRKRBBNN
RBQNKRBN
RQKBBNRN
NRKBBQNR
RKNQNRBB
QRKRNBBN
QRKRBNNB
RBNQKRBN
RQKBBNRN
RNBBNKRQ
RKNNQRBB
QBRNKNBR
QRKBBRNN
RBNNKRBQ
RQKBBNRN
RQK...

result:

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

Test #8:

score: 0
Accepted
time: 93ms
memory: 7716kb

input:

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

output:

RQKBBNRN
NRKBBQNR
RQNBBKNR
QRNKBRNB
QRKRNBBN
QRNBKNBR
RQKBBNRN
NRKBBQNR
QNRBKNBR
QRKRBNNB
NRQBKNBR
RQKBBNRN
RNBBNKRQ
QNRKBRNB
QRKNRBBN
QRKRBBNN
NRNBKQBR
RQKBBNRN
QBRNNKBR
BBQRNKNR
QRKRBBNN
QRNNKBBR
RQKBBNRN
QBRNNKBR
QNRNKRBB
QRBNNKRB
NRQNKBBR
RQKBBNRN
QBRNNKBR
QRBKNBNR
BRNNKBQR
NRNQKBBR
RQKBBNRN
RNB...

result:

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

Test #9:

score: 0
Accepted
time: 97ms
memory: 7756kb

input:

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

output:

RQKBBNRN
RNBBNKRQ
QNRKBRNB
NBQRBNKR
QRKRBBNN
QBBRKNNR
RQKBBNRN
QBRNNKBR
QRBKNBNR
BRNNKBQR
NBBRKQNR
RQKBBNRN
RNBBNKRQ
QNRKBRNB
QRKNRBBN
QRBBKRNN
NBBRKNQR
RQKBBNRN
RNBBNKRQ
NBRNKRBQ
QRNNKRBB
QRKBRNBN
QBNRKNBR
RQKBBNRN
RNBBNKRQ
NBRNKRBQ
QRKRNNBB
QRKBRNBN
NBQRKNBR
RQKBBNRN
QBRNNKBR
QNRNKRBB
QRBKRBNN
QRK...

result:

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

Test #10:

score: 0
Accepted
time: 91ms
memory: 7720kb

input:

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

output:

RQKBBNRN
QBRNNKBR
QRBKNBRN
QRBBNKNR
BBRQNKNR
RQKBBNRN
QBRNNKBR
QRBKNBRN
QRKBRNBN
BBRNQKNR
RQKBBNRN
QBRNNKBR
QRKRNBBN
QRKBRNBN
BBRNNKQR
RQKBBNRN
NRKBBQNR
RQNBBKNR
QNBBRKRN
BQRBNKNR
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
BBQNRKNR
QRKRBNNB
BNRBQKNR
RQKBBNRN
RNBBNKRQ
NRQNBKRB
QBBRNKNR
BNRBNKQR
RQKBBNRN
RNBBNKRQ
QNR...

result:

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

Test #11:

score: 0
Accepted
time: 86ms
memory: 7480kb

input:

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

output:

RQKBBNRN
RKNRBNQB
QRKRBNNB
RQNBBNKR
RQKBBNRN
RQKNBRNB
RNBBQNKR
QRKRNBBN
RNQBBNKR
RQKBBNRN
NRQBBKNR
QRKBNNBR
QRKRBBNN
QRKRBNNB
RNNBBQKR
RQKBBNRN
NRQBBKNR
QRBBNNKR
QRKNNBBR
QRKRBBNN
RQNNBBKR
RQKBBNRN
NRKBBQNR
QNNBBRKR
QRNKBBRN
QRKRBNNB
RNQNBBKR
RQKBBNRN
NRKBBQNR
QNNBBRKR
QRKRBBNN
RNNQBBKR
RQKBBNRN
NRK...

result:

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

Extra Test:

score: 0
Extra Test Passed