QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#168246#7179. Fischer's Chess Guessing Gameucup-team152#AC ✓744ms3952kbC++232.6kb2023-09-08 00:47:072023-09-08 00:47:09

詳細信息

Test #1:

score: 100
Accepted
time: 9ms
memory: 3604kb

input:

GAME 1
1
0
3
3
1
8
END

output:

NRBBNKQR
BRNNKBQR
RQKBNRBN
BBRKQRNN
BNRKNRQB
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

NRBBNKQR
BRNNKBQR
RQKBNRBN
BBRKQRNN
BNRKNRQB
RKRBBQNN
NRBBNKQR
RNBBQKRN
RQKBNNBR
QRBKNNRB
BBRNQNKR
RKRBBNQN
NRBBNKQR
BRNNKBQR
RQKBNRBN
NNRKBRQB
BQRKRNNB
RKRBBNNQ
NRBBNKQR
BRNNKBQR
RQKBNRBN
RKQBBNRN
NRKBBQRN
RKRBQNBN
NRBBNKQR
RNBBQKRN
RQKBNNBR
QNRBBKNR
RKRBNQBN
NRBBNKQR
RNBBQKRN
RNQKBBNR
RBNNBKRQ
RKB...

result:

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

Test #3:

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

input:

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

output:

NRBBNKQR
RNBBQKRN
RNQKBBNR
BBQNRKNR
RKQBBNNR
NRBBNKQR
RNBBQKRN
RNQKBBNR
RBKQBNNR
NRKQNBBR
RKNBBQNR
NRBBNKQR
RQBBKNRN
BRKBQNNR
NQRBBKNR
BRKBNQRN
RKNBBNQR
NRBBNKQR
RQBBKNRN
BRKBQNNR
NQRBBKNR
BNQBRNKR
RKQBNNBR
NRBBNKQR
RNBBQKRN
RQKBNNBR
NRQBKNBR
RKNBQNBR
NRBBNKQR
RQBBKNRN
BRNBKQNR
QRBBKNNR
BBNQNRKR
RKN...

result:

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

Test #4:

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

input:

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

output:

NRBBNKQR
BRNNKBQR
RKNNQRBB
BQRBKNRN
BNRKQBNR
QRKRBBNN
NRBBNKQR
RQBBKNRN
NBRNQKBR
BNQRNBKR
BNNQRKRB
NRKRBBQN
NRBBNKQR
RNBBQKRN
BRKQNRNB
BBRQNKNR
BNRKRNQB
NRKRBBNQ
NRBBNKQR
BRNNKBQR
RKQNRBBN
BBRKNNRQ
BNNRQKRB
QRKRBNNB
NRBBNKQR
RNBBQKRN
BRKQNRNB
NRKRNQBB
BRKRNNQB
NRKRBQNB
NRBBNKQR
RQBBKNRN
NBRNQKBR
BNQ...

result:

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

Test #5:

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

input:

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

output:

NRBBNKQR
RKNNRQBB
RNKQBRNB
NBRKRNBQ
RQNKRBBN
NRBBNKQR
RKNNRQBB
RKNQBBRN
RBQKNRBN
RNQKRBBN
NRBBNKQR
RKNNRQBB
RNKQBRNB
RBKNBNRQ
RNNKRBBQ
NRBBNKQR
RKNNRQBB
RQKNRBBN
NBRKRQBN
RQNKRNBB
NRBBNKQR
RKNNRQBB
RNKQBRNB
NRKNRBBQ
RNQKRNBB
NRBBNKQR
RKNNRQBB
RKNBRNBQ
NNRKRQBB
RNNKRQBB
NRBBNKQR
BRNNKBQR
RQKBNRBN
BBR...

result:

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

Test #6:

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

input:

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

output:

NRBBNKQR
RQBBKNRN
BRKBQNNR
NRBKNBRQ
BRNNKBRQ
QRBKNBRN
NRBBNKQR
RQBBKNRN
BRKBQNNR
RQBNKBNR
NRBKQBRN
NRBBNKQR
BNRBNKRQ
BNRBQNKR
BQNRNKRB
NRBKNBRQ
NRBBNKQR
RQBBKNRN
BRKBQNNR
RQBNKBNR
BRQBKRNN
QRBKNNRB
NRBBNKQR
RQBBKNRN
BRKBQNNR
NQRBBKNR
BBNRKRQN
NRBKQNRB
NRBBNKQR
BNRBNKRQ
RBBKNQRN
NRBKNQRB
NRBBNKQR
BRN...

result:

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

Test #7:

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

input:

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

output:

NRBBNKQR
BRNNKBQR
RKQNRBBN
RBNKBNRQ
RBBQKRNN
NRBBNKQR
RNBBQKRN
RQKBNNBR
BBQRNKRN
BNRBKNQR
RBBNKRQN
NRBBNKQR
BRNNKBQR
RKNNQRBB
RBNKBRNQ
BBNNRKRQ
RBBNKRNQ
NRBBNKQR
RKNNRQBB
RKNQBBRN
QBRNKRBN
RBQNKRBN
NRBBNKQR
RKNNRQBB
RKNQBBRN
RBKQRNBN
RBNQKRBN
NRBBNKQR
RKNNRQBB
RNKQBRNB
RBKNBNRQ
RBNNKRBQ
NRBBNKQR
RNB...

result:

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

Test #8:

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

input:

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

output:

NRBBNKQR
RQBBKNRN
BRKBQNNR
BNRBQNKR
BBNRQKRN
QRNBKNBR
NRBBNKQR
BNRBNKRQ
NQBRNBKR
NRBBKNQR
NBQRKNBR
NRQBKNBR
NRBBNKQR
BNRBNKRQ
NQBRNBKR
NRBBKNQR
BRKBQNNR
NRNBKQBR
NRBBNKQR
RNBBQKRN
BRKQNRNB
BBRQKNNR
BBQNNRKR
QRNNKBBR
NRBBNKQR
RQBBKNRN
NBRNQKBR
NBBNRKQR
BRQNKBNR
NRQNKBBR
NRBBNKQR
RQBBKNRN
NBRNQKBR
QNR...

result:

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

Test #9:

score: 0
Accepted
time: 698ms
memory: 3920kb

input:

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

output:

NRBBNKQR
RNBBQKRN
NRNKBRQB
RBKNQNBR
BBNNRKQR
QBBRKNNR
NRBBNKQR
RQBBKNRN
BRNBKQNR
QRBBKNNR
NBBRKQNR
NRBBNKQR
BNRBNKRQ
NRBKQBNR
BBNRKNQR
NBBRKNQR
NRBBNKQR
BRNNKBQR
RBQNBNKR
QNNRKBBR
BBNRKNQR
QBNRKNBR
NRBBNKQR
RNBBQKRN
BRKQNRNB
NBQRBNKR
BBNRNQKR
NBQRKNBR
NRBBNKQR
RNBBQKRN
BRKQNRNB
NBQRBNKR
BBNRKQNR
NBN...

result:

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

Test #10:

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

input:

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

output:

NRBBNKQR
RQBBKNRN
BRKRNBNQ
BNRKNRQB
BBNQRKNR
BBRQNKNR
NRBBNKQR
RNBBQKRN
RNQKBBNR
BNRBKQNR
BBNRQKNR
BBRNQKNR
NRBBNKQR
BNRBNKRQ
BNRBNKQR
BBNRNKQR
BBRNNKQR
NRBBNKQR
BNRBNKRQ
BBRQNKNR
BQRBNKNR
NRBBNKQR
RQBBKNRN
NBRNQKBR
NBBNRKQR
BBRNQKNR
BNRBQKNR
NRBBNKQR
BQRBNNKR
NQBBRNKR
BNRBNKQR
NRBBNKQR
RNBBQKRN
NRN...

result:

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

Test #11:

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

input:

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

output:

NRBBNKQR
RNBBQKRN
RNQKBBNR
QNBBRNKR
RQNBBNKR
NRBBNKQR
RNBBQKRN
RQKBNNBR
QNRBBKNR
RNQBBNKR
NRBBNKQR
RNBBQKRN
RQKBNNBR
QRBKNNRB
BNNBRQKR
RNNBBQKR
NRBBNKQR
BRNNKBQR
RNKNQBBR
NBNRKQBR
RQNNBBKR
NRBBNKQR
BRNNKBQR
RBQNBNKR
BBNQRNKR
RNQNBBKR
NRBBNKQR
BRNNKBQR
RBQNBNKR
BBNRKNQR
RNNQBBKR
NRBBNKQR
BNRBNKRQ
BNR...

result:

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

Extra Test:

score: 0
Extra Test Passed