QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#170402#7179. Fischer's Chess Guessing Gameucup-team1249#AC ✓111ms3668kbC++201.9kb2023-09-09 15:11:062023-09-09 15:11:07

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3440kb

input:

GAME 1
1
4
3
2
2
8
END

output:

RBBQNNKR
RNQBBKRN
RQNKBBRN
BBRQNKRN
BBRKQNNR
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RBBQNNKR
RNQBBKRN
RQNKBBRN
BBRQNKRN
BBRKQNNR
RKRBBQNN
RBBQNNKR
RKNNQBBR
RBKNBQRN
RKBBNQRN
BBRKQNNR
RKRBBNQN
RBBQNNKR
RKNNQBBR
RBKNBQRN
NBQRBKNR
BBRKQNNR
RKRBBNNQ
RBBQNNKR
RKNNQBBR
RKRBNQBN
BBRKQNNR
RKRBQNBN
RBBQNNKR
RKNNQBBR
NRQKNBBR
RKNBRNBQ
BBRKQNNR
RKRBNQBN
RBBQNNKR
RKBBQNRN
QRBNKBRN
BRKBQNNR
RKR...

result:

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

Test #3:

score: 0
Accepted
time: 110ms
memory: 3620kb

input:

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

output:

RBBQNNKR
RKBBQNRN
QRBNKBRN
BRKBQNNR
RKQBBNNR
RBBQNNKR
RKNNQBBR
RKRBNQBN
BBRKNQNR
RKNBBQNR
RBBQNNKR
RKBBQNRN
QRBNKBRN
BRKBQNNR
RKNBBNQR
RBBQNNKR
BBRNQNKR
NQBRNBKR
BBRKNQRN
RKQBNNBR
RBBQNNKR
RKBBQNRN
RBBNNKRQ
RKNBQNBR
RBBQNNKR
RKBBQNRN
RKBRNQNB
BQRKRNNB
RKNBNQBR
RBBQNNKR
RKNNQBBR
RKBRNNQB
BBRKQNNR
RKQ...

result:

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

Test #4:

score: 0
Accepted
time: 92ms
memory: 3660kb

input:

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

output:

RBBQNNKR
BNRNKRQB
RNNBBKRQ
BBRKRNQN
QRKRBBNN
RBBQNNKR
BNRNKRQB
BRKNRBNQ
BBRKRNQN
NRKRBBQN
RBBQNNKR
BNRNKRQB
RNNBBKRQ
BBRKQNRN
NRKRBBNQ
RBBQNNKR
RNQBBKRN
BRKNNBRQ
NRBKRBNQ
BBRKQNNR
QRKRBNNB
RBBQNNKR
BNRNKRQB
BRKNRBNQ
BBRKRNQN
NRKRBQNB
RBBQNNKR
RNQBBKRN
BRKNNBRQ
NRBKRBNQ
BBRKQNNR
NRKRBNQB
RBBQNNKR
RNQ...

result:

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

Test #5:

score: 0
Accepted
time: 111ms
memory: 3564kb

input:

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

output:

RBBQNNKR
RNQBBKRN
BNRKNQRB
RKNNBBRQ
BBRKNRNQ
RQNKRBBN
RBBQNNKR
RNQBBKRN
RQNKBBRN
RKNBBRNQ
RNQKRBBN
RBBQNNKR
RNQBBKRN
BNRKNQRB
NRBNKBRQ
BBRKQNNR
RNNKRBBQ
RBBQNNKR
RKNNQBBR
NRQKNBBR
RKNBRNBQ
RQNKRNBB
RBBQNNKR
RKNNQBBR
RBKNBQRN
RQBKNRNB
RNQKRNBB
RBBQNNKR
RNQBBKRN
BNRKNQRB
NQNRBKRB
RNNKRQBB
RBBQNNKR
RKB...

result:

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

Test #6:

score: 0
Accepted
time: 102ms
memory: 3624kb

input:

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

output:

RBBQNNKR
RKNNQBBR
RNBBKQNR
BRNKNBRQ
QRBKNBRN
RBBQNNKR
RNQBBKRN
BNRKNQRB
NRBNKBRQ
BBRKQNNR
NRBKQBRN
RBBQNNKR
RKNNQBBR
RNBBKQNR
BRNKNBRQ
NRBKNBRQ
RBBQNNKR
RKBBQNRN
RKBRNQNB
QRBBNKRN
QRBKNNRB
RBBQNNKR
RKNNQBBR
RNBBKQNR
BRNKNBRQ
BBRKQNNR
NRBKQNRB
RBBQNNKR
RKNNQBBR
QBBRKRNN
BBRQKNNR
BBRKQNNR
NRBKNQRB
RBB...

result:

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

Test #7:

score: 0
Accepted
time: 87ms
memory: 3620kb

input:

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

output:

RBBQNNKR
BBRNQNKR
BBRKNRQN
BBRKNQNR
RBBQKRNN
RBBQNNKR
RKBBQNRN
RKBRNQNB
NBBRKRQN
RBBNKRQN
RBBQNNKR
RKBBQNRN
QRNBBNKR
BBRKNQRN
RBBNKRNQ
RBBQNNKR
RKNNQBBR
NRQKNBBR
RKNBRNBQ
BBRKQNNR
RBQNKRBN
RBBQNNKR
RKBBQNRN
QRNBBNKR
RNKNRBBQ
BBRKQNNR
RBNQKRBN
RBBQNNKR
RKNNQBBR
RKRBNQBN
RBBNKNRQ
RBNNKRBQ
RBBQNNKR
RKN...

result:

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

Test #8:

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

input:

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

output:

RBBQNNKR
RKNNQBBR
NRQKNBBR
BRNBKQNR
QRNBKNBR
RBBQNNKR
RKNNQBBR
RBKNBQRN
NRQBNKBR
BBRKNQNR
NRQBKNBR
RBBQNNKR
RNQBBKRN
BRKNNBRQ
QBRKBRNN
BBRKQNNR
NRNBKQBR
RBBQNNKR
RNQBBKRN
BQRNKBNR
BRKBQRNN
QRNNKBBR
RBBQNNKR
RNQBBKRN
BRKNNBRQ
NRQKRBBN
NRQNKBBR
RBBQNNKR
RKNNQBBR
RKRBNQBN
RQKNBBRN
BBRKQNNR
NRNQKBBR
RBB...

result:

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

Test #9:

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

input:

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

output:

RBBQNNKR
BBRNQNKR
RBQKBNRN
RKBBNQNR
QBBRKNNR
RBBQNNKR
RKBBQNRN
BBNRKQNR
BBRKQNNR
NBBRKQNR
RBBQNNKR
BBRNQNKR
RBQKBNRN
RKBBNQNR
NBBRKNQR
RBBQNNKR
RKBBQNRN
BBNRKQNR
BBRKQNNR
QBNRKNBR
RBBQNNKR
RKBBQNRN
BBNRKQNR
BBRNKRNQ
NBQRKNBR
RBBQNNKR
RKNNQBBR
NRQKNBBR
BRNBKQNR
BBRKNQNR
NBNRKQBR
RBBQNNKR
RKNNQBBR
RBK...

result:

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

Test #10:

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

input:

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

output:

RBBQNNKR
BBRNQNKR
RBBNKQNR
BBRQKRNN
BBRQNKNR
RBBQNNKR
RKNNQBBR
NRQKNBBR
BNRBQKNR
BBRNQKNR
RBBQNNKR
RKBBQNRN
BBQRNKNR
BBNNRKRQ
BBRNNKQR
RBBQNNKR
RKNNQBBR
RNBBKQNR
BBRKNQNR
BQRBNKNR
RBBQNNKR
RNQBBKRN
RKNBBRNQ
BNRBKQNR
BNRBQKNR
RBBQNNKR
RKNNQBBR
RNBBKQNR
BBRKNQNR
BBRKNNQR
BNRBNKQR
RBBQNNKR
RKNNQBBR
RBK...

result:

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

Test #11:

score: 0
Accepted
time: 73ms
memory: 3608kb

input:

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

output:

RBBQNNKR
BBRNQNKR
RBQKBNRN
BBRKNQNR
RQNBBNKR
RBBQNNKR
BBRNQNKR
RBQKBNRN
BBRKQNRN
RNQBBNKR
RBBQNNKR
RKBBQNRN
QRNBBNKR
BBRKRNQN
RNNBBQKR
RBBQNNKR
RKBBQNRN
BBNRKQNR
BNQNRBKR
RQNNBBKR
RBBQNNKR
RKBBQNRN
BBNRKQNR
QNBBRNKR
RNQNBBKR
RBBQNNKR
BBRNQNKR
NQBRNBKR
BBRKRNNQ
RNNQBBKR
RBBQNNKR
BBRNQNKR
RBBNKQNR
BBR...

result:

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

Extra Test:

score: 0
Extra Test Passed