QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#291876#7179. Fischer's Chess Guessing Gameucup-team2335#AC ✓49ms3936kbC++143.5kb2023-12-27 11:49:432023-12-27 11:49:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 46ms
memory: 3888kb

input:

GAME 1
2
1
3
5
8
END

output:

NRKQBBNR
BRNBQNKR
RQNKBBRN
RKNRBQNB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 49ms
memory: 3932kb

input:

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

output:

NRKQBBNR
BRNBQNKR
RQNKBBRN
RKNRBQNB
RKRBBQNN
NRKQBBNR
RKQBNNBR
QNBBRNKR
RKBBNRQN
RKRBBNQN
NRKQBBNR
BRNBQNKR
NBBRNKQR
RQKBBNNR
RKRNQBBN
RKRBBNNQ
NRKQBBNR
BNRNQKRB
QBBRKNRN
RQBNKNRB
RKRBQNBN
NRKQBBNR
BNRNQKRB
QBRNKRBN
QRBNKRNB
RKRBNQBN
NRKQBBNR
BNRNQKRB
QBRNKRBN
RKRNNQBB
RKRBNNBQ
NRKQBBNR
RNBKQBNR
RQK...

result:

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

Test #3:

score: 0
Accepted
time: 46ms
memory: 3932kb

input:

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

output:

NRKQBBNR
RBNQBKNR
RKNNBBRQ
RBQNBNKR
RKQBBNNR
NRKQBBNR
RBNQBKNR
RKNBBNRQ
RKNBBQNR
NRKQBBNR
BRNBQNKR
QNNRBBKR
QBNRNKBR
RKNBBNQR
NRKQBBNR
RKQBNNBR
NRKQBBNR
RKQBNNBR
RKNBBQNR
RKNBQNBR
NRKQBBNR
RKQBNNBR
RKNBBQNR
RKNBNQBR
NRKQBBNR
RNBKQBNR
NRBKQRNB
RKBBRQNN
RKQNBBNR
NRKQBBNR
BRKBQNRN
NBRQBKRN
RKNQBBNR
NRK...

result:

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

Test #4:

score: 0
Accepted
time: 45ms
memory: 3892kb

input:

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

output:

NRKQBBNR
BRKBQNRN
BRKRNBQN
QRKRBBNN
NRKQBBNR
BRKBQNRN
BRKRNBQN
NRKRBBQN
NRKQBBNR
RQKNBRNB
NRKBNQBR
NRKRBBNQ
NRKQBBNR
RNBKQBNR
NBRNBQKR
NNBRKBRQ
QRKRBNNB
NRKQBBNR
BRKBQNRN
NBQRBKRN
NRKRBQNB
NRKQBBNR
RNBKQBNR
NRNBBKRQ
QRNKRNBB
NRKRBNQB
NRKQBBNR
RBNQBKNR
BRNKRBQN
RNNKBBRQ
QRKRNBBN
NRKQBBNR
RNBKQBNR
BRN...

result:

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

Test #5:

score: 0
Accepted
time: 45ms
memory: 3884kb

input:

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

output:

NRKQBBNR
RKQBNNBR
RQBNNKRB
RQNBKRBN
RBBKQNRN
RQNKRBBN
NRKQBBNR
RKQBNNBR
BBRNQNKR
RKNBBQNR
RNQKRBBN
NRKQBBNR
RKQBNNBR
RQBNNKRB
NQRNKRBB
QNBRNBKR
RNNKRBBQ
NRKQBBNR
BNRNQKRB
QBRNKRBN
RBBKQNRN
RQNKRNBB
NRKQBBNR
BNRNQKRB
QBBRKNRN
NNBRKRQB
RNQKRNBB
NRKQBBNR
BNRNQKRB
QBBRKNRN
QNRKRNBB
RNNKRQBB
NRKQBBNR
RKQ...

result:

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

Test #6:

score: 0
Accepted
time: 49ms
memory: 3892kb

input:

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

output:

NRKQBBNR
BRNBQNKR
RQNKBBRN
RNQNBKRB
RBBNKNRQ
QRBKNBRN
NRKQBBNR
RBNQBKNR
BRNKRBQN
NNBRQBKR
NRBKQBRN
NRKQBBNR
RBNQBKNR
BRNKRBQN
RNNKBBRQ
NRBKNBRQ
NRKQBBNR
RKQBNNBR
RQBNNKRB
RKNRBQNB
QBBNRKNR
QRBKNNRB
NRKQBBNR
BRNBQNKR
RBBNQNKR
RQKNNBBR
NRBKQNRB
NRKQBBNR
BRNBQNKR
RQNKBBRN
RNKNQBBR
NRBKNQRB
NRKQBBNR
RBN...

result:

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

Test #7:

score: 0
Accepted
time: 47ms
memory: 3900kb

input:

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

output:

NRKQBBNR
BRNBQNKR
NBRKBQRN
RKBNQBRN
RBBKNQRN
RBBQKRNN
NRKQBBNR
BNRNQKRB
QBRNKRBN
QNRBNKBR
RBBNKRQN
NRKQBBNR
RKQBNNBR
BRNNKRQB
NBBRKRNQ
QBBNNRKR
RBBNKRNQ
NRKQBBNR
BNRNQKRB
QBRNKRBN
RBBKNQNR
RBQNKRBN
NRKQBBNR
RKQBNNBR
RQBNNKRB
NQRNKRBB
RBBNKQRN
RBNQKRBN
NRKQBBNR
BNRNQKRB
QBRNKRBN
QNRBNKBR
RBNNKRBQ
NRK...

result:

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

Test #8:

score: 0
Accepted
time: 45ms
memory: 3932kb

input:

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

output:

NRKQBBNR
BRNBQNKR
QRKBBNRN
QRNBNKBR
QRNBKNBR
NRKQBBNR
RBNQBKNR
BRKBQNRN
NQBBRNKR
NRQBKNBR
NRKQBBNR
RBNQBKNR
BNRNQBKR
QRBBNNKR
NRNBKQBR
NRKQBBNR
RBNQBKNR
BNRNQBKR
BRKNNBQR
QRNNKBBR
NRKQBBNR
RNBKQBNR
BRNKNBRQ
RBNNBKQR
NRQNKBBR
NRKQBBNR
BRKBQNRN
RQNBBKNR
QRBNNKRB
NRNQKBBR
NRKQBBNR
BRNBQNKR
RQNKBBRN
RBN...

result:

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

Test #9:

score: 0
Accepted
time: 42ms
memory: 3936kb

input:

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

output:

NRKQBBNR
BRNBQNKR
NBBRNKQR
RBNQKNBR
RBBNNQKR
QBBRKNNR
NRKQBBNR
RBNQBKNR
RNKRBBQN
NBBRNQKR
NBBRKQNR
NRKQBBNR
BRNBQNKR
NBBRNKQR
QRKRBNNB
NBBRKNQR
NRKQBBNR
RKQBNNBR
BBRNQNKR
RBKNQRBN
RBBNKQNR
QBNRKNBR
NRKQBBNR
BRNBQNKR
NBBRNKQR
RBNQKNBR
RBBKNNQR
NBQRKNBR
NRKQBBNR
BRNBQNKR
NBBRNKQR
RBNQKNBR
RBBKNNQR
NBN...

result:

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

Test #10:

score: 0
Accepted
time: 49ms
memory: 3892kb

input:

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

output:

NRKQBBNR
RBNQBKNR
RKNBBNRQ
BBRQNKNR
NRKQBBNR
BRNBQNKR
RBBNQNKR
RNBBKNRQ
QRKRNBBN
BBRNQKNR
NRKQBBNR
RKQBNNBR
RQBNNKRB
RBBKQRNN
QRKBBRNN
BBRNNKQR
NRKQBBNR
BRNBQNKR
RBBNQNKR
BNQBRKNR
QRBNNKRB
BQRBNKNR
NRKQBBNR
BRNBQNKR
QNNRBBKR
RNBBQNKR
BNRBQKNR
NRKQBBNR
RKQBNNBR
BBRNQNKR
RBKNQRBN
QRKNRNBB
BNRBNKQR
NRK...

result:

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

Test #11:

score: 0
Accepted
time: 49ms
memory: 3892kb

input:

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

output:

NRKQBBNR
BRNBQNKR
QRKBBNRN
RQNBBNKR
NRKQBBNR
BRNBQNKR
QNNRBBKR
QBRKBNRN
RNQBBNKR
NRKQBBNR
BRNBQNKR
QNNRBBKR
NNRKBRQB
RNNBBQKR
NRKQBBNR
RBNQBKNR
RKNNBBRQ
RQNNBBKR
NRKQBBNR
RBNQBKNR
RNKRBBQN
RQKBNRBN
RNQNBBKR
NRKQBBNR
RNBKQBNR
NRBKQRNB
NRKBQRBN
RNNQBBKR
NRKQBBNR
BRNBQNKR
NRKRNQBB
BRQBNNKR
NRKQBBNR
BRN...

result:

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

Extra Test:

score: 0
Extra Test Passed