QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#174407#7179. Fischer's Chess Guessing Gameucup-team1223AC ✓124ms3664kbC++173.0kb2023-09-10 07:13:432023-09-10 07:13:43

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3596kb

input:

GAME 1
3
1
5
8
END

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBQNN
RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBNQN
RQKNBBRN
RKNQNBBR
RQBBKNNR
RNQBBNKR
RBBNQNKR
RKRBBNNQ
RQKNBBRN
RKNQNBBR
NRNKBBQR
RNKRNQBB
RKRBQNBN
RQKNBBRN
RKNQNBBR
RKQNNRBB
RKRBNQBN
RQKNBBRN
RNBQKRNB
BNRKNBQR
BQNBRKNR
NBRNKQBR
RKRBNNBQ
RQKNBBRN
RNKBBNRQ
QRKNBBNR
NRQKBBRN
QBR...

result:

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

Test #3:

score: 0
Accepted
time: 72ms
memory: 3584kb

input:

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

output:

RQKNBBRN
RKNQNBBR
NRNKBBQR
RKNBBRNQ
RKNRBQNB
RKQBBNNR
RQKNBBRN
RKNQNBBR
RKQNNRBB
RKNBBNQR
RKNBBQNR
RQKNBBRN
RKNQNBBR
RKQNNRBB
RKNBBNQR
RQKNBBRN
RNBQKRNB
BNRKNBQR
BQNBRKNR
BRNKQNRB
RKQBNNBR
RQKNBBRN
RNBQKRNB
BNRKNBQR
NRBBNKRQ
RBNKRNBQ
RKNBQNBR
RQKNBBRN
RNBQKRNB
BNRKNBQR
BQNBRKNR
RKNBNQBR
RQKNBBRN
RNK...

result:

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

Test #4:

score: 0
Accepted
time: 108ms
memory: 3560kb

input:

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

output:

RQKNBBRN
RNKBBNRQ
QRKNBBNR
NRKNBBQR
QRKRBBNN
RQKNBBRN
RNKBBNRQ
QRKNBBNR
RQNKBBNR
NRKRBBQN
RQKNBBRN
NRBKQBRN
NRKQBBNR
NRKRBBNQ
RQKNBBRN
RKNQNBBR
NNRBBKRQ
QRBNKNRB
QRKRBNNB
RQKNBBRN
RKNQNBBR
NNRBBKRQ
BQRBKRNN
NRBNKQRB
NRKRBQNB
RQKNBBRN
RKNQNBBR
NNRBBKRQ
BQRBKRNN
NRKRBNQB
RQKNBBRN
NRBKQBRN
NRKQBBNR
RQB...

result:

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

Test #5:

score: 0
Accepted
time: 116ms
memory: 3588kb

input:

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

output:

RQKNBBRN
RNKBBNRQ
BRQNKBRN
RQBNNBKR
RQNKRBBN
RQKNBBRN
NRBKQBRN
NRKQBBNR
RKNRQBBN
RNQKRBBN
RQKNBBRN
RKNQNBBR
RKQNNRBB
RKNBBNQR
RNNKRBBQ
RQKNBBRN
RKNQNBBR
NRNKBBQR
RKNBBRNQ
RBNKRQBN
RQNKRNBB
RQKNBBRN
RNBQKRNB
RNBBNKQR
RNQKRNBB
RQKNBBRN
RNBQKRNB
RNBBNKQR
RNQKRNBB
RNNKRQBB
RQKNBBRN
RKNQNBBR
BBRNNKRQ
NRK...

result:

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

Test #6:

score: 0
Accepted
time: 123ms
memory: 3592kb

input:

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

output:

RQKNBBRN
NRBKQBRN
BRNKQBRN
QRBKNBRN
RQKNBBRN
NRBKQBRN
RQKNBBRN
RKNQNBBR
RQBBKNNR
BRKQNNRB
QRKBNRBN
NRBKNBRQ
RQKNBBRN
RNBQKRNB
BNRKQBNR
NBNQBRKR
QRBKNNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
NNQBBRKR
QBBNRKNR
NRBKQNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
NBNQBRKR
NRBKNQRB
RQKNBBRN
RNKBBNRQ
QRKNBBNR
RQNKBBNR
QRNKBBRN
RQK...

result:

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

Test #7:

score: 0
Accepted
time: 108ms
memory: 3588kb

input:

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

output:

RQKNBBRN
RKNQNBBR
RQBBKNNR
RNQBBNKR
QRBNKBNR
RBBQKRNN
RQKNBBRN
NRBKQBRN
QRKNNBBR
QBNRBKRN
RBBNKNRQ
RBBNKRQN
RQKNBBRN
RKNQNBBR
BBRNNKRQ
BRNBQKRN
QBRNBNKR
RBBNKRNQ
RQKNBBRN
NRBKQBRN
RKNBBRQN
RNKBRQBN
RBQNKRBN
RQKNBBRN
RKNQNBBR
RKQNNRBB
RBNQKRBN
RQKNBBRN
RKNQNBBR
NRNKBBQR
RQBBNNKR
RBNNKRBQ
RQKNBBRN
NRB...

result:

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

Test #8:

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

input:

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

output:

RQKNBBRN
BBQRNNKR
QRBBNKNR
NRBBKNQR
QRNBKNBR
RQKNBBRN
BBQRNNKR
NRBBQNKR
NRQBKNBR
RQKNBBRN
BBQRNNKR
QRBKRNNB
NRNBQKBR
NRNBKQBR
RQKNBBRN
RKNQNBBR
RKQNNRBB
RKNBBNQR
RNNKRBBQ
QRNNKBBR
RQKNBBRN
RKNQNBBR
NRNKBBQR
NRQNKBBR
RQKNBBRN
RNBQKRNB
BNRKQBNR
NNQBBRKR
NRNQKBBR
RQKNBBRN
RNBQKRNB
QNBRKNRB
BBRQKRNN
RQK...

result:

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

Test #9:

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

input:

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

output:

RQKNBBRN
BBQRNNKR
NBBRNKQR
BBNRQKNR
QBBRKNNR
RQKNBBRN
BBQRNNKR
NRBBQNKR
NBNRQKBR
NBBRKQNR
RQKNBBRN
BBQRNNKR
NBBRNKQR
QBBRNKNR
NBBRKNQR
RQKNBBRN
BBQRNNKR
NBBRNKQR
QBRKNNBR
BBRKNQNR
QBNRKNBR
RQKNBBRN
BBQRNNKR
BBNRNKQR
NBQRKNBR
RQKNBBRN
BBQRNNKR
NRBBQNKR
NBNRKQBR
RQKNBBRN
RNBQKRNB
QNBRKNRB
BNRQKNRB
QNB...

result:

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

Test #10:

score: 0
Accepted
time: 124ms
memory: 3556kb

input:

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

output:

RQKNBBRN
BBQRNNKR
NBBRNKQR
BBNRQKNR
BBRQNKNR
RQKNBBRN
RNBQKRNB
BNRKNBQR
BRNKNQRB
BBRNQKNR
RQKNBBRN
RNBQKRNB
BBRNQNKR
BQRBNNKR
BBRNNKQR
RQKNBBRN
RNBQKRNB
BNRKNBQR
BRNQNBKR
BQRBNKNR
RQKNBBRN
BBQRNNKR
QRBBNKNR
NRBBKNQR
BNRBQKNR
RQKNBBRN
BBQRNNKR
NRBBQNKR
NBNRKQBR
BNQBRKNR
BNRBNKQR
RQKNBBRN
RKNQNBBR
BBR...

result:

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

Test #11:

score: 0
Accepted
time: 114ms
memory: 3664kb

input:

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

output:

RQKNBBRN
NRBKQBRN
RQKBNNBR
RNKBBNQR
RQNBBNKR
RQKNBBRN
RKNQNBBR
RQBBKNNR
RNQBBNKR
RQKNBBRN
RKNQNBBR
NRNKBBQR
BRQNNBKR
RNNBBQKR
RQKNBBRN
RNKNBBQR
RKRNBBQN
RQNNBBKR
RQKNBBRN
RNKBBNRQ
RNKNQBBR
RNQNBBKR
RQKNBBRN
NRBKQBRN
RKNBBRQN
RNKBRQBN
RNNQBKRB
RNNQBBKR
RQKNBBRN
BBQRNNKR
BBNRQNKR
BRQBNNKR
RQKNBBRN
BBQ...

result:

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

Extra Test:

score: 0
Extra Test Passed