QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#343813#7179. Fischer's Chess Guessing Gameucup-team384AC ✓24ms4116kbC++202.8kb2024-03-03 05:19:152024-03-03 05:19:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 17ms
memory: 4116kb

input:

GAME 1
0
2
3
3
3
8
END

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
BRQBKRNN
BBRKQRNN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 24ms
memory: 3876kb

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
BRQBKRNN
BBRKQRNN
RKRBBQNN
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRKNQBNR
NRQKBNRB
RKRBBNQN
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKNBBQNR
BRQNKRNB
RKRBBNNQ
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKNNBBQR
NRQBBNKR
RKRBQNBN
NBBRQNKR
NRKQBBRN
RKBQNBNR
BQRNKNRB
RNQNKBBR
RKRBNQBN
NBBRQNKR
NRKQBBRN
RKBQNBNR
NRB...

result:

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

Test #3:

score: 0
Accepted
time: 24ms
memory: 3916kb

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
RKBRQNNB
NBRKBRQN
RKQBBNNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RNKQNBBR
RKQBRNBN
RKNBBQNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RBNKBRQN
BBNRKQNR
RKNBBNQR
NBBRQNKR
NRKQBBRN
RKBQNBNR
NNRBBQKR
NNRBKRBQ
RKQBNNBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKNRBNQB
RNKBNQBR
RKNBQNBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RBB...

result:

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

Test #4:

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

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
BRNKNQRB
QBBRNKNR
QRKRBBNN
NBBRQNKR
NRKQBBRN
RKBQNBNR
NRNKQBBR
BRKNRQNB
NRKRBBQN
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKBRQNNB
BBRKRNQN
NRKRBBNQ
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKBBQNRN
BNRKNBQR
QRKRBNNB
NBBRQNKR
NRKQBBRN
RKBQNBNR
NBRKNRBQ
BRNBKRNQ
NRKRBQNB
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKN...

result:

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

Test #5:

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

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
NNBBRKRQ
RNBKRBQN
RQNKRBBN
NBBRQNKR
NRKQBBRN
RKBQNBNR
NNBBRKRQ
RNBKRBQN
RNQKRBBN
NBBRQNKR
NRKQBBRN
RKBQNBNR
NRKBBRQN
RNQKBNRB
RNNKRBBQ
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRNQKRNB
QBNNRKBR
RQNKRNBB
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRNQKRNB
QBNNRKBR
RNQKRNBB
NBBRQNKR
NRKQBBRN
RKBQNBNR
NQR...

result:

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

Test #6:

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

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
NBRKNRBQ
RQKNBNRB
QRBKNBRN
NBBRQNKR
NRKQBBRN
RKBQNBNR
NNBRKRQB
BQNNRBKR
NRBKQBRN
NBBRQNKR
NRKQBBRN
RKBQNBNR
QBRKRNBN
NRKNBBQR
NRBKNBRQ
NBBRQNKR
NRKQBBRN
RKBQNBNR
RBKNQNBR
RQKRNNBB
QRBKNNRB
NBBRQNKR
NRKQBBRN
RKBQNBNR
QNBBNRKR
NBRQKNBR
NRBKQNRB
NBBRQNKR
NRKQBBRN
RKBQNBNR
NRB...

result:

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

Test #7:

score: 0
Accepted
time: 19ms
memory: 3820kb

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
RNBNKBRQ
QRBNNKRB
RBBQKRNN
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKNNBBQR
NRQBBNKR
RBBNKRQN
NBBRQNKR
NRKQBBRN
RKBQNBNR
QNRNBKRB
RKNRQNBB
RBBNKRNQ
NBBRQNKR
NRKQBBRN
RKBQNBNR
BQNNRKRB
RKNQRNBB
RBQNKRBN
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRKNQBNR
NRQKBNRB
RBNQKRBN
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRN...

result:

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

Test #8:

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

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
BBRKRQNN
BRNQKBRN
QRNBKNBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
NRBBKNRQ
QNRBKNBR
NRQBKNBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
NNBRKQRB
BRQNKBRN
NRNBKQBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRKNQBNR
NRQKBNRB
QRNNKBBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
NRBNKBRQ
RBBKNQRN
NRQNKBBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
QBR...

result:

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

Test #9:

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

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
BQRBKRNN
BNRKNBRQ
QBBRKNNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RBBKRNNQ
NBNQBRKR
NBBRKQNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RBQKNRBN
RBNQKNBR
NBBRKNQR
NBBRQNKR
NRKQBBRN
RKBQNBNR
QNRNBBKR
BNRNQBKR
QBNRKNBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RNQBBKNR
QRNKBBNR
NBQRKNBR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RNN...

result:

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

Test #10:

score: 0
Accepted
time: 19ms
memory: 3788kb

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
RKBRQNNB
NBRKBRQN
BBRQNKNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRQNKBRN
BQRBNNKR
BBRNQKNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
BBNQRKNR
RKNNRQBB
BBRNNKQR
NBBRQNKR
NRKQBBRN
RKBQNBNR
NRBKRBNQ
NQBBRKNR
BQRBNKNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
BBNQRKNR
RKNNRQBB
BNRBQKNR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKN...

result:

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

Test #11:

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

input:

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

output:

NBBRQNKR
NRKQBBRN
RKBQNBNR
RBNKBRQN
RNBBKNRQ
RQNBBNKR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RBNKBRQN
RNBBKNRQ
RNQBBNKR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKNNBBQR
NRQBBNKR
RNNBBQKR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKNRBQNB
BNQNRBKR
RQNNBBKR
NBBRQNKR
NRKQBBRN
RKBQNBNR
RKNRBQNB
BNQNRBKR
RNQNBBKR
NBBRQNKR
NRKQBBRN
RKBQNBNR
BRN...

result:

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

Extra Test:

score: 0
Extra Test Passed