QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#167800#7179. Fischer's Chess Guessing Gameucup-team267#AC ✓36ms3840kbC++142.6kb2023-09-07 17:33:502023-09-07 17:33:51

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

GAME 1
0
6
5
8
END

output:

QRBNNKRB
RKQBBRNN
RKNBBRQN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 35ms
memory: 3544kb

input:

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

output:

QRBNNKRB
RKQBBRNN
RKNBBRQN
RKRBBQNN
QRBNNKRB
RKQBBRNN
RNKBBRNQ
RKRQBBNN
RKRBBNQN
QRBNNKRB
RKQBBRNN
RNKBBRNQ
RKRBBNNQ
QRBNNKRB
RKQBBRNN
RKNRBBNQ
RKRBQNBN
QRBNNKRB
BBRNQNKR
RNKBNQBR
RBKRNQBN
RKRBNQBN
QRBNNKRB
BBRNQNKR
RKNNBBQR
RBQKBNRN
RKRBNNBQ
QRBNNKRB
RKQBBRNN
RNKBBRNQ
RKRQBBNN
QRBNNKRB
BBRNQNKR
RKN...

result:

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

Test #3:

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

input:

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

output:

QRBNNKRB
RKQBBRNN
RKNBBRQN
RKQBBNNR
QRBNNKRB
RKQBBRNN
RNKBBRNQ
RKNBBQNR
QRBNNKRB
RKQBBRNN
RKNRBBNQ
RKNBBNQR
QRBNNKRB
BBRNQNKR
RKNNBBQR
BNNBRKQR
QNRKBBNR
RKQBNNBR
QRBNNKRB
RKQBBRNN
RQNBBNKR
RKNBQNBR
QRBNNKRB
BBRNQNKR
RNKBNQBR
RKNBNQBR
QRBNNKRB
BBRNQNKR
RKNNBBQR
RKQNBBNR
QRBNNKRB
RKQBBRNN
RKNRBBNQ
RKN...

result:

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

Test #4:

score: 0
Accepted
time: 28ms
memory: 3600kb

input:

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

output:

QRBNNKRB
RKBNQBNR
RBNQNKBR
BQRNKRNB
QRKRBBNN
QRBNNKRB
BBRNQNKR
NRNBKRBQ
RKNQBRNB
RNKRNBBQ
NRKRBBQN
QRBNNKRB
BBRNQNKR
NRNBKRBQ
RQKBNRBN
NRKRBBNQ
QRBNNKRB
RQBNKBRN
BRKQNRNB
NRQKNRBB
QRKRBNNB
QRBNNKRB
RKBNQBNR
NRKQBRNB
NRKRBQNB
QRBNNKRB
RKBNQBNR
BRNBKQRN
QBRKNRBN
NRKRBNQB
QRBNNKRB
RQBNKBRN
BRQNNBKR
QRK...

result:

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

Test #5:

score: 0
Accepted
time: 34ms
memory: 3540kb

input:

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

output:

QRBNNKRB
RKQBBRNN
RBKQRNBN
RNKRQBBN
RQNKRBBN
QRBNNKRB
RKQBBRNN
RQNBBNKR
BNRBKRNQ
RNQKRBBN
QRBNNKRB
RKQBBRNN
BNRKRBQN
BNRQKBNR
RNNKRBBQ
QRBNNKRB
BBRNQNKR
RNKBNQBR
RKQBBNRN
RKNNRBBQ
RQNKRNBB
QRBNNKRB
BBRNQNKR
RNKBNQBR
RNNKQRBB
RBNKNRBQ
RNQKRNBB
QRBNNKRB
BBRNQNKR
NRNBKRBQ
RKNQBRNB
RNNKRQBB
QRBNNKRB
BBR...

result:

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

Test #6:

score: 0
Accepted
time: 22ms
memory: 3720kb

input:

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

output:

QRBNNKRB
NQBNRKRB
QRKNNRBB
QRBKNBRN
QRBNNKRB
RQBNKBRN
RKBBNQRN
QBBRKNRN
RBQNBKRN
NRBKQBRN
QRBNNKRB
RQBBNKRN
RNBNKQRB
QBRNBKRN
NRBKNBRQ
QRBNNKRB
QNBRNKRB
QRBKNNRB
QRBNNKRB
RQBBNKRN
BRQKNNRB
NRBKQNRB
QRBNNKRB
NQBNRKRB
NRBKNQRB
QRBNNKRB
RQBNKBRN
RKBNQRNB
QRNKBBRN
QRBNNKRB
RKBNQBNR
NRKQBRNB
NRBBKRQN
NQR...

result:

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

Test #7:

score: 0
Accepted
time: 28ms
memory: 3540kb

input:

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

output:

QRBNNKRB
BBRNQNKR
RNKBNQBR
BRQBKRNN
RBBQKRNN
QRBNNKRB
RKBNQBNR
NRQNBBKR
RNKNQRBB
RBBNKRQN
QRBNNKRB
RKBNQBNR
RKRNQNBB
RBQNBKNR
RBBNKRNQ
QRBNNKRB
BBRNQNKR
RKNNBBQR
RBQKBNRN
RBQNKRBN
QRBNNKRB
RKQBBRNN
RQNBBNKR
RBNKQRBN
RBNQKRBN
QRBNNKRB
BBRNQNKR
RKNNBBQR
BNNBRKQR
RBNKBNRQ
RBNNKRBQ
QRBNNKRB
BBRNQNKR
NRN...

result:

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

Test #8:

score: 0
Accepted
time: 36ms
memory: 3840kb

input:

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

output:

QRBNNKRB
RKBNQBNR
NRKQBRNB
BRQBNNKR
QRNBKNBR
QRBNNKRB
BBRNQNKR
RKNNBBQR
NBRKBQRN
BRKRQBNN
NRQBKNBR
QRBNNKRB
BBRNQNKR
RNKBNQBR
RNKQRNBB
NRKBBQNR
NRNBKQBR
QRBNNKRB
RQBNKBRN
RKBNQRNB
QRKNRBBN
QRNNKBBR
QRBNNKRB
RKBNQBNR
NRQNBBKR
NRKNBBQR
NRQNKBBR
QRBNNKRB
BBRNQNKR
RNKBNQBR
RKQBBNRN
NNRQKRBB
NRNQKBBR
QRB...

result:

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

Test #9:

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

input:

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

output:

QRBNNKRB
RKBNQBNR
NRQNBBKR
RNKNQRBB
QBBRKNNR
QRBNNKRB
BBRNQNKR
RKNNBBQR
NBRKBQRN
RBBKQRNN
NBBRKQNR
QRBNNKRB
BBRNQNKR
RNKNQBBR
BRQBKNNR
BQNBNRKR
NBBRKNQR
QRBNNKRB
BBRNQNKR
RNKNQBBR
BQNRNBKR
QBNRKNBR
QRBNNKRB
RKQBBRNN
BNRKRBQN
RBNQKNBR
NBQRKNBR
QRBNNKRB
RKQBBRNN
BBNRKNQR
BBNQRNKR
NBNRKQBR
QRBNNKRB
RKB...

result:

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

Test #10:

score: 0
Accepted
time: 17ms
memory: 3724kb

input:

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

output:

QRBNNKRB
RKBNQBNR
RBNQNKBR
RKNQNRBB
BBRQNKNR
QRBNNKRB
RKBNQBNR
RKRNQNBB
RKQNBBRN
RNBKQRNB
BBRNQKNR
QRBNNKRB
RQBNKBRN
NRQKBNRB
QNBBRKNR
BBRNNKQR
QRBNNKRB
RKBNQBNR
RBNQNKBR
BBRNNQKR
BQRBNKNR
QRBNNKRB
BBRNQNKR
RNBBQNKR
BRKBQNNR
BNRBQKNR
QRBNNKRB
RKBNQBNR
NRKQBRNB
BBNRQKRN
QNNBRKBR
BNRBNKQR
QRBNNKRB
RQB...

result:

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

Test #11:

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

input:

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

output:

QRBNNKRB
RKQBBRNN
RQNBBNKR
QRBNNKRB
RKQBBRNN
RKNRBBNQ
RKRBQNBN
RNQBBNKR
QRBNNKRB
RKQBBRNN
RQNBBNKR
RNNBBQKR
QRBNNKRB
BBRNQNKR
RNKNQBBR
RBKNRNBQ
RQNNBBKR
QRBNNKRB
BBRNQNKR
RNKNQBBR
RKRNQBBN
RNQNBBKR
QRBNNKRB
RKQBBRNN
RBKQRNBN
NBQRBNKR
RNNQBBKR
QRBNNKRB
RKBNQBNR
NRKQBRNB
BRQBNNKR
QRBNNKRB
BBRNQNKR
RBQ...

result:

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

Extra Test:

score: 0
Extra Test Passed