QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#171248#7179. Fischer's Chess Guessing Gameucup-team1876#AC ✓753ms7256kbC++203.0kb2023-09-09 16:40:542023-09-09 16:40:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 11ms
memory: 7240kb

input:

GAME 1
2
3
1
1
1
8
END

output:

RQNNBBKR
RKQBNNBR
NRNBQKBR
RNQNKRBB
RQNNKBBR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 714ms
memory: 7064kb

input:

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

output:

RQNNBBKR
RKQBNNBR
NRNBQKBR
RNQNKRBB
RQNNKBBR
RKRBBQNN
RQNNBBKR
RKQBNNBR
RKNRQNBB
RQBKNBRN
RKRBBNQN
RQNNBBKR
RKQBNNBR
RKNRQNBB
RQBKNBRN
RKRBBNNQ
RQNNBBKR
RNBBQKRN
BNRNQKRB
QNRKBBRN
RQNNKRBB
RKRBQNBN
RQNNBBKR
RNBBQKRN
RNBKNRQB
QNNRBKRB
RQNNKRBB
RKRBNQBN
RQNNBBKR
RNBBQKRN
QRBBKNNR
RBBKNQNR
RQNNKBBR
RKR...

result:

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

Test #3:

score: 0
Accepted
time: 692ms
memory: 7192kb

input:

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

output:

RQNNBBKR
RKQNBNRB
RKNBBRNQ
RKQBBNNR
RQNNBBKR
BNQRNBKR
NBRKBQNR
RQKBBRNN
RKNBBQNR
RQNNBBKR
BNQRNBKR
NBRKBQNR
RQNKNRBB
RKNBBNQR
RQNNBBKR
RKQBNNBR
RQNNBBKR
RKQNBNRB
RKRNQBBN
RQNKRNBB
RKNBQNBR
RQNNBBKR
RKQNBNRB
RBBNQNKR
RKNRNBBQ
RKNBNQBR
RQNNBBKR
NNBRQBKR
RNQKNBBR
RKQNBBNR
RQNNBBKR
NNBRQBKR
RNQKNBBR
RQN...

result:

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

Test #4:

score: 0
Accepted
time: 728ms
memory: 7248kb

input:

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

output:

RQNNBBKR
RKQBNNBR
NBNRBKRQ
BRNQKBRN
RQNNBKRB
QRKRBBNN
RQNNBBKR
RKQBNNBR
NBNRBKRQ
NRKRQBBN
NRKRBBQN
RQNNBBKR
RKQBNNBR
NBNRBKRQ
RNNKBQRB
NRKRBBNQ
RQNNBBKR
RNBBQKRN
NRKNRQBB
NBRKNQBR
RQNNKRBB
QRKRBNNB
RQNNBBKR
RNBBQKRN
NRKNRQBB
RQNNKRBB
NRKRBQNB
RQNNBBKR
RNBBQKRN
NRKNRQBB
RBNKRNBQ
NRKRBNQB
RQNNBBKR
RNB...

result:

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

Test #5:

score: 0
Accepted
time: 676ms
memory: 7136kb

input:

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

output:

RQNNBBKR
BNQRNBKR
NBRKBQNR
RQNNKRBB
RQNKRBBN
RQNNBBKR
RKQBNNBR
NRNBQKBR
RNQNKRBB
RQNNKRBB
RNQKRBBN
RQNNBBKR
RKQNBNRB
NBRNBKQR
RQKRBBNN
RNNKRBBQ
RQNNBBKR
RKQNBNRB
RKRNQBBN
RQNKNRBB
RQNKRNBB
RQNNBBKR
RNBBQKRN
QRBBKNNR
BRQNNKRB
RQNNKRBB
RNQKRNBB
RQNNBBKR
RKQBNNBR
RNKBQRBN
RQKNBNRB
RQNNKRBB
RNNKRQBB
RQN...

result:

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

Test #6:

score: 0
Accepted
time: 706ms
memory: 7196kb

input:

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

output:

RQNNBBKR
RNBBQKRN
RNBKNRQB
QRBBNKRN
RQNNKRBB
QRBKNBRN
RQNNBBKR
RNBBQKRN
BNRNQKRB
QNRKBBRN
NRBKQBRN
RQNNBBKR
RNBBQKRN
QRBBKNNR
RBBKNQNR
RQNNKRBB
NRBKNBRQ
RQNNBBKR
BNRKQRNB
BRKQNNRB
RQNNKRBB
QRBKNNRB
RQNNBBKR
BNRKQRNB
NNRBKRBQ
RKBRQNNB
NRBKQNRB
RQNNBBKR
BNRKQRNB
BRKQNNRB
NRKRNQBB
NRBKNQRB
RQNNBBKR
RKQ...

result:

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

Test #7:

score: 0
Accepted
time: 701ms
memory: 7196kb

input:

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

output:

RQNNBBKR
RNBBQKRN
RNBKNRQB
QRBBNKRN
RQNNKRBB
RBBQKRNN
RQNNBBKR
RKQBNNBR
RBBNKQNR
RQKNBNRB
RBBNKRQN
RQNNBBKR
RKQBNNBR
RBBNKQNR
RQNNKRBB
RBBNKRNQ
RQNNBBKR
RKQBNNBR
NRNBQKBR
RNQNKRBB
RBQNKRBN
RQNNBBKR
RKQBNNBR
RNKBQRBN
RKRNNQBB
RBNQKRBN
RQNNBBKR
RKQNBNRB
RBBNQNKR
QRBBNNKR
RBNNKRBQ
RQNNBBKR
RKQBNNBR
RNK...

result:

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

Test #8:

score: 0
Accepted
time: 753ms
memory: 7248kb

input:

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

output:

RQNNBBKR
RKQBNNBR
RKNRQNBB
RQBKNBRN
QRNBKNBR
RQNNBBKR
RNBBQKRN
BRNNKRQB
BRKQRNNB
RQNNKBBR
NRQBKNBR
RQNNBBKR
RKQBNNBR
NRNBQKBR
NRNBKQBR
RQNNBBKR
BNQRNBKR
NBBNQRKR
QRKNBNRB
QRNNKBBR
RQNNBBKR
RKQNBNRB
RBBNQNKR
RKNRNBBQ
RQNNKBBR
NRQNKBBR
RQNNBBKR
RKQNBNRB
BNNBRQKR
RNNKQRBB
NRNQKBBR
RQNNBBKR
BNRKQRNB
QRB...

result:

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

Test #9:

score: 0
Accepted
time: 730ms
memory: 7236kb

input:

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

output:

RQNNBBKR
RNBBQKRN
BRNNKRQB
NRKQRBBN
RQNKRNBB
QBBRKNNR
RQNNBBKR
RNBBQKRN
BRNNKRQB
NRKQRBBN
RQNKNRBB
NBBRKQNR
RQNNBBKR
RNBBQKRN
BRNNKRQB
BRKQRNNB
NBBRKNQR
RQNNBBKR
RKQBNNBR
NRNBQKBR
BBRQNKNR
RQNNKRBB
QBNRKNBR
RQNNBBKR
RNBBQKRN
NRKNRQBB
RBNQKNBR
NBQRKNBR
RQNNBBKR
RKQBNNBR
RNKBQRBN
NBNRKQBR
RQNNBBKR
RKQ...

result:

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

Test #10:

score: 0
Accepted
time: 720ms
memory: 7256kb

input:

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

output:

RQNNBBKR
RNBBQKRN
BRNNKRQB
NRKQRBBN
RQNKNRBB
BBRQNKNR
RQNNBBKR
RKQBNNBR
RBBNKQNR
RQBNKBRN
BBRNQKNR
RQNNBBKR
RKQBNNBR
RNKBQRBN
BBRNKNQR
RQNNKRBB
BBRNNKQR
RQNNBBKR
RKQBNNBR
NRNBQKBR
BBRQNKNR
BQRBNKNR
RQNNBBKR
RNBBQKRN
BNRNQKRB
RNQKRBBN
BNRBQKNR
RQNNBBKR
RNBBQKRN
RNBKNRQB
QRBBNKRN
RQNNKRBB
BNRBNKQR
RQN...

result:

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

Test #11:

score: 0
Accepted
time: 660ms
memory: 7244kb

input:

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

output:

RQNNBBKR
RNQKBRNB
RQNBBNKR
RQNNBBKR
BNQRNBKR
RNQKRBBN
RQNNKBBR
RNQBBNKR
RQNNBBKR
NNBRQBKR
RNNKBBQR
RNNBBQKR
RQNNBBKR
RQNNBBKR
RNQKBRNB
RQNNKRBB
RNQNBBKR
RQNNBBKR
RNQKBRNB
RQNNKRBB
RNNQBBKR
RQNNBBKR
RKQBNNBR
RNKNRQBB
BRQBNNKR
RQNNBBKR
RKQNBNRB
NBRNBKQR
RNBQKBNR
BRNBQNKR
RQNNBBKR
RKQNBNRB
BNNBRQKR
RQN...

result:

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

Extra Test:

score: 0
Extra Test Passed