QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#167797#7179. Fischer's Chess Guessing Gameucup-team1685#AC ✓46ms3984kbC++178.5kb2023-09-07 17:32:292023-09-07 17:32:30

详细

Test #1:

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

input:

GAME 1
3
2
3
1
8
END

output:

NRNBBQKR
RNBBQNKR
RBNQBKNR
NRBQKBNR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 38ms
memory: 3700kb

input:

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

output:

RKQNBBNR
RKRBBQNN
RQKBBNRN
RNKBBNQR
RKRBBNQN
RBNQBNKR
RKQBBNRN
RKRBBNNQ
RQKBBNRN
RQBBKNNR
RBKNBNQR
RKQBRNBN
RKRBQNBN
NRBQNBKR
RNKBQNBR
BNRBKQNR
RBNNKQBR
RQNBBKNR
RKRBNQBN
RKQNNBBR
RKNQNRBB
RKNQBBNR
RKRBNNBQ
NRNQBBKR
RNBNQBKR
RQNBBKNR
NRBBNKQR
RKRQBBNN
RKQBBNNR
RKNNBQRB
RNNBBKRQ
RKNRQNBB
RQKNBRNB
RKR...

result:

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

Test #3:

score: 0
Accepted
time: 38ms
memory: 3752kb

input:

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

output:

RBQNBNKR
RBBQNNKR
QBNNBRKR
RBQKBNRN
RKQBBNNR
NRBBKQNR
BRNBQKNR
BRNBKQRN
BQRBKNNR
RKNBBQNR
RNNQBBKR
BNRNQBKR
RNNKBQRB
RKNRBBQN
RKNBBNQR
RQKNBBRN
BBRNNQKR
NNRKQBBR
RKRQNNBB
RKQBNNBR
NRBQNBKR
RKBBRNQN
RBBKRNNQ
QNBBRKRN
RKNBQNBR
RQBNNBKR
RQBBKNRN
NNBBRQKR
NQRBNKBR
QRBBNKNR
RKNBNQBR
RBBNNQKR
RKBNQBRN
RKB...

result:

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

Test #4:

score: 0
Accepted
time: 38ms
memory: 3984kb

input:

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

output:

RKBBQNRN
BNRBNQKR
QRKNRNBB
QRKRBBNN
RKNNQBBR
BNRNKQRB
NRBBNKQR
QRKBNRBN
RBBKNRQN
NRKRBBQN
NRNBBQKR
NRBKNQRB
NQBNRBKR
NRKRBBQN
NRKRBBNQ
NRNQBBKR
RNNKBQRB
RNKNQBBR
NRQKNRBB
QRKRBNNB
RQNNBBKR
BRNQKRNB
BRKBNQNR
BRKQNBRN
NRKRBQNB
RKNNQBBR
BQRBNKRN
NRKRBNQB
NRBBNQKR
NBRNBKQR
RQBBKRNN
RNKRNQBB
QRKRNBBN
RKQ...

result:

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

Test #5:

score: 0
Accepted
time: 42ms
memory: 3792kb

input:

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

output:

NRNQBBKR
BRKBQNNR
RKNQNRBB
RNNKRBBQ
RQNKRBBN
NRNBBQKR
RKBNQRNB
BNRQKNRB
RNQKRBBN
RQNBBNKR
RKBNQBNR
RBKNBQRN
BBRQKNNR
RNNKQRBB
RNNKRBBQ
RKQNBBNR
BNRQKRNB
BRNBNKQR
NRKNRQBB
RQNKRNBB
RKQBBNNR
RKNNBBRQ
BRNBQKNR
RNQKRNBB
RKQNNBBR
RNBKQBRN
RNBNKRQB
RKBRQNNB
RNNKRQBB
RNBNQBKR
RKBNNQRB
BBQNNRKR
RBBQKNNR
RBB...

result:

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

Test #6:

score: 0
Accepted
time: 43ms
memory: 3768kb

input:

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

output:

RKBBQNNR
NRQNBBKR
RBNNBKRQ
BRKNRQNB
QRBKNBRN
RBBNNQKR
BRKQNRNB
RKNBQRBN
BBRKQNRN
NRBKQBRN
RBNNBQKR
BNRKRNQB
BRQBKRNN
NNBRKBRQ
NRBKNBRQ
RBBQNNKR
RNBQKBRN
RBKRNQBN
QRBKNNRB
RQNBBNKR
BNRKQNRB
BRKNQNRB
NRBKQNRB
RKQNBBRN
BRQKNRNB
RNBKNRQB
NRBKNQRB
NRBBNQKR
RBKNQNBR
NQRKBRNB
BRNKRBNQ
BNRKNBRQ
QRNKBBRN
RKQ...

result:

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

Test #7:

score: 0
Accepted
time: 33ms
memory: 3696kb

input:

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

output:

RKQBBNRN
NRBBKNQR
BRNKQNRB
NNQRBBKR
RBBQKRNN
NRBQNBKR
QNRKNRBB
RKBNQNRB
RKNNRBBQ
RBBKRNQN
RBBNKRQN
RKQBBNRN
RBBNNKQR
RNBKNRQB
NNBBRKQR
RBNKNQBR
RBBNKRNQ
RQBNNBKR
RKNBBQNR
RNQNKRBB
RNKNQRBB
RBQNKRBN
RBNNBQKR
RNKBBQRN
NRNBBKQR
RBNQKRBN
RKQNBBNR
RQBKNBRN
BBQRNNKR
NRBBQKNR
RBNNKRBQ
RKBNQBRN
RKBBNQNR
RNB...

result:

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

Test #8:

score: 0
Accepted
time: 32ms
memory: 3952kb

input:

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

output:

RQNBBNKR
BNRBQNKR
BQNRNBKR
RNNBKQBR
QRNBKNBR
RKQBBNRN
QRBBNKRN
RKNBNQBR
RQBBKNNR
NRQBKNBR
NRNQBBKR
RNNBBQKR
NRKBBQNR
NRNBKQBR
RBBNNQKR
RKNBQNBR
NQRBNKBR
QRBBKNNR
QRNNKBBR
RBNQBNKR
BNRKQNRB
RKQBNRBN
QRKNNBBR
NRQNKBBR
RKNBQNBR
QRBBNNKR
NRNQKBBR
NRBBNQKR
RKNQBRNB
RBKQBNRN
RNNKBBRQ
BBRQKRNN
RKBBQNNR
BBN...

result:

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

Test #9:

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

input:

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

output:

RKBBQNRN
RBNNBKRQ
NRKBBNQR
QNBBRKNR
QBBRKNNR
RBNQBNKR
RKQNNBBR
QBRNBKRN
BQNBRKNR
NBBRKQNR
RKQBBNNR
RBBNNQKR
RBBQKNRN
RQBBNKRN
NBBRKNQR
RKQNBNRB
BNRNQBKR
QBBRKNNR
NBBRKNQR
QBNRKNBR
NRNBBKQR
RNQNBBKR
BBNRQNKR
NBBQRNKR
NBQRKNBR
RKQBBNNR
NRBQKNRB
QRNBKRBN
BQNRKRNB
NBNRKQBR
RKNBBNQR
QRKNNBBR
BNRQNBKR
NQB...

result:

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

Test #10:

score: 0
Accepted
time: 44ms
memory: 3928kb

input:

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

output:

RKBBQNRN
BRKQNRNB
NRKQBBNR
QRNKBRNB
BBRQNKNR
RKBBNQNR
RBNQBNKR
NRNBQKBR
RNNBKRBQ
BBRNQKNR
RKQNBBNR
RQBBNNKR
BBRQNKNR
BBRNNKQR
RQNNBBKR
RKBBNNQR
RKNRQNBB
BNRBNQKR
BQRBNKNR
RKQBBNRN
BRKNNQRB
RBNNQKBR
BNNBRKQR
BNNBQRKR
BNRBQKNR
NRBBNKQR
BRQBNKNR
BRKBNNQR
BNRBNKQR
RKQNBBNR
BNQNRBKR
RKRNNBBQ
RBBNQKNR
QBR...

result:

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

Test #11:

score: 0
Accepted
time: 46ms
memory: 3704kb

input:

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

output:

NRNBBQKR
RBNNBQKR
RQNBBNKR
RKQNBBNR
BRQNNBKR
RKRNNBBQ
QRNKBBNR
RNQBBNKR
RNBKQBRN
RBKNBRQN
RBNKRNBQ
RNKBNQBR
RKRBNQBN
RNNBBQKR
RKQBBNNR
QRBBNKNR
RQKNBRNB
RBKRBQNN
RQNNBBKR
NRBBNQKR
NBRNQKBR
BQNNRBKR
RQNKNBBR
RNQNBBKR
RKBNNBQR
RKBBQNRN
RBNNBQKR
NBBNRQKR
RNNQBBKR
RQBNNBKR
RBBNQKRN
BRQKNBNR
QRNKNBBR
BRQ...

result:

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

Extra Test:

score: 0
Extra Test Passed