QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#184265#7179. Fischer's Chess Guessing Gameucup-team1712AC ✓267ms4004kbC++172.5kb2023-09-20 15:53:282023-09-20 15:53:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 4004kb

input:

GAME 1
1
2
2
1
8
END

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
BRNQKBRN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 242ms
memory: 3748kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RQBNKBRN
RNKBQRBN
RKRBBQNN
NRNBBKQR
NRKQBBRN
RBNQBNKR
RNKBBQNR
RKRBBNQN
RQKNBBRN
RKNQNBBR
RQBBKNNR
RNQBBNKR
RBBNQNKR
RKRBBNNQ
RQKBBNRN
RQKNBRNB
BQRBNKRN
RNBBKQRN
RKRBQNBN
NRNBBKQR
BQNRKRNB
RBBNQNKR
NBRKRQBN
RKRBNQBN
NRNBBKQR
BQNRKRNB
RNKNQBBR
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKR...

result:

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

Test #3:

score: 0
Accepted
time: 248ms
memory: 3796kb

input:

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

output:

RQKBBNRN
RQKNBRNB
QRKNBBRN
RKQBBNNR
NRNBBKQR
BNRBNKQR
NRQBKNBR
RKNBBQNR
RQKNBBRN
RNNKQBBR
NRNQBBKR
RNQBBNKR
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKQBNNBR
NRNBBKQR
NRKQBBRN
BQRBNKNR
RBNNQKBR
RKNBQNBR
RQKBBNRN
RKNBNQBR
RQKNBBRN
RNKQBNRB
QRKRBBNN
RKQNBBNR
NRBBNKQR
BNRKQBNR
RQKNBBNR
RNQNBBKR
RKNQBBNR
NRN...

result:

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

Test #4:

score: 0
Accepted
time: 250ms
memory: 3800kb

input:

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

output:

RQKNBBRN
RQBNKBNR
RBKNRQBN
RKNRBBQN
QRKRBBNN
RQKNBBRN
RNKQBNRB
QRKRBBNN
NRKRBBQN
NRNBBKQR
NRKQBBRN
NRKQBRNB
NRKNBQRB
NRKRBBNQ
RQKBBNRN
NRBBQKRN
RNKQRBBN
RKNBBQNR
QRKRBNNB
RQKNBBRN
RKBQNBNR
NRKBBRNQ
NRKRBQNB
RQKNBBRN
RNQKNBBR
BBNRQKRN
NRKRBQNB
QRKRBNNB
NRKRBNQB
NRBBNKQR
RBBQKNNR
NRKNRBBQ
QRKNNRBB
QRK...

result:

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

Test #5:

score: 0
Accepted
time: 262ms
memory: 3732kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RNKQRBBN
RQNKRBBN
RQKBBNRN
RKNBNQBR
NNQBBRKR
BRKBNRNQ
RNQKRNBB
RNQKRBBN
RQKBBNRN
BNRKRNQB
NBRKQNBR
BNRBNQKR
RNBKQRNB
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RNKQBRNB
RBNKBNQR
RQNKRNBB
NRNBBKQR
RKBNQRNB
RKQRNBBN
RNBKNBRQ
RNQKRNBB
NRBBNKQR
RKNNRQBB
RKNNRBBQ
RNNKRQBB
NRNBBKQR
BBRNKQRN
RKBNNBRQ
RBQ...

result:

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

Test #6:

score: 0
Accepted
time: 249ms
memory: 3768kb

input:

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

output:

RQKBBNRN
RKBBNQNR
RNKNRQBB
BRNBQNKR
NQRKBBNR
QRBKNBRN
RQKNBBRN
NRBKQBRN
NRNBBKQR
RNQNBBKR
QRBNNKRB
QNBBRKRN
NRBKNBRQ
NRBBNKQR
NRBQKBRN
RNBBQKRN
QRBKNNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
NRBKQNRB
RQKBBNRN
BNRKRNQB
BRNNKQRB
BBNNRKRQ
NNBRKQRB
NRBKNQRB
NRBBNKQR
BNRKQBNR
RNBQKRNB
QRNKBBRN
NRBBNKQR
RBBNKQNR
NRK...

result:

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

Test #7:

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

input:

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

output:

RQKBBNRN
RKBBNQNR
NQRBNKBR
RKNRBBNQ
RBBKQRNN
RBBQKRNN
NRNBBKQR
BQNRKRNB
BRQKNNRB
RBBNKQNR
RBBNKRQN
NRNBBKQR
BBRNKQRN
RKBNQBRN
RBBKRQNN
RBBNKRNQ
NRBBNKQR
RKNNRQBB
RBKQRNBN
RNQKRBBN
RBQNKRBN
RQKNBBRN
RKBQNBNR
RBNQKRBN
RQKNBBRN
RKNQNBBR
NRNKBBQR
RQBBNNKR
RBNNKRBQ
RQKNBBRN
NRBKQBRN
QRNNBKRB
RBKRQNBN
RQB...

result:

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

Test #8:

score: 0
Accepted
time: 258ms
memory: 3864kb

input:

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

output:

NRNBBKQR
BNRBNKQR
RKNBBQNR
QRNBKNBR
RQKBBNRN
RKNBNQBR
RKQNRBBN
RNNKBBQR
QRNBKRBN
NRQBKNBR
RQKBBNRN
BNRKRNQB
RBBQNKNR
QBNRKRBN
NRNBKQBR
RQKNBBRN
RNNKQBBR
QNRNKBBR
QRNNKBBR
NRBBNKQR
NRBQKBRN
NBBRQKRN
NRNQBBKR
NRQNKBBR
RQKNBBRN
RNBQKRNB
BNRKQBNR
NBBNQRKR
NRNQKBBR
RQKBBNRN
BNRKRNQB
BRNNKQRB
BBNRQNKR
NRN...

result:

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

Test #9:

score: 0
Accepted
time: 254ms
memory: 3864kb

input:

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

output:

NRNBBKQR
BQNRKRNB
RBNQKRBN
QBBRKNNR
RQKBBNRN
BNRNQBKR
NBQRNKBR
NBBRKQNR
NRNBBKQR
NRKQBBRN
NBBRQKNR
NBRNQKBR
NBBRKNQR
RQKNBBRN
BBQRNNKR
BNRBQNKR
QBBRKNNR
QBNRKNBR
NRBBNKQR
RBBNQNKR
RQBBKNRN
BNQBRNKR
BBNRKNQR
NBQRKNBR
RQKNBBRN
BBQRNNKR
NRBBQNKR
BNQBRKNR
NBNRKQBR
NRBBNKQR
RBBNKQNR
NBRKBQNR
RNNBKQBR
RKB...

result:

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

Test #10:

score: 0
Accepted
time: 253ms
memory: 3868kb

input:

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

output:

RQKNBBRN
BBQRNNKR
BBRQNKNR
RQKNBBRN
RNBQKRNB
NBRNKQBR
NNRKQBBR
NBRQBNKR
BBRNQKNR
RQKNBBRN
RNBQKRNB
BBRNQNKR
NBRNQKBR
BBRNNKQR
NRBBNKQR
QRNBBKNR
NRNKBBQR
QNRBNKBR
BQRBNKNR
NRNBBKQR
NRKQBBRN
RNBBKNQR
BQNBRNKR
BNRBQKNR
NRBBNKQR
BRQBNKNR
BRKBNNQR
BNRBNKQR
RQKBBNRN
BNRKRNQB
NQNRKRBB
RNBQNBKR
QBRNBKNR
NRB...

result:

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

Test #11:

score: 0
Accepted
time: 267ms
memory: 4004kb

input:

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

output:

NRBBNKQR
RBBQKNNR
RKBBQNRN
RKNBBQNR
RQNBBNKR
NRNBBKQR
NRKQBBRN
NBBRQKNR
RKNBBRNQ
RNQBBNKR
NRBBNKQR
RBBNQNKR
RQBBKNRN
NBRQKNBR
RNNBBQKR
NRNBBKQR
NRKQBBRN
RBNQBNKR
NBQRBNKR
RQNNBBKR
RQKBBNRN
RKBBNQNR
RNKNRQBB
RNQKBRNB
RNQNBBKR
RQKNBBRN
NRBKQBRN
RKNBBRQN
RNNQBBKR
NRBBNKQR
BRNBQKNR
NBBRQKNR
BRQBNNKR
NRN...

result:

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

Extra Test:

score: 0
Extra Test Passed