QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#172707#7179. Fischer's Chess Guessing Gameucup-team991#AC ✓20ms7652kbC++173.2kb2023-09-09 20:18:072023-09-09 20:18:08

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 7412kb

input:

GAME 1
1
4
2
5
8
END

output:

QBNNBRKR
RNBBKQNR
BRQBKNNR
RKBBQRNN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 20ms
memory: 7416kb

input:

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

output:

QBNNBRKR
RNBBKQNR
BRQBKNNR
RKBBQRNN
RKRBBQNN
QBNNBRKR
RNBBKQNR
RKQBBNRN
RKRBBNQN
QBNNBRKR
RNBBKQNR
NRBNKQRB
BQRBNKNR
RKRBBNNQ
QBNNBRKR
NRBKRBNQ
BQRBKNRN
BNQRKNRB
RKRBQNBN
QBNNBRKR
NRBKRBNQ
BQRBKNRN
RKRBNQBN
QBNNBRKR
NRBKRBNQ
BNRBNKRQ
BNRKQNRB
BRKBNQRN
RKRBNNBQ
QBNNBRKR
RNBBKQNR
RKQBBNRN
RKBNQNRB
RNK...

result:

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

Test #3:

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

input:

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

output:

QBNNBRKR
RNKNBBRQ
BRNNKQRB
RBKQNRBN
NNBQRBKR
RKQBBNNR
QBNNBRKR
BBRQNNKR
RQKNBBNR
RBKNBQRN
RKNBBQNR
QBNNBRKR
BBRQNNKR
RBKQBRNN
NBRNBKRQ
RKNBBNQR
QBNNBRKR
RNBBKQNR
NRBNKQRB
BQRBNKNR
RKRBBNNQ
RKQBNNBR
QBNNBRKR
RNKNBBRQ
RBBKQRNN
BQRNKRNB
RKNBQNBR
QBNNBRKR
RNKNBBRQ
RBBKQRNN
BRNKNBQR
NQBRNBKR
RKNBNQBR
QBN...

result:

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

Test #4:

score: 0
Accepted
time: 16ms
memory: 7420kb

input:

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

output:

QBNNBRKR
RNKNBBRQ
BNRNKBQR
RBBNQKRN
QRKRBBNN
QBNNBRKR
RNBBKQNR
BRNKQNRB
NRKRBBQN
QBNNBRKR
RNBBKQNR
BNRNQKRB
RKNQRBBN
NRKBNRBQ
NRKRBBNQ
QBNNBRKR
RNKNBBRQ
BRNNKQRB
RKBNQRNB
QRKRBNNB
QBNNBRKR
RNBBKQNR
RKQBBNRN
BBRKRQNN
BRKBNRNQ
NRKRBQNB
QBNNBRKR
RNBBKQNR
BRNKQNRB
NRQKBBRN
BRKNNBRQ
NRKRBNQB
QBNNBRKR
RNB...

result:

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

Test #5:

score: 0
Accepted
time: 14ms
memory: 7588kb

input:

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

output:

QBNNBRKR
RNBBKQNR
BNRNQKRB
RKNQRBBN
RQNKRBBN
QBNNBRKR
NRBKRBNQ
BRKQRNNB
NRBBKQRN
BNRKNBRQ
RNQKRBBN
QBNNBRKR
RNBBKQNR
RKQBBNRN
BBRKRQNN
BRKBNRNQ
RNNKRBBQ
QBNNBRKR
RNBBKQNR
BNRNQKRB
RBKRQNBN
RKNQRNBB
RQNKRNBB
QBNNBRKR
NRBKRBNQ
BRKRQNNB
NQBRNKRB
RNQKRNBB
QBNNBRKR
RNBBKQNR
NRBNKQRB
RKBQNRNB
BRQBKRNN
RNN...

result:

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

Test #6:

score: 0
Accepted
time: 20ms
memory: 7652kb

input:

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

output:

QBNNBRKR
RNBBKQNR
BNRNQKRB
RBKRQNBN
QRBKNBRN
QBNNBRKR
NRBKRBNQ
BRQKRBNN
NRBKQBRN
QBNNBRKR
NRBKRBNQ
NRBKRBQN
NRBKNBRQ
QBNNBRKR
RNBBKQNR
BNRNQKRB
BBQRKNRN
BRQKNRNB
QRBKNNRB
QBNNBRKR
NRBKRBNQ
NRBBKNRQ
NRBQKBRN
NRBKQNRB
QBNNBRKR
NRBKRBNQ
NRBBKNRQ
BRKBRNNQ
NRBKNQRB
QBNNBRKR
BBRQNNKR
QRNBBKRN
QRNKBBRN
QBN...

result:

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

Test #7:

score: 0
Accepted
time: 14ms
memory: 7444kb

input:

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

output:

QBNNBRKR
RNKNBBRQ
RBBKQRNN
RBBKNRQN
RBBQKRNN
QBNNBRKR
BBRQNNKR
RQKNBBNR
RBQNKRBN
RBBNKRQN
QBNNBRKR
BBRQNNKR
RQKNBBNR
RBBNKRNQ
QBNNBRKR
BBRQNNKR
RQKNBBNR
RBQNKRBN
QBNNBRKR
BBRQNNKR
RBKQBRNN
RBNQBKRN
RBNQKRBN
QBNNBRKR
BBRNNQKR
RBKNBRNQ
RBNNBKRQ
RBNNKRBQ
QBNNBRKR
RNBBKQNR
RKBBQNNR
RNBBNKQR
RQBBKRNN
QBN...

result:

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

Test #8:

score: 0
Accepted
time: 14ms
memory: 7296kb

input:

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

output:

QBNNBRKR
BBRQNNKR
RBKQBRNN
NRBNQBKR
QRNBKNBR
QBNNBRKR
RNBBKQNR
NRBNKQRB
NRBBNKQR
NRBKQBNR
NRQBKNBR
QBNNBRKR
RNKNBBRQ
BBRKNRQN
QRBBKNNR
NQBBRNKR
NRNBKQBR
QBNNBRKR
BBRNNQKR
RBKNBRNQ
QBNRKNBR
QRNNKBBR
QBNNBRKR
RNKNBBRQ
BRNNKQRB
BNNRKBQR
BBNRNKRQ
NRQNKBBR
QBNNBRKR
RNKNBBRQ
RBBKQRNN
BNRBNQKR
NRNQKBBR
QBN...

result:

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

Test #9:

score: 0
Accepted
time: 18ms
memory: 7444kb

input:

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

output:

QBNNBRKR
BBRQNNKR
RBQNKNBR
BBQNRKNR
QBBRKNNR
QBNNBRKR
RNKNBBRQ
BBRKNRQN
BRNBQKNR
NBBRKQNR
QBNNBRKR
RNKNBBRQ
BBRKNRQN
BRNBKNQR
BBQRKNNR
NBBRKNQR
QBNNBRKR
BBRNNQKR
RBKNBRNQ
QBNRKNBR
QBNNBRKR
RNKNBBRQ
BBRKNRQN
BRNBQKNR
NBQRKNBR
QBNNBRKR
BBRQNNKR
RBKQBRNN
BBNNRKRQ
NBNRKQBR
QBNNBRKR
RNKNBBRQ
BRNNKQRB
BNQ...

result:

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

Test #10:

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

input:

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

output:

QBNNBRKR
RNKNBBRQ
BBRKNRQN
BBQRKRNN
BBRKQNNR
BBRQNKNR
QBNNBRKR
BBRQNNKR
BRNBNQKR
BBRNQKNR
QBNNBRKR
BBRQNNKR
BBRNNKQR
QBNNBRKR
RNBBKQNR
NRBNKQRB
BQRBNKNR
QBNNBRKR
RNBBKQNR
BRQBKNNR
BNRBKRNQ
BNRBQKNR
QBNNBRKR
RNBBKQNR
NRBNKQRB
BQRBNKNR
BNRBNKQR
QBNNBRKR
BBNNRQKR
QBRNBKNR
QBNNBRKR
BBRQNNKR
BRNBNQKR
RBK...

result:

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

Test #11:

score: 0
Accepted
time: 14ms
memory: 7648kb

input:

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

output:

QBNNBRKR
BBRNNQKR
RBKNBRNQ
RQNBBNKR
QBNNBRKR
BBRQNNKR
RBQNKNBR
BBQNRKNR
RBNKNQBR
RNQBBNKR
QBNNBRKR
BBRNNQKR
QBBNRKNR
BNNBQRKR
RNNBBQKR
QBNNBRKR
BBNNRQKR
RBQNBNKR
RBNNBKQR
RQNNBBKR
QBNNBRKR
BBRNNQKR
QBBNRKNR
NRQNBBKR
RNQNBBKR
QBNNBRKR
BBRNNQKR
RBKNBRNQ
RQNBBNKR
RNNQBBKR
QBNNBRKR
RNKNBBRQ
BBRKNRQN
BRN...

result:

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

Extra Test:

score: 0
Extra Test Passed