QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#174798#7179. Fischer's Chess Guessing Gameucup-team1682AC ✓470ms4048kbC++202.8kb2023-09-10 13:28:382023-09-10 13:28:38

詳細信息

Test #1:

score: 100
Accepted
time: 7ms
memory: 4028kb

input:

GAME 1
2
1
3
0
8
END

output:

QNNBBRKR
RNNQKRBB
RBBNKQNR
QBNRNKBR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 438ms
memory: 3788kb

input:

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

output:

QNNBBRKR
RNNQKRBB
RBBNKQNR
QBNRNKBR
RKRBBQNN
QNNBBRKR
RNNQKRBB
RBBNKQNR
BNRBNKQR
QNNRBKRB
RKRBBNQN
QNNBBRKR
RNNQKRBB
RBBNKQNR
QRNKNBBR
RKRBBNNQ
QNNBBRKR
RBBNKQNR
RNKQRBBN
BNNRKBRQ
QNNRKRBB
RKRBQNBN
QNNBBRKR
RBBNKQNR
RKQNBNRB
BRNNKBRQ
QNNRKRBB
RKRBNQBN
QNNBBRKR
RBBNKQNR
RNKQRBBN
BRKRNBNQ
QNBNRBKR
RKR...

result:

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

Test #3:

score: 0
Accepted
time: 444ms
memory: 3816kb

input:

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

output:

QNNBBRKR
RNQBKRBN
RKNBQNBR
QNNBRKBR
RKQBBNNR
QNNBBRKR
NNBRQBKR
QNRKNRBB
QNBBRKNR
RKNBBQNR
QNNBBRKR
NNBRQBKR
QNRKNRBB
QNBBRKNR
RKNBBNQR
QNNBBRKR
RNNQKRBB
RNNKBBRQ
RKNBQNBR
RKQBNNBR
QNNBBRKR
RNQBKRBN
RKNBQNBR
QNNBBRKR
RNQBKRBN
RKNBQNBR
RKNBNQBR
QNNBBRKR
RNNQKRBB
RBBNKQNR
QRKNBNRB
QNNRKBBR
RKQNBBNR
QNN...

result:

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

Test #4:

score: 0
Accepted
time: 443ms
memory: 3816kb

input:

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

output:

QNNBBRKR
RNNQKRBB
BBRNQNKR
QNBBRKRN
QRKRBBNN
QNNBBRKR
RBBNKQNR
BNRKRBQN
QNRBBKRN
NRKRBBQN
QNNBBRKR
RBBNKQNR
RNKQRBBN
BRKRNBNQ
NRKRBBNQ
QNNBBRKR
RNNQKRBB
RBBNKQNR
BNRBNKQR
QNNRKBBR
QRKRBNNB
QNNBBRKR
RBBNKQNR
RKQNBNRB
BRNNKBRQ
QNBBRKRN
NRKRBQNB
QNNBBRKR
RBBNKQNR
BNRKRBQN
QRKBRNBN
NRKRBNQB
QNNBBRKR
RBB...

result:

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

Test #5:

score: 0
Accepted
time: 469ms
memory: 3808kb

input:

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

output:

QNNBBRKR
RBBNKQNR
RNKQRBBN
QNBRKBNR
RQNKRBBN
QNNBBRKR
RBBNKQNR
RNKQRBBN
QNBRKNRB
RNQKRBBN
QNNBBRKR
RNNQKRBB
RNKQNBBR
QNBNRKRB
RNNKRBBQ
QNNBBRKR
RBBNKQNR
RNKQRBBN
BNNRKBRQ
QNBNRKRB
RQNKRNBB
QNNBBRKR
RBBNKQNR
RNKQRBBN
QRKBNNBR
QNBNRKRB
RNQKRNBB
QNNBBRKR
RNNQKRBB
RBQKNNBR
QNNBRKBR
RNNKRQBB
QNNBBRKR
RBB...

result:

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

Test #6:

score: 0
Accepted
time: 469ms
memory: 3788kb

input:

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

output:

QNNBBRKR
RBBNKQNR
RNKQRBBN
BRKRNBNQ
QNNRKBBR
QRBKNBRN
QNNBBRKR
RKBNNQRB
BQRNKBRN
NBQRNKBR
NRBKQBRN
QNNBBRKR
RKBNNQRB
NRBQKNRB
NRBKNBQR
NRBKNBRQ
QNNBBRKR
RBBNKQNR
RNKQRBBN
NBNRBKRQ
QNNBRKBR
QRBKNNRB
QNNBBRKR
RKBNNQRB
NRBQKNRB
QNNRKBBR
NRBKQNRB
QNNBBRKR
RKBNNQRB
RKBQRBNN
QNNRKBBR
NRBKNQRB
QNNBBRKR
RNQ...

result:

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

Test #7:

score: 0
Accepted
time: 445ms
memory: 3820kb

input:

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

output:

QNNBBRKR
RBBNKQNR
RNBQKRNB
QNNRKRBB
RBBQKRNN
QNNBBRKR
RBBNKQNR
RNBQKRNB
QNNBRKBR
RBBNKRQN
QNNBBRKR
RBBNKQNR
BQRNKNRB
QNNBRKBR
RBBNKRNQ
QNNBBRKR
RBBNKQNR
BBRNKNQR
QNNRKRBB
RBQNKRBN
QNNBBRKR
RNNQKRBB
QRNNKBBR
QNNRKRBB
RBNQKRBN
QNNBBRKR
RNNQKRBB
RBQKNNBR
QNNBRKBR
RBNNKRBQ
QNNBBRKR
RNNQKRBB
RNKNBQRB
QRN...

result:

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

Test #8:

score: 0
Accepted
time: 470ms
memory: 4048kb

input:

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

output:

QNNBBRKR
NNBRQBKR
QNRKNRBB
QNBRKBNR
QRNBKNBR
QNNBBRKR
RNNQKRBB
RNNKBBRQ
NQRBKNBR
NRQBKNBR
QNNBBRKR
RNQBKRBN
RKNBQNBR
QNNRKBBR
NRNBKQBR
QNNBBRKR
RNQBKRBN
BNQRNBKR
QBRNKNBR
QRNNKBBR
QNNBBRKR
RBBNKQNR
NBRNQKBR
BQRBKNNR
NRQNKBBR
QNNBBRKR
RNNQKRBB
RNKQNBBR
QNBNRKRB
NRNQKBBR
QNNBBRKR
RBBNKQNR
NBRNQKBR
NRK...

result:

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

Test #9:

score: 0
Accepted
time: 416ms
memory: 3812kb

input:

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

output:

QNNBBRKR
RNNQKRBB
RBBNKQNR
QNBRKNRB
QBBRKNNR
QNNBBRKR
RBBNKQNR
BQRNKNRB
QNNBRKBR
NBBRKQNR
QNNBBRKR
RBBNKQNR
BBRNKNQR
NQBRKNRB
NBBRKNQR
QNNBBRKR
RNQBKRBN
BNQRNBKR
QBRNKNBR
QBNRKNBR
QNNBBRKR
RBBNKQNR
NBRNQKBR
BQRBKNNR
NBQRKNBR
QNNBBRKR
RNNQKRBB
RNKNBQRB
QRNKNRBB
QNNBRKBR
NBNRKQBR
QNNBBRKR
RNQBKRBN
BNQ...

result:

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

Test #10:

score: 0
Accepted
time: 443ms
memory: 3788kb

input:

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

output:

QNNBBRKR
RBBNKQNR
NBRNQKBR
BQRBKNNR
BBRQNKNR
QNNBBRKR
RBBNKQNR
BBRNKNQR
NQBRKNRB
BBRNQKNR
QNNBBRKR
RBBNKQNR
NBRNQKBR
NRQNKRBB
BBRNNKQR
QNNBBRKR
RNNQKRBB
BBRNQNKR
QBRNBKRN
BQRBNKNR
QNNBBRKR
RNQBKRBN
BNQRNBKR
NNRKBBQR
BNRBQKNR
QNNBBRKR
RNQBKRBN
BNQRNBKR
QNNRKBBR
BNRBNKQR
QNNBBRKR
RNQBKRBN
BBNRNQKR
QNR...

result:

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

Test #11:

score: 0
Accepted
time: 235ms
memory: 3732kb

input:

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

output:

QNNBBRKR
QBNRBKNR
NQRBKNBR
RQNBBNKR
QNNBBRKR
QBNRBKNR
NNRKRQBB
RNQBBNKR
QNNBBRKR
NQRBKRBN
QNBBRNKR
RNNBBQKR
QNNBBRKR
NNBRQBKR
NQRNBBKR
QNNRKBBR
RQNNBBKR
QNNBBRKR
NNBRQBKR
NRNQKBBR
QNNRKBBR
RNQNBBKR
QNNBBRKR
QBNRBKNR
NQRBKNBR
RNNQBBKR
QNNBBRKR
RNQBKRBN
BNQRNBKR
QNBRKNRB
BRQBNNKR
QNNBBRKR
NNBRQBKR
NQR...

result:

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

Extra Test:

score: 0
Extra Test Passed