QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#310455#7179. Fischer's Chess Guessing GameGuanYunchangTL 16ms7480kbC++112.8kb2024-01-21 14:27:282024-01-21 14:27:28

详细

Test #1:

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

input:

GAME 1
3
1
5
4
8
END

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKNBBNRQ
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKNBBNRQ
RKRBBQNN
RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBNQN
RQKNBBRN
RNQKNBBR
BBRNNKRQ
QBNNBRKR
QNBBRKRN
RKRBBNNQ
RQKNBBRN
RNQKNBBR
RQBBKNNR
RBNQBNKR
RBBKRQNN
RKRBQNBN
RQKNBBRN
RNQKNBBR
QRBNNBKR
RBNKBNQR
RKRBNQBN
RQKNBBRN
RNBQKRNB
BBRNQKNR
BRNKNQRB
NNRKRBBQ
RKRBNNBQ
RQKNBBRN
RQB...

result:

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

Test #3:

score: 0
Accepted
time: 0ms
memory: 7408kb

input:

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

output:

RQKNBBRN
RNQKNBBR
QRBNNBKR
RBNKBNQR
RQNBKNBR
RKQBBNNR
RQKNBBRN
RNQKNBBR
RQBBKNNR
RNBQKNRB
BQNRKBNR
RKNBBQNR
RQKNBBRN
RNQKNBBR
RQBBKNNR
RNBQKNRB
RBBNQKNR
RKNBBNQR
RQKNBBRN
RNBQKRNB
BBRNQKNR
BRNKNQRB
NNRKRBBQ
RKQBNNBR
RQKNBBRN
RNBQKRNB
BBRNQKNR
QNRKNBBR
BQNBNRKR
RKNBQNBR
RQKNBBRN
RNBQKRNB
BBRNQKNR
BRN...

result:

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

Test #4:

score: 0
Accepted
time: 15ms
memory: 7432kb

input:

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

output:

RQKNBBRN
RQBNKBNR
RBKNRQBN
RKNRBBQN
QRKRBBNN
RQKNBBRN
RQBNKBNR
RBNQBKRN
NRKRBBQN
RQKNBBRN
NRBKQBRN
NRKQBBNR
NRKRBBNQ
RQKNBBRN
RNQKNBBR
BBNRQKRN
NRKRBQNB
NRKRBNQB
QRKRBNNB
RQKNBBRN
RNQKNBBR
BBNRQKRN
NRKRBQNB
RQKNBBRN
RNQKNBBR
BBNRQKRN
NRKRBQNB
NRKRBNQB
RQKNBBRN
NRBKQBRN
NRKQBBNR
RQBKNBNR
BRKRNBQN
QRK...

result:

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

Test #5:

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

input:

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

output:

RQKNBBRN
RQBNKBNR
RBKNBNQR
RQBBNKRN
RQNKRBBN
RQKNBBRN
NRBKQBRN
NRKQBBNR
RKNRQBBN
RNQKRBBN
RQKNBBRN
RNQKNBBR
RNNQKBBR
RNBQNBKR
RNNKRBBQ
RQKNBBRN
RNQKNBBR
QRBNNBKR
RBNKQRBN
RNNKBRQB
RQNKRNBB
RQKNBBRN
RNBQKRNB
RNBBQNKR
NNBRQKRB
RNQKRNBB
RQKNBBRN
RNBQKRNB
RNBBQNKR
BNQRKBNR
NRBBKRQN
RNNKRQBB
RQKNBBRN
RNQ...

result:

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

Test #6:

score: 0
Accepted
time: 15ms
memory: 7404kb

input:

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

output:

RQKNBBRN
NRBKQBRN
NRBQKBRN
QRBKNBRN
RQKNBBRN
NRBKQBRN
RQKNBBRN
RNQKNBBR
QRBNNBKR
QRNKBBNR
BQNRNBKR
NRBKNBRQ
RQKNBBRN
RNBQKRNB
BNRKQBNR
QRBKNNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
NBBNQRKR
QNNBBRKR
NRBKQNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
QRBKNNRB
NRBKNQRB
RQKNBBRN
RQBNKBNR
RBNQBKRN
NQRBBKRN
QRNKBBRN
RQKNBBRN
RQB...

result:

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

Test #7:

score: 0
Accepted
time: 4ms
memory: 7432kb

input:

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

output:

RQKNBBRN
RNQKNBBR
BBRNNKRQ
QRKNRNBB
RBBQKRNN
RQKNBBRN
NRBKQBRN
QRKNNBBR
QBNRBKRN
RBBNKNRQ
RBBNKRQN
RQKNBBRN
RNQKNBBR
BBRNNKRQ
NNRQBKRB
RBBNKRNQ
RQKNBBRN
NRBKQBRN
RKNBBRQN
RNNQBBKR
RBQNKRBN
RQKNBBRN
RNQKNBBR
RQBBKNNR
RBNQKRBN
RQKNBBRN
RNQKNBBR
RQBBKNNR
RBNQKRBN
RBNNKRBQ
RQKNBBRN
NRBKQBRN
QRKNNBBR
NQN...

result:

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

Test #8:

score: -100
Time Limit Exceeded

input:

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

output:

RQKNBBRN
BBQRNNKR
QRBBNKNR
NRBBKNQR
QRNBKNBR
RQKNBBRN
BBQRNNKR
NBNRQKBR
NRBBQNKR
NRQBKNBR
RQKNBBRN
BBQRNNKR
BNRQKRNB
NRBKRNQB
NRNBKQBR
RQKNBBRN
RNQKNBBR
QRBNNBKR
RBBNNQKR
QRNNKBBR
RQKNBBRN
RNQKNBBR
RKQNNRBB
BRQNNBKR
NRQNKBBR
RQKNBBRN
RNBQKRNB
BNRKQBNR
NBBNQRKR
NRNQKBBR
RQKNBBRN
RNBQKRNB
QNBRKNRB
RKB...

result: