QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#171385#7179. Fischer's Chess Guessing Gameucup-team1681#AC ✓23ms4032kbC++141.8kb2023-09-09 16:54:092023-09-09 16:55:41

詳細信息

Test #1:

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

input:

GAME 1
3
0
3
8
END

output:

RKBQNBNR
BRQNNBKR
RBBKQRNN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 12ms
memory: 3964kb

input:

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

output:

RKBQNBNR
BRQNNBKR
RBBKQRNN
RKRBBQNN
RKBQNBNR
RQNBBNKR
RKQBBNRN
RKRBBNQN
RKBQNBNR
BRQNNBKR
RBBKQRNN
RKRBBNNQ
RKBQNBNR
RQNBBNKR
BRNBQKNR
RKNRQNBB
RKRBQNBN
RKBQNBNR
BRQNNBKR
RKNBNRBQ
RKRBNQBN
RKBQNBNR
BRQNNBKR
RKNBNRBQ
RKRBNNBQ
RKBQNBNR
RKBQRNNB
RKBRQBNN
RKRQBBNN
RKBQNBNR
BRQNNBKR
RKNNBBRQ
RKRNBBQN
RKB...

result:

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

Test #3:

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

input:

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

output:

RKBQNBNR
RKBBNQRN
RKNQNRBB
RKQBBNNR
RKBQNBNR
RKBBNQRN
RNBQKBRN
RKQBNNBR
RKNBBQNR
RKBQNBNR
BRQNNBKR
RKNBNRBQ
RKNBBNQR
RKBQNBNR
RKBBNQRN
RNBQKBRN
RKQBNNBR
RKBQNBNR
BRQNNBKR
RKNBNRBQ
RKRBNQBN
RKNBQNBR
RKBQNBNR
RKBBNQRN
RBBQNKRN
RKNBNQBR
RKBQNBNR
RKBQRNNB
RNKQBBNR
RKQNBBNR
RKBQNBNR
RKBQRBNN
RKBQNRNB
RKB...

result:

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

Test #4:

score: 0
Accepted
time: 18ms
memory: 4032kb

input:

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

output:

RKBQNBNR
RQNBBNKR
BRNQNKRB
NRKRBBNQ
QRKRBBNN
RKBQNBNR
BRKNNQRB
NRKBBNQR
NRKRBBQN
RKBQNBNR
RQNBBNKR
BRNQNKRB
NRKRBBNQ
RKBQNBNR
BRKNNQRB
RQKNRNBB
BRKBRNNQ
QRKRBNNB
RKBQNBNR
BRKNNQRB
BRNBNKRQ
QRKNBRNB
NRKRBQNB
RKBQNBNR
BBNRQKRN
NRQBKRBN
QRNKRNBB
NRKRBNQB
RKBQNBNR
RQNBBNKR
BBRQNKRN
QNBRKBRN
QRKRNBBN
RKB...

result:

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

Test #5:

score: 0
Accepted
time: 11ms
memory: 3852kb

input:

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

output:

RKBQNBNR
RQNBBNKR
BRNBQKNR
RQNKNRBB
RQKBNRBN
RQNKRBBN
RKBQNBNR
RQNBBNKR
BRNQNKRB
QNRNKBBR
RNKRQBBN
RNQKRBBN
RKBQNBNR
RQNBBNKR
BBNRKQNR
RBBKRNQN
RNKRBBQN
RNNKRBBQ
RKBQNBNR
BRKNNQRB
QRNBBNKR
RQKBRNBN
RQNKRNBB
RKBQNBNR
BRKNNQRB
QRNBBNKR
RNNKQRBB
RNKBQRBN
RNQKRNBB
RKBQNBNR
BRKNNQRB
NRKBBNQR
BQNRKBRN
RNQ...

result:

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

Test #6:

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

input:

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

output:

RKBQNBNR
BRQNNBKR
NQBBNRKR
BQNRKBNR
QRBKNBRN
RKBQNBNR
RQNBBNKR
BBRQNKRN
QNBRKBRN
QRKRNBBN
NRBKQBRN
RKBQNBNR
BRQNNBKR
NQBBNRKR
RBBNQNKR
NRBKNBRQ
RKBQNBNR
RQNBBNKR
BRNQNKRB
QRBBNKRN
QRBKNNRB
RKBQNBNR
BRKNNQRB
RQKNRNBB
QRNKNRBB
RNNKBQRB
NRBKQNRB
RKBQNBNR
RQNBBNKR
BBRQNKRN
QNBRKBRN
BRQKRBNN
NRBKNQRB
RKB...

result:

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

Test #7:

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

input:

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

output:

RKBQNBNR
RKBBNQRN
RKNQNRBB
RBBKNRNQ
RBBQKRNN
RKBQNBNR
RQNBBNKR
BRNQNKRB
QNRNKBBR
RBBNKRQN
RKBQNBNR
BRQNNBKR
RKNBNRBQ
RBBKNRQN
RQBBNKRN
RBBNKRNQ
RKBQNBNR
BRKNNQRB
QRNBBNKR
BBRKQRNN
RBQNKRBN
RKBQNBNR
RQNBBNKR
BBNRKQNR
NBRQKNBR
RBNQKRBN
RKBQNBNR
BRKNNQRB
QRNBBNKR
RNNKQRBB
RBNKRQBN
RBNNKRBQ
RKBQNBNR
BRQ...

result:

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

Test #8:

score: 0
Accepted
time: 23ms
memory: 3888kb

input:

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

output:

RKBQNBNR
BRKNNQRB
QRNBBNKR
QRNBKNBR
RKBQNBNR
BRKNNQRB
QRNBBNKR
BNNBQRKR
NRQBKNBR
RKBQNBNR
BRKNNQRB
NRKBBNQR
RNKRBNQB
NRNBKQBR
RKBQNBNR
RQNBBNKR
BBNRKQNR
NBRQKNBR
QRNNKBBR
RKBQNBNR
RQNBBNKR
BRNQNKRB
NRKRBBNQ
NQBRKRNB
NRQNKBBR
RKBQNBNR
BRQNNBKR
NQBBNRKR
BQNRKBNR
NRNQKBBR
RKBQNBNR
RQNBBNKR
BBRQNKRN
BBR...

result:

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

Test #9:

score: 0
Accepted
time: 6ms
memory: 3848kb

input:

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

output:

RKBQNBNR
BRQNNBKR
RKNBNRBQ
QBBRKNNR
RKBQNBNR
BRQNNBKR
RKNBNRBQ
QBBRKNNR
NBBRKQNR
RKBQNBNR
RQNBBNKR
BBNRKQNR
QNNRKBBR
NBBRKNQR
RKBQNBNR
BRKNNQRB
NBQRBNKR
QBNRKNBR
RKBQNBNR
BRKNNQRB
NBQRBNKR
QBNRBNKR
NBQRKNBR
RKBQNBNR
BRKNNQRB
QRNBBNKR
RQKBRNBN
QNRKBBRN
NBNRKQBR
RKBQNBNR
RKBBNQRN
RQNKBBNR
QRBNKBNR
QNB...

result:

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

Test #10:

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

input:

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

output:

RKBQNBNR
RKBBNQRN
RQNKBBNR
BBRQNKNR
RKBQNBNR
RQNBBNKR
BRNQNKRB
RNKRNQBB
BBQNRKNR
BBRNQKNR
RKBQNBNR
RQNBBNKR
BRNQNKRB
NRKQBRNB
BQRKNBRN
BBRNNKQR
RKBQNBNR
BRQNNBKR
NQBBNRKR
BQRBNKNR
RKBQNBNR
RQNBBNKR
BBNRKQNR
NBRQKNBR
BBQNNRKR
BNRBQKNR
RKBQNBNR
RQNBBNKR
BBNRKQNR
RBNKNRBQ
RNBBKQRN
BNRBNKQR
RKBQNBNR
RQN...

result:

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

Test #11:

score: 0
Accepted
time: 12ms
memory: 3964kb

input:

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

output:

RKBQNBNR
RQNBBNKR
RKBQNBNR
RQNBBNKR
RNQBBNKR
RKBQNBNR
RQNBBNKR
RNQBBNKR
RNNBBQKR
RKBQNBNR
BRQNNBKR
QNBNRBKR
QRBBNNKR
RQNNBBKR
RKBQNBNR
BRQNNBKR
BRNKNBQR
RNQNBBKR
RKBQNBNR
RKBBNQRN
RQNKBBNR
RBNQBKNR
RNNQBBKR
RKBQNBNR
RQNBBNKR
RKQBBNRN
BRQBNNKR
RKBQNBNR
BRKNNQRB
NRKBBNQR
RNKRBNQB
BRNBQNKR
RKBQNBNR
RQN...

result:

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

Extra Test:

score: 0
Extra Test Passed