QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#183100#7179. Fischer's Chess Guessing Gameucup-team1704#AC ✓219ms7480kbC++173.1kb2023-09-18 23:23:592023-09-18 23:24:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

GAME 1
2
4
1
3
8
END

output:

NRNBBKQR
RNQBBKRN
BBNRQKRN
BNRBNQKR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 205ms
memory: 7396kb

input:

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

output:

NRNBBKQR
RNQBBKRN
BBNRQKRN
BNRBNQKR
RKRBBQNN
NRNBBKQR
RNKBBQRN
RBNQBNKR
BBNNRQKR
RKRBBNQN
NRNBBKQR
RNQBBKRN
RQBBKNNR
RBQNNKBR
NRBBNQKR
RKRBBNNQ
NRNBBKQR
QRKNBBNR
QBRKNRBN
RBNQBKRN
NBBRQNKR
RKRBQNBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
BNRBNQKR
NRBBNQKR
RKRBNQBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
RBNQBKRN
BRNBNQKR
RKR...

result:

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

Test #3:

score: 0
Accepted
time: 205ms
memory: 7372kb

input:

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

output:

NRNBBKQR
RNKBBQRN
RBNNBKRQ
BNRBNQKR
NRBBNQKR
RKQBBNNR
NRNBBKQR
BNRBNKQR
NRBBKQRN
NBBNRQKR
RKNBBQNR
NRNBBKQR
BQNBRNKR
BRQBNNKR
RKNBBNQR
NRNBBKQR
RNQBBKRN
RQBBKNNR
RBQNNKBR
RKQBNNBR
NRNBBKQR
RNKBBQRN
BNNRQBKR
BNRBNQKR
NBBNRQKR
RKNBQNBR
NRNBBKQR
RNKBBQRN
RBNNBKRQ
BNRBNQKR
NRBBNQKR
RKNBNQBR
NRNBBKQR
RNQ...

result:

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

Test #4:

score: 0
Accepted
time: 196ms
memory: 7428kb

input:

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

output:

NRNBBKQR
RNQBBKRN
RNBBKQNR
RBBNNKRQ
NRBBNQKR
QRKRBBNN
NRNBBKQR
BNRBNKQR
BNNRQBKR
NBQRBKRN
NRKRBBQN
NRNBBKQR
RNKBBQRN
BNNRQBKR
BNRBNQKR
NRBBNQKR
NRKRBBNQ
NRNBBKQR
RNQBBKRN
BRNQKBRN
BBNNRQKR
NRBBNQKR
QRKRBNNB
NRNBBKQR
RNKBBQRN
RBNNBKRQ
BNRBNQKR
NRKRBQNB
NRNBBKQR
BNRBNKQR
BNNRQBKR
NRBBNQKR
NRKRBNQB
NRN...

result:

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

Test #5:

score: 0
Accepted
time: 219ms
memory: 7388kb

input:

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

output:

NRNBBKQR
QRKNBBNR
NQNRKRBB
BQRBNKRN
BNRBNQKR
RQNKRBBN
NRNBBKQR
BBRNKQRN
RNBQKBRN
NRQKRBBN
RNQKRBBN
NRNBBKQR
QRKNBBNR
NQNRKRBB
BNRBNKRQ
NBBNRQKR
RNNKRBBQ
NRNBBKQR
QRKNBBNR
QBRKNRBN
BNRBQKRN
NRBBNQKR
RQNKRNBB
NRNBBKQR
BBRNKQRN
RNBKRBNQ
BNQBRNKR
RNQKRNBB
NRNBBKQR
QRKNBBNR
QBRKNRBN
BNRBQKRN
NBBNRQKR
RNN...

result:

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

Test #6:

score: 0
Accepted
time: 203ms
memory: 7412kb

input:

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

output:

NRNBBKQR
QRKNBBNR
QNRNKBBR
RNBQNBKR
NRBBNQKR
QRBKNBRN
NRNBBKQR
RNQBBKRN
RNBBKQNR
RBBNNKRQ
NRBBNQKR
NRBKQBRN
NRNBBKQR
RNQBBKRN
BRNQKBRN
RBNQBNKR
NBBNRQKR
NRBKNBRQ
NRNBBKQR
QRKNBBNR
BBRQNNKR
RNBQNBKR
NRBBNQKR
QRBKNNRB
NRNBBKQR
RNQBBKRN
BRNQKBRN
BNRQNBKR
NBNQBRKR
NRBKQNRB
NRNBBKQR
RNQBBKRN
BRNQKBRN
BNR...

result:

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

Test #7:

score: 0
Accepted
time: 197ms
memory: 7480kb

input:

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

output:

NRNBBKQR
BBRNKQRN
BBRKNQNR
RNBNQKRB
RBBQKRNN
NRNBBKQR
QRKNBBNR
NQNRKRBB
BNRBNKRQ
NRBBNQKR
RBBNKRQN
NRNBBKQR
BBRNKQRN
BBRKNQNR
RNBNQKRB
RBBNKRNQ
NRNBBKQR
BBRNKQRN
BNRQNKRB
NRBBNQKR
RBQNKRBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
BNRBNQKR
NRBBNQKR
RBNQKRBN
NRNBBKQR
QRKNBBNR
NQNRKRBB
NBRNKRBQ
RBNNKRBQ
NRNBBKQR
QRK...

result:

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

Test #8:

score: 0
Accepted
time: 206ms
memory: 7440kb

input:

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

output:

NRNBBKQR
BNRBNKQR
NRBBKQRN
NRBBNQKR
QRNBKNBR
NRNBBKQR
BNRBNKQR
NRBBKQRN
BNRBNQKR
NRQBKNBR
NRNBBKQR
BQNBRNKR
BRNBNQKR
NRBBNQKR
NRNBKQBR
NRNBBKQR
RNKBBQRN
NRBKQRNB
BNNRQBKR
NRBBNQKR
QRNNKBBR
NRNBBKQR
RNKBBQRN
NRBKQRNB
NBBNRQKR
BNRBNQKR
NRQNKBBR
NRNBBKQR
BNRBNKQR
BNNRQBKR
NBBNQRKR
NRNQKBBR
NRNBBKQR
BBR...

result:

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

Test #9:

score: 0
Accepted
time: 184ms
memory: 7368kb

input:

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

output:

NRNBBKQR
QRKNBBNR
QNRNKBBR
NBBNRQKR
NRBBNQKR
QBBRKNNR
NRNBBKQR
RNQBBKRN
BBRNQNKR
RNBQNBKR
NRBBNQKR
NBBRKQNR
NRNBBKQR
RNKBBQRN
NRBKQRNB
NBBNRQKR
NRBBNQKR
NBBRKNQR
NRNBBKQR
RNQBBKRN
BBRNQNKR
NRBBNQKR
NNBRQBKR
QBNRKNBR
NRNBBKQR
RNQBBKRN
BRNQKBRN
BBNNRQKR
NRBBNQKR
NBQRKNBR
NRNBBKQR
RNKBBQRN
NQBBRNKR
BBN...

result:

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

Test #10:

score: 0
Accepted
time: 182ms
memory: 7404kb

input:

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

output:

NRNBBKQR
RNQBBKRN
BRNQKBRN
BNRQNBKR
NRBBNQKR
BBRQNKNR
NRNBBKQR
RNQBBKRN
BRNQKBRN
BBNNRQKR
NRBBNQKR
BBRNQKNR
NRNBBKQR
RNKBBQRN
NRBKQRNB
BBRNQNKR
BBRNNKQR
NRNBBKQR
RNKBBQRN
NQBBRNKR
BBRNQNKR
BNRBNQKR
BQRBNKNR
NRNBBKQR
RNKBBQRN
BNNRQBKR
NRNQBBKR
BNRBQKNR
NRNBBKQR
BNRBNKQR
NRNBBKQR
RNKBBQRN
NQBBRNKR
BBR...

result:

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

Test #11:

score: 0
Accepted
time: 201ms
memory: 7448kb

input:

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

output:

NRNBBKQR
BNRBNKQR
NRBBKQRN
BNNQRBKR
RQNBBNKR
NRNBBKQR
RNKBBQRN
RBNQBNKR
NRBBNQKR
RNQBBNKR
NRNBBKQR
BNRBNKQR
BRNBNQKR
NRBBNQKR
RNNBBQKR
NRNBBKQR
RNKBBQRN
BNNRQBKR
NRNQBBKR
RQNNBBKR
NRNBBKQR
RNQBBKRN
BBNRQKRN
NNBRQBKR
RNQNBBKR
NRNBBKQR
RNKBBQRN
RBNNBKRQ
NNBRQBKR
RNNQBBKR
NRNBBKQR
RNKBBQRN
NQBBRNKR
NNQ...

result:

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

Extra Test:

score: 0
Extra Test Passed