QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#171340#7179. Fischer's Chess Guessing Gameucup-team422#AC ✓11ms4136kbC++173.1kb2023-09-09 16:50:112023-09-09 16:50:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 6ms
memory: 3992kb

input:

GAME 1
4
1
5
2
8
END

output:

RNNBBQKR
BNQBRNKR
RKNBBRQN
RNNKBRQB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 7ms
memory: 3992kb

input:

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

output:

RNNBBQKR
BNQBRNKR
RKNBBRQN
RNNKBRQB
RKRBBQNN
RNNBBQKR
RNKNBBRQ
BNQRNBKR
RKNNRQBB
RBNKBRQN
RKRBBNQN
RNNBBQKR
RNKNBBRQ
BNRNQBKR
RNBKNQRB
RBKQBNNR
RKRBBNNQ
RNNBBQKR
RKBNNBQR
RNKNQRBB
NNRKQBBR
RKRBQNBN
RNNBBQKR
RNKNBBRQ
BNRBNKQR
NBNRBKQR
RKRBNQBN
RNNBBQKR
RKBNNBQR
RNBKQBRN
QBBRNNKR
RKRBNNBQ
RNNBBQKR
RKB...

result:

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

Test #3:

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

input:

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

output:

RNNBBQKR
BNQBRNKR
RBQNBNKR
RKQBBNNR
RNNBBQKR
NNRBBQKR
RNNBKQBR
RNNBBKQR
RKNBBQNR
RNNBBQKR
QNRBBNKR
RBNQBNKR
RKNBBNQR
RNNBBQKR
RNKNBBRQ
BNRBNKQR
NBNRBKQR
RKQBNNBR
RNNBBQKR
BNQBRNKR
NNRQBBKR
BRNBKQNR
RKNBQNBR
RNNBBQKR
QNRBBNKR
RKNBNQBR
RNNBBQKR
RNKNBBRQ
RNKBRNBQ
RQNNBKRB
RKQNBBNR
RNNBBQKR
BNQBRNKR
RKN...

result:

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

Test #4:

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

input:

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

output:

RNNBBQKR
RBBNQKRN
QRKNNBBR
QRNNKRBB
QBRKNNBR
QRKRBBNN
RNNBBQKR
RBBNQKRN
QRKNNBBR
NRKNBRQB
NRKRBBQN
RNNBBQKR
RBBNQKRN
NNRQKRBB
BRKBNRNQ
NRKRBBNQ
RNNBBQKR
RBBNQKRN
NNRQKRBB
BRKBNRNQ
BQRKNBNR
QRKRBNNB
RNNBBQKR
RKBNNBQR
NQNRBKRB
BNNQRKRB
NRKRBQNB
RNNBBQKR
RBBNQKRN
NNRQKRBB
NRKBRNBQ
NRKRBNQB
RNNBBQKR
NRK...

result:

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

Test #5:

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

input:

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

output:

RNNBBQKR
RKBNNBQR
RNKNQRBB
RQKRBBNN
RQNKRBBN
RNNBBQKR
RKBNNBQR
RNKNQRBB
NNRKQBBR
RNQKRBBN
RNNBBQKR
RNKNBBRQ
RNKBRNBQ
RNNKRBBQ
RNNBBQKR
RKBNNBQR
BNRNKQRB
RBQKBNRN
RQNKRNBB
RNNBBQKR
RKBNNBQR
BNRNKQRB
RNKRQNBB
RNQKRNBB
RNNBBQKR
BNQBRNKR
NBNQBRKR
RNNKRQBB
RNNBBQKR
RBBNQKRN
RBBNKNRQ
RBBKQRNN
RNNBBQKR
RBB...

result:

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

Test #6:

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

input:

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

output:

RNNBBQKR
NRKQRNBB
BQRKNRNB
BBRNKNRQ
QRBKNBRN
RNNBBQKR
NRKQRNBB
QRBNNKRB
BQRNKNRB
NRBKQBRN
RNNBBQKR
NRKQRNBB
QRBNNKRB
NBBNRKRQ
NRBKNBRQ
RNNBBQKR
NRKQRNBB
BRKNQRNB
QRKRNBBN
QRBKNNRB
RNNBBQKR
NRKQRNBB
BRKRQNNB
NRBKQNRB
RNNBBQKR
RBBNQKRN
BRNQKBRN
NRKNQBBR
NRBKNQRB
RNNBBQKR
RKBNNBQR
BNRNKQRB
RBQKBNRN
QBR...

result:

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

Test #7:

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

input:

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

output:

RNNBBQKR
RBBNQKRN
RKBQNBRN
RBBQKRNN
RNNBBQKR
RBBNQKRN
RBBNKNRQ
RBBNKRQN
RNNBBQKR
RBBNQKRN
RKBQNBRN
NNBRQKRB
BBRNKQRN
RBBNKRNQ
RNNBBQKR
RBBNQKRN
RKBQNBRN
NNBRQKRB
RBQNKRBN
RNNBBQKR
RKBNNBQR
BNRNKQRB
RBQKBNRN
RQNKRNBB
RBNQKRBN
RNNBBQKR
RKBNNBQR
RNKNQRBB
RBKNBRNQ
RBNNKRBQ
RNNBBQKR
RKBNNBQR
RNKNQRBB
RQK...

result:

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

Test #8:

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

input:

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

output:

RNNBBQKR
RNKNBBRQ
QRBBNNKR
NQBBNRKR
QRNBKNBR
RNNBBQKR
RKBNNBQR
BNRNKQRB
RBQKBNRN
QBNRKNBR
NRQBKNBR
RNNBBQKR
BNQBRNKR
NBNQBRKR
RNKQBBNR
NRNBKQBR
RNNBBQKR
RKBNNBQR
RNBKQBRN
QBBRNNKR
RKRBNNBQ
QRNNKBBR
RNNBBQKR
RBBNQKRN
QRKNNBBR
NRQNKBBR
RNNBBQKR
RKBNNBQR
RNKNQRBB
NRNQKBBR
RNNBBQKR
NRKQRNBB
BQRKNRNB
BBR...

result:

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

Test #9:

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

input:

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

output:

RNNBBQKR
RBBNQKRN
BRNQKBRN
QBBRKNNR
RNNBBQKR
RKBNNBQR
RNKNQRBB
BBRQNNKR
NQRKBBNR
NBBRKQNR
RNNBBQKR
RBBNQKRN
BRNQKBRN
QBBRKNNR
NBBRKNQR
RNNBBQKR
RKBNNBQR
BNRNKQRB
RBQKBNRN
QBNRKNBR
RNNBBQKR
RBBNQKRN
QRKNNBBR
NBQRKNBR
RNNBBQKR
RNKNBBRQ
QRBBNNKR
NBNRKQBR
RNNBBQKR
RKBNNBQR
RNBKQBRN
RKNQRBBN
QNBRKBNR
RNN...

result:

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

Test #10:

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

input:

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

output:

RNNBBQKR
RBBNQKRN
BRNQKBRN
NRKNQBBR
BNRKQNRB
BBRQNKNR
RNNBBQKR
RBBNQKRN
RKBQNBRN
NBRNQKBR
BBRNQKNR
RNNBBQKR
RBBNQKRN
RKBNRNQB
NBQNRKBR
NBBRNKQR
BBRNNKQR
RNNBBQKR
RKBNNBQR
RNKNQRBB
BBRQNNKR
NBRKBNQR
BQRBNKNR
RNNBBQKR
RNKNBBRQ
BNRBNKQR
BNRBKNQR
BNRBQKNR
RNNBBQKR
RNKNBBRQ
BNRBNKQR
RNNBBQKR
RKBNNBQR
RNK...

result:

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

Test #11:

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

input:

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

output:

RNNBBQKR
NNRBBQKR
RNNBKQBR
RNNQBBKR
RBNNBQKR
RQNBBNKR
RNNBBQKR
NNRBBQKR
BNNBRQKR
RNQBBNKR
RNNBBQKR
RNNBBQKR
QNRBBNKR
RNNBBKRQ
RNBBKQNR
RQNNBBKR
RNNBBQKR
QNRBBNKR
RBNQBNKR
NQNBBRKR
RNQNBBKR
RNNBBQKR
NNRBBQKR
RNNBKQBR
RNNQBBKR
RNNBBQKR
RNKNBBRQ
QRBBNNKR
NRBBQNKR
BRQBNNKR
RNNBBQKR
BNQBRNKR
BNNBRKQR
BRN...

result:

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

Extra Test:

score: 0
Extra Test Passed