QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#171530#7179. Fischer's Chess Guessing Gameucup-team1608#AC ✓34ms4068kbC++173.6kb2023-09-09 17:09:322023-09-09 17:09:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

GAME 1
2
2
2
3
0
8
END

output:

BNRKQRNB
RBKQNRBN
RQBKNBNR
NBRNBQKR
BBNNQRKR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 27ms
memory: 4068kb

input:

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

output:

BNRKQRNB
RBKQNRBN
RQBKNBNR
NBRNBQKR
BBNNQRKR
RKRBBQNN
BNRKQRNB
RBKQNRBN
RNKBBNQR
BRNKNRQB
RKRBBNQN
BNRKQRNB
RBKQNRBN
BRNKRBNQ
BBQRKNRN
BQNRKBNR
RKRBBNNQ
BNRKQRNB
RBKQNRBN
RQBBKRNN
BNRKQBRN
BBNNQRKR
RKRBQNBN
BNRKQRNB
RBKQNRBN
RKNBRQBN
BBNNRKQR
RKRBNQBN
BNRKQRNB
RBKQNRBN
RKNQRNBB
BRNKRBQN
RKRBNNBQ
BNR...

result:

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

Test #3:

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

input:

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

output:

BNRKQRNB
RBKQNRBN
RKQBBNNR
BNRKQRNB
RBKQNRBN
RKQBBNNR
BBNQRKNR
RKNBBQNR
BNRKQRNB
RBKQNRBN
QRBBKNRN
BBNQRNKR
RKNBBNQR
BNRKQRNB
RBKQNRBN
RKNBNQBR
BBNNRKQR
RKQBNNBR
BNRKQRNB
RBKQNRBN
RNKBBNQR
NRNBKQBR
RKNBQNBR
BNRKQRNB
RBKQNRBN
RKNBNQBR
BNRKQRNB
RBKQNRBN
RKQBBNNR
BBNQRKNR
RKQNBBNR
BNRKQRNB
RBKQNRBN
RNK...

result:

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

Test #4:

score: 0
Accepted
time: 24ms
memory: 3808kb

input:

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

output:

BNRKQRNB
RBKQNRBN
RNKBBNQR
BBQNRNKR
BBNRNKRQ
QRKRBBNN
BNRKQRNB
RBKQNRBN
RKQBBNRN
RBNNBKQR
BBNNQRKR
NRKRBBQN
BNRKQRNB
RBKQNRBN
RKQBBNNR
RBBNKQNR
BBNNRKQR
NRKRBBNQ
BNRKQRNB
RBKQNRBN
BRNKRBNQ
BBQRKNRN
BBRKNQRN
QRKRBNNB
BNRKQRNB
RBKQNRBN
BRNKRBNQ
BBQRKNRN
BQNRKBNR
NRKRBQNB
BNRKQRNB
RBKQNRBN
RKQBBNNR
RBB...

result:

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

Test #5:

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

input:

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

output:

BNRKQRNB
RBKQNRBN
RKNQRNBB
BRNKRBQN
RQNKRBBN
BNRKQRNB
RBKQNRBN
RQBBKRNN
BBRNQKRN
BBNNQRKR
RNQKRBBN
BNRKQRNB
RBKQNRBN
RQBKNBNR
RNQKRNBB
RNNKRBBQ
BNRKQRNB
RBKQNRBN
RQBKNBNR
RNQKRNBB
RQNKRNBB
BNRKQRNB
RBKQNRBN
RNQNKRBB
NNRBKQBR
RNQKRNBB
BNRKQRNB
RBKQNRBN
RNQNKRBB
BBNRKRNQ
RNNKRQBB
BNRKQRNB
RBKQNRBN
BBR...

result:

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

Test #6:

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

input:

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

output:

BNRKQRNB
RBKQNRBN
RNKBBNQR
BBNRNKRQ
QRBKNBRN
BNRKQRNB
RBKQNRBN
BRNKRBNQ
BBNQRKNR
NRBKQBRN
BNRKQRNB
RBKQNRBN
RKQBBNNR
BRNKRBQN
BBNNQRKR
NRBKNBRQ
BNRKQRNB
RBKQNRBN
BRNKRBNQ
BBQRKNRN
BBRKNQRN
QRBKNNRB
BNRKQRNB
RBKQNRBN
BNRNKBRQ
BBNQNRKR
NRBKQNRB
BNRKQRNB
RBKQNRBN
BRNKRBNQ
BBQRKNRN
BQNRKBNR
NRBKNQRB
BNR...

result:

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

Test #7:

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

input:

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

output:

BNRKQRNB
RBKQNRBN
NRKRNBBQ
RBBQKRNN
BNRKQRNB
RBKQNRBN
RKNBRQBN
NBRNKRBQ
BBNNQRKR
RBBNKRQN
BNRKQRNB
RBKQNRBN
RQBBKRNN
NBBRKNQR
RBBNKRNQ
BNRKQRNB
RBKQNRBN
QNRKNBBR
BBNNQRKR
RBQNKRBN
BNRKQRNB
RBKQNRBN
BBNNRKRQ
RBNQKRBN
BNRKQRNB
RBKQNRBN
RKNBRQBN
BBNRKNQR
RBNNKRBQ
BNRKQRNB
RBKQNRBN
RQBBKRNN
BNRKQRNB
RBK...

result:

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

Test #8:

score: 0
Accepted
time: 26ms
memory: 3840kb

input:

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

output:

BNRKQRNB
RBKQNRBN
QRBBKNRN
BBNNRKRQ
QRNBKNBR
BNRKQRNB
RBKQNRBN
QRBBKNRN
BRQBNKRN
BBNNQRKR
NRQBKNBR
BNRKQRNB
RBKQNRBN
QRBBKNRN
NRBBNQKR
BBNNQRKR
NRNBKQBR
BNRKQRNB
RBKQNRBN
QRBBKNRN
NRBBNQKR
QRNNKBBR
BNRKQRNB
RBKQNRBN
QRBBKNRN
BBNQRNKR
NRQNKBBR
BNRKQRNB
RBKQNRBN
RKQBBNRN
BBNRNQKR
NRNQKBBR
BNRKQRNB
RBK...

result:

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

Test #9:

score: 0
Accepted
time: 33ms
memory: 3848kb

input:

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

output:

BNRKQRNB
RBKQNRBN
RKQBBNNR
QBNNBRKR
BBNNRKRQ
QBBRKNNR
BNRKQRNB
RBKQNRBN
RKQBBNNR
RBBNKQNR
NBBRKQNR
BNRKQRNB
RBKQNRBN
QRBBKNRN
NRBBNQKR
BBNNQRKR
NBBRKNQR
BNRKQRNB
RBKQNRBN
RKQBBNRN
BBNRKNRQ
QBNRKNBR
BNRKQRNB
RBKQNRBN
RKQBBNRN
RBNNBKQR
BBNNQRKR
NBQRKNBR
BNRKQRNB
RBKQNRBN
RKQBBNRN
BBNRNQKR
NBNRKQBR
BNR...

result:

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

Test #10:

score: 0
Accepted
time: 27ms
memory: 4012kb

input:

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

output:

BNRKQRNB
RBKQNRBN
RNKNBRQB
BBNNQRKR
BBRQNKNR
BNRKQRNB
RBKQNRBN
NNRKRBBQ
BBNNQRKR
BBRNQKNR
BNRKQRNB
RBKQNRBN
RQBKNBNR
NBRNBQKR
BBRNNKQR
BNRKQRNB
RBKQNRBN
RNQKBNRB
BBQRNKNR
BQRBNKNR
BNRKQRNB
RBKQNRBN
BNRKRNQB
BNRBQKNR
BNRKQRNB
RBKQNRBN
RNQKBNRB
NNRBBQKR
BNRBNKQR
BNRKQRNB
RBKQNRBN
BRNKRBNQ
RNQNBBKR
BBN...

result:

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

Test #11:

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

input:

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

output:

BNRKQRNB
RBKQNRBN
QRBBKNRN
BBNQRNKR
RQNBBNKR
BNRKQRNB
RBKQNRBN
RKQBBNNR
BBNQRKNR
RNQBBNKR
BNRKQRNB
RBKQNRBN
RKQBBNNR
RKNRBBQN
BBNNRQKR
RNNBBQKR
BNRKQRNB
RBKQNRBN
QRBBKNRN
BBNRKNQR
RQNNBBKR
BNRKQRNB
RBKQNRBN
RKQBBNNR
RKNRBBQN
BBNNRQKR
RNQNBBKR
BNRKQRNB
RBKQNRBN
RNKBBNQR
NRNBKQBR
BBNNQRKR
RNNQBBKR
BNR...

result:

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

Extra Test:

score: 0
Extra Test Passed