QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#173699#7179. Fischer's Chess Guessing Gameucup-team1984#AC ✓205ms3780kbC++142.0kb2023-09-10 01:12:322023-09-10 01:12:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3756kb

input:

GAME 1
3
1
4
1
1
8
END

output:

RQKNBBRN
NRNKBBQR
RKBRNQNB
RQNKNBBR
RQNNKRBB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 192ms
memory: 3780kb

input:

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

output:

RQKNBBRN
NRNKBBQR
RKBRNQNB
RQNKNBBR
RQNNKRBB
RKRBBQNN
RQKNBBRN
NRNKBBQR
RNQKBNRB
RQNNKBBR
RQNNKRBB
RKRBBNQN
RQKNBBRN
NRKQBBNR
RNBQKBNR
RQNKBRNB
RQNNKRBB
RKRBBNNQ
RQKNBBRN
NRKQBBNR
BNRNQKRB
RQKNRNBB
RQNNKRBB
RKRBQNBN
RQKNBBRN
NRKQBBNR
BNRNQKRB
RNNKQRBB
RQNNKRBB
RKRBNQBN
RQKNBBRN
RQBKNNRB
RKNBNQBR
RQN...

result:

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

Test #3:

score: 0
Accepted
time: 125ms
memory: 3692kb

input:

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

output:

RQKNBBRN
NRKQBBNR
RBNNBKQR
RNNQKBBR
RQNNKRBB
RKQBBNNR
RQKNBBRN
NRKQBBNR
RBNNBKQR
RNKBBRNQ
RQNNKRBB
RKNBBQNR
RQKNBBRN
NRKQBBNR
RNBQKBNR
RQNKBRNB
RQNNKRBB
RKNBBNQR
RQKNBBRN
RQBKNNRB
RKNBNQBR
RQNNKRBB
RQNNKRBB
RKQBNNBR
RQKNBBRN
RQBKNNRB
RQNBNKBR
RQNKRNBB
RQNNKRBB
RKNBQNBR
RQKNBBRN
RQBKNNRB
RQNBNKBR
RNN...

result:

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

Test #4:

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

input:

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

output:

RQKNBBRN
RQBNKBNR
RNNKBQRB
RQNKRBBN
RQNNKRBB
QRKRBBNN
RQKNBBRN
RQBNKBNR
RQNBBKRN
RQBNKNRB
RQNNKRBB
NRKRBBQN
RQKNBBRN
NRNKBBQR
RQNKBBNR
RQNKRNBB
RQNNKRBB
NRKRBBNQ
RQKNBBRN
NRKQBBNR
RQBNKBNR
RQNNKBBR
RQNNKRBB
QRKRBNNB
RQKNBBRN
NRKQBBNR
RQNNKBBR
RQNNBKRB
RQNNKRBB
NRKRBQNB
RQKNBBRN
NRKQBBNR
RQBNKBNR
RQN...

result:

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

Test #5:

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

input:

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

output:

RQKNBBRN
RQBNKBNR
RKBRQBNN
RQNKRBBN
RQKNBBRN
NRNKBBQR
RNQKBNRB
RQNBBNKR
RQNNKRBB
RNQKRBBN
RQKNBBRN
NRKQBBNR
RBBQKNNR
RQKRNBBN
RQNNKRBB
RNNKRBBQ
RQKNBBRN
NRKQBBNR
BNRNQKRB
RNNKQRBB
RQNNKRBB
RQNKRNBB
RQKNBBRN
RQBKNNRB
RKBRNBNQ
RNQKNRBB
RQNNKRBB
RNQKRNBB
RQKNBBRN
RQBKNNRB
RKNBNQBR
RQNKRNBB
RQNKRBBN
RNN...

result:

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

Test #6:

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

input:

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

output:

RQKNBBRN
NRNKBBQR
RNNQBKRB
RQNNKBBR
RQBNNKRB
QRBKNBRN
RQKNBBRN
NRNKBBQR
RQNKBBNR
RQNNKRBB
RQNNKRBB
NRBKQBRN
RQKNBBRN
NRKQBBNR
RBNNBKQR
RQNBKRBN
RQNNKRBB
NRBKNBRQ
RQKNBBRN
RQBKNNRB
RQNNKRBB
RQNNKRBB
RQNNKRBB
QRBKNNRB
RQKNBBRN
RQBKNNRB
RQBNNBKR
RQNKNRBB
RQNNKRBB
NRBKQNRB
RQKNBBRN
RQBKNNRB
RQBNNBKR
RQN...

result:

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

Test #7:

score: 0
Accepted
time: 164ms
memory: 3688kb

input:

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

output:

RQKNBBRN
NRKQBBNR
RNBQKBNR
RBQNKNBR
RQNNKRBB
RBBQKRNN
RQKNBBRN
NRNKBBQR
RKBRNQNB
RQNNKRBB
RQNNKRBB
RBBNKRQN
RQKNBBRN
NRKQBBNR
RBBQKNNR
RQNNBBKR
RQNNKRBB
RBBNKRNQ
RQKNBBRN
NRNKBBQR
RNKRQNBB
RQNNKRBB
RQNNKRBB
RBQNKRBN
RQKNBBRN
NRKQBBNR
RBBQKNNR
RQNBNKBR
RQNNKRBB
RBNQKRBN
RQKNBBRN
NRKQBBNR
BNRNQKRB
RNN...

result:

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

Test #8:

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

input:

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

output:

RQKNBBRN
BBQRNNKR
RNBBNKQR
NRNBBQKR
RQNNKRBB
QRNBKNBR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RQNKRNBB
RQNNKRBB
NRQBKNBR
RQKNBBRN
BBQRNNKR
BRQKNRNB
RQNNKRBB
RQNNKRBB
NRNBKQBR
RQKNBBRN
NRKQBBNR
RBNNBKQR
RNNQKBBR
RQNNKRBB
QRNNKBBR
RQKNBBRN
NRKQBBNR
RQBNKBNR
RQNNKRBB
RQNNKRBB
NRQNKBBR
RQKNBBRN
RQBKNNRB
RBQNKRBN
NNR...

result:

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

Test #9:

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

input:

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

output:

RQKNBBRN
BBQRNNKR
QRNBNKBR
RBNKNQBR
RQNNKRBB
QBBRKNNR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RBKNQNBR
RQNNKRBB
NBBRKQNR
RQKNBBRN
BBQRNNKR
QRNBNKBR
RKRQBNNB
RQNNKRBB
NBBRKNQR
RQKNBBRN
BBQRNNKR
QRNBNKBR
RQNBKRBN
RQNNKRBB
QBNRKNBR
RQKNBBRN
BBQRNNKR
RNQKNBBR
RQNKNRBB
RQNNKRBB
NBQRKNBR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RQN...

result:

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

Test #10:

score: 0
Accepted
time: 161ms
memory: 3704kb

input:

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

output:

RQKNBBRN
BBQRNNKR
QRNBNKBR
RBBNNKRQ
RQNNKRBB
BBRQNKNR
RQKNBBRN
RQBKNNRB
RBQNKRBN
NNRQKBBR
RQNNKRBB
BBRNQKNR
RQKNBBRN
RQBKNNRB
NBBRNQKR
RKBQNBNR
RQNNKBBR
BBRNNKQR
RQKNBBRN
RQBKNNRB
RQNBNKBR
RQNKRNBB
RQNNKRBB
BQRBNKNR
RQKNBBRN
BBQRNNKR
RNBBNKQR
NNBQRBKR
RQNNKRBB
BNRBQKNR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RQN...

result:

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

Test #11:

score: 0
Accepted
time: 165ms
memory: 3744kb

input:

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

output:

RQKNBBRN
NRNKBBQR
RNNQBKRB
RQNNKBBR
RQNKRNBB
RQNBBNKR
RQKNBBRN
NRKQBBNR
RNBQKBNR
RQKRNNBB
RQNNKRBB
RNQBBNKR
RQKNBBRN
NRKQBBNR
RNBQKBNR
RQKRNNBB
RQNNBKRB
RNNBBQKR
RQKNBBRN
RKNNBRQB
RQNNKBBR
RQNNKRBB
RQNNKRBB
RQNNBBKR
RQKNBBRN
RQBNKBNR
RQKNBRNB
RNNKBRQB
RQNNKRBB
RNQNBBKR
RQKNBBRN
NRNKBBQR
RQNKBBNR
RQN...

result:

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

Extra Test:

score: 0
Extra Test Passed