QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#171944#7179. Fischer's Chess Guessing Gameucup-team293#AC ✓20ms30604kbC++142.8kb2023-09-09 17:50:072023-09-09 17:50:12

詳細信息

Test #1:

score: 100
Accepted
time: 8ms
memory: 28564kb

input:

GAME 1
1
2
2
4
8
END

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
RKRQNBBN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 10ms
memory: 30372kb

input:

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

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
RKRQNBBN
RKRBBQNN
NRBBNKQR
RBBNQNKR
RNNKBBQR
QRKNBBNR
RQBKNBRN
RKRBBNQN
NRBBNKQR
BNRKQBNR
RNBQKRNB
RKRQNBBN
RQNNKBBR
RKRBBNNQ
NRBBNKQR
BNRKQBNR
RNBQKRNB
RQNNBBKR
RKRBQNBN
NRBBNKQR
RBBNQNKR
QRNNBKRB
RQKBNRBN
RKRBNQBN
NRBBNKQR
RBBNQNKR
RNNKBBQR
RKBBRQNN
QRBKRNNB
RKRBNNBQ
NRB...

result:

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

Test #3:

score: 0
Accepted
time: 10ms
memory: 30604kb

input:

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

output:

NRBBNKQR
RBBNQNKR
RQBBKNRN
QBBNRKRN
RKQBBNNR
NRBBNKQR
RBBNQNKR
RNNKBBQR
RKNBBQNR
NRBBNKQR
NRBQKBRN
RBNNBKQR
RQNBBKNR
RKNBBNQR
NRBBNKQR
NRBQKBRN
RBNNBKQR
RQKBNNBR
RNKBNQBR
RKQBNNBR
NRBBNKQR
RBBNQNKR
NBRNBQKR
RNBNQKRB
RKNBQNBR
NRBBNKQR
NRBQKBRN
RBNNBKQR
QNRBBKNR
BBRKNNQR
RKNBNQBR
NRBBNKQR
BNRKQBNR
RKN...

result:

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

Test #4:

score: 0
Accepted
time: 13ms
memory: 28320kb

input:

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

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
RQNNBBKR
BRQNKBRN
QRKRBBNN
NRBBNKQR
NRBQKBRN
NRNQBKRB
NRKRBBQN
NRBBNKQR
RBBNQNKR
NRKRBQNB
NRKRBBNQ
NRBBNKQR
BNRKQBNR
RQKBBRNN
RBQKNRBN
QRKRBNNB
NRBBNKQR
RBBNQNKR
NRKRBQNB
NRBBNKQR
NRBQKBRN
RBBNNKRQ
NQRBKNBR
NRKRBNQB
NRBBNKQR
RBBNQNKR
NRKRBQNB
NNRQBKRB
QRKRNBBN
NRBBNKQR
RBB...

result:

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

Test #5:

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

input:

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

output:

NRBBNKQR
RKNNRQBB
RNNKBQRB
RKQNBRNB
RBNKRNBQ
RQNKRBBN
NRBBNKQR
RKNNRQBB
RKNQBBRN
RKQRBNNB
RNQKRBBN
NRBBNKQR
RKNNRQBB
RNNKBQRB
RKNQBRNB
RNQKRNBB
RNNKRBBQ
NRBBNKQR
RKNNRQBB
RKNRQNBB
RKNRBQNB
RQNKRNBB
NRBBNKQR
RKNNRQBB
RNNKBQRB
RKNQBRNB
RNQKRNBB
NRBBNKQR
RKNNRQBB
RKQNRNBB
RKNNBQRB
RNNKRQBB
NRBBNKQR
BNR...

result:

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

Test #6:

score: 0
Accepted
time: 9ms
memory: 28400kb

input:

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

output:

NRBBNKQR
NRBQKBRN
NRBQKRNB
QRBKNBRN
NRBBNKQR
NRBQKBRN
NRBQKNRB
NRBKQBRN
NRBBNKQR
RNBKNBQR
NRBKQBNR
NRNKBBQR
NRBKNBRQ
NRBBNKQR
NRBQKBRN
RNBBQKRN
QRBKNNRB
NRBBNKQR
NRBQKBRN
NRNQBKRB
NRKQBBNR
NRBKQNRB
NRBBNKQR
RNBKNBQR
NBBRKNQR
NRBKNQRB
NRBBNKQR
BNRKQBNR
RNBQKRNB
QBRNBNKR
QRNKBBRN
NRBBNKQR
RBBNQNKR
NRK...

result:

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

Test #7:

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

input:

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

output:

NRBBNKQR
BNRKQBNR
RQKBBRNN
RNKBRQBN
RBNKBRQN
RBBQKRNN
NRBBNKQR
RBBNQNKR
NBRNBQKR
RQBNKBNR
QBBRKNNR
RBBNKRQN
NRBBNKQR
BNRKQBNR
RQKBBRNN
RBQKNRBN
RNNBKRBQ
RBBNKRNQ
NRBBNKQR
RKNNRQBB
RKNQBBRN
BNNRKQRB
RQKNBRNB
RBQNKRBN
NRBBNKQR
RKNNRQBB
RKNQBBRN
RQNKBNRB
RBNQKRBN
NRBBNKQR
RKNNRQBB
RNNKBQRB
RBNNKRBQ
NRB...

result:

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

Test #8:

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

input:

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

output:

NRBBNKQR
NRBQKBRN
RBBNNKRQ
NQRBKNBR
QRNBKNBR
NRBBNKQR
RNBKNBQR
NRKBNRBQ
NRNBKQBR
NRQBKNBR
NRBBNKQR
RNBKNBQR
NRKBNRBQ
NRNBKQBR
NRBBNKQR
RBBNQNKR
RNNKBBQR
QRKNBBNR
QRNNKBBR
NRBBNKQR
NRBQKBRN
NRNQBKRB
NRQBKRBN
NRQNKBBR
NRBBNKQR
NRBQKBRN
NRBQKRNB
NRNQKBBR
NRBBNKQR
RKNNRQBB
BNQRKBRN
BBRKQNRN
BBRQKRNN
NRB...

result:

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

Test #9:

score: 0
Accepted
time: 9ms
memory: 28208kb

input:

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

output:

NRBBNKQR
RBBNQNKR
NBRNBQKR
RQBNKBNR
QBBRKNNR
NRBBNKQR
NRBQKBRN
RNBBQKRN
NBBQRNKR
NBBRKQNR
NRBBNKQR
RNBKNBQR
NBBRKNQR
NRBBNKQR
BNRKQBNR
RQKBBRNN
BRNNKQRB
QBNRKNBR
NRBBNKQR
RBBNQNKR
RQBBKNRN
BNQBRNKR
BBNRKNQR
NBQRKNBR
NRBBNKQR
RBBNQNKR
RNNKBBQR
RNBBKQRN
NBNRKQBR
NRBBNKQR
RBBNQNKR
RNNKBBQR
QRKNBBNR
QBN...

result:

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

Test #10:

score: 0
Accepted
time: 9ms
memory: 28324kb

input:

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

output:

NRBBNKQR
NRBQKBRN
NQRBBNKR
NBNRQKBR
BBRQNKNR
NRBBNKQR
RBBNQNKR
NBRNBQKR
BBRNKNQR
BBRQNNKR
BBRNQKNR
NRBBNKQR
RNBKNBQR
NBBRKNQR
NNBBQRKR
BBRNNKQR
NRBBNKQR
RNBKNBQR
NBBRQKNR
NNQBRKBR
BQRBNKNR
NRBBNKQR
NRBQKBRN
RBNNBKQR
RQKBNNBR
BNQBRKNR
BNRBQKNR
NRBBNKQR
NRBBKQNR
BNRBNKQR
NRBBNKQR
RBBNQNKR
RQBBKNRN
QBR...

result:

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

Test #11:

score: 0
Accepted
time: 10ms
memory: 30444kb

input:

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

output:

NRBBNKQR
RBBNQNKR
NBRNBQKR
QNBNRBKR
RQNBBNKR
NRBBNKQR
RBBNQNKR
NBRNBQKR
QNBNRBKR
BNRBQNKR
RNQBBNKR
NRBBNKQR
RBBNQNKR
RQBBKNRN
BNQBRNKR
RNNBBQKR
NRBBNKQR
BNRKQBNR
RNBQKRNB
RQNNBBKR
NRBBNKQR
BNRKQBNR
RKNQBBNR
RNQNBBKR
NRBBNKQR
BNRKQBNR
RKNQBBNR
RKQNBBNR
RNNQBBKR
NRBBNKQR
RNBKNBQR
NBBRQKNR
BRNBNQKR
BRQ...

result:

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

Extra Test:

score: 0
Extra Test Passed