QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#172991#7179. Fischer's Chess Guessing Gameucup-team014#AC ✓52ms10240kbC++143.9kb2023-09-09 21:32:392023-09-09 21:32:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 26ms
memory: 10172kb

input:

GAME 1
1
0
1
6
8
END

output:

BRNBNKRQ
NRBNQBKR
RNNQKRBB
RKRBBNQN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 39ms
memory: 10184kb

input:

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

output:

BRNBNKRQ
NRBNQBKR
RNNQKRBB
RKRBBNQN
RKRBBQNN
BRNBNKRQ
NRBNQBKR
RNNQKRBB
RKRBBNQN
BRNBNKRQ
RQNKNBBR
NRKQBBRN
RBBNKNRQ
RKRBBNNQ
BRNBNKRQ
NRBNQBKR
RKBRNNQB
RKQBBNNR
RBNKBNQR
RKRBQNBN
BRNBNKRQ
RQNKNBBR
NRNQBBKR
RBKNNRBQ
RBBKNQRN
RKRBNQBN
BRNBNKRQ
BRQKNBNR
QNBRNKRB
BBRNKNRQ
RKNNBBRQ
RKRBNNBQ
BRNBNKRQ
NBR...

result:

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

Test #3:

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

input:

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

output:

BRNBNKRQ
NRBNQBKR
RKBRNNQB
RKQBBNNR
BRNBNKRQ
RQNKNBBR
NRNQBBKR
RKNRBBNQ
RKNBBQNR
BRNBNKRQ
RQNKNBBR
NRNQBBKR
RKNRBBNQ
RKNBBNQR
BRNBNKRQ
RQNKNBBR
RNKBNQBR
RNKRNBBQ
RKQBNNBR
BRNBNKRQ
RQNKNBBR
RNKBNQBR
RKNBQNBR
BRNBNKRQ
BRQKNBNR
QBNRNKBR
RKNRNBBQ
RBNKNRBQ
RKNBNQBR
BRNBNKRQ
NBRQKNBR
RNKRBNQB
RNBKQBNR
RKQ...

result:

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

Test #4:

score: 0
Accepted
time: 52ms
memory: 10156kb

input:

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

output:

BRNBNKRQ
NRBNQBKR
RNBQKBRN
RNQBBNKR
NNRKRBBQ
QRKRBBNN
BRNBNKRQ
NRBNQBKR
RNNQBBKR
BBQNRNKR
NRKRBBQN
BRNBNKRQ
RQNKNBBR
NRKQBBRN
NRKRBBNQ
BRNBNKRQ
NRBNQBKR
RKBRNNQB
RKQBBNNR
RQKNBNRB
QRKRBNNB
BRNBNKRQ
NRBNQBKR
RNBQKBRN
NBRKNQBR
QBNRBNKR
NRKRBQNB
BRNBNKRQ
NRBNQBKR
RNBQKBRN
NBRKNQBR
NRKRBNQB
BRNBNKRQ
RQN...

result:

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

Test #5:

score: 0
Accepted
time: 43ms
memory: 10184kb

input:

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

output:

BRNBNKRQ
NRBNQBKR
RKBRNNQB
RNKBBQNR
RBNKQRBN
RQNKRBBN
BRNBNKRQ
NBRQKNBR
RNKRBNQB
RNBKQBNR
RKQNBBNR
RNQKRBBN
BRNBNKRQ
RQNKNBBR
RNNKRBBQ
BRNBNKRQ
NRBNQBKR
RNNQKRBB
RNKQBNRB
RQNKRNBB
BRNBNKRQ
NBRQKNBR
RNKNQBBR
QNBRKBNR
RNQKRNBB
BRNBNKRQ
NRBNQBKR
RNNQKRBB
RKNQRNBB
RNNKRQBB
BRNBNKRQ
NBRQKNBR
RNKRBNQB
QNB...

result:

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

Test #6:

score: 0
Accepted
time: 32ms
memory: 10172kb

input:

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

output:

BRNBNKRQ
BRQKNBNR
BBRKNRNQ
BNQBRKNR
QRBKNBRN
BRNBNKRQ
RQNKNBBR
NBBRNKQR
NRKQNRBB
NRBKRBNQ
NRBKQBRN
BRNBNKRQ
NBBRNKRQ
NRBKNBRQ
BRNBNKRQ
BRQKNBNR
RQBBNKNR
NRBKNQRB
QRBKNNRB
BRNBNKRQ
RQNKNBBR
NRKQBBRN
NNBRKBRQ
NBRKBNRQ
NRBKQNRB
BRNBNKRQ
BRQKNBNR
RQBBNKNR
NRBKNQRB
BRNBNKRQ
BRQKNBNR
RQBBNKNR
NRNKRBBQ
BRN...

result:

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

Test #7:

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

input:

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

output:

BRNBNKRQ
NBRQKNBR
NBQNBRKR
NQBRKBNR
RBBKQNNR
RBBQKRNN
BRNBNKRQ
NBRQKNBR
RNKNQBBR
RKRNBNQB
RBBNKRQN
BRNBNKRQ
NRBNQBKR
RNBQKBRN
QNNRKBBR
RBBNKRNQ
BRNBNKRQ
NBRQKNBR
NBQNBRKR
RBBNQNKR
RBQNKRBN
BRNBNKRQ
NRBNQBKR
RNNQKRBB
QNNRKRBB
RNKQNRBB
RBNQKRBN
BRNBNKRQ
RQNKNBBR
NRNQBBKR
RKBBNNQR
RBNNKRBQ
BRNBNKRQ
NRB...

result:

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

Test #8:

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

input:

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

output:

BRNBNKRQ
BRQKNBNR
QBNRNKBR
RKNRNBBQ
NQRBNKBR
QRNBKNBR
BRNBNKRQ
RQNKNBBR
NBBRNKQR
NRKQNRBB
NRQBKNBR
BRNBNKRQ
BRQKNBNR
QBNRNKBR
BBNRKRNQ
NRNBKQBR
BRNBNKRQ
RQNKNBBR
RNKBNQBR
RBNKRNBQ
NRNQKBBR
QRNNKBBR
BRNBNKRQ
NRBNQBKR
NRBQKBNR
NRQNKBBR
BRNBNKRQ
RQNKNBBR
RNKBNQBR
RBNKRNBQ
NRNQKBBR
BRNBNKRQ
NRBNQBKR
RNN...

result:

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

Test #9:

score: 0
Accepted
time: 31ms
memory: 10108kb

input:

GAME 1
0
4
5
3
8
GAME 2
0
4
4
5
8
GAME 3
0
5
5
8
GAME 4
1
1
2
5
8
GAME 5
0
6
8
GAME 6
1
2
1
4
3
8
GAME 7
0
2
3
8
GAME 8
0
3
2
8
GAME 9
0
3
2
6
8
GAME 10
1
2
3
8
GAME 11
1
3
3
3
3
8
GAME 12
0
4
2
8
GAME 13
3
1
4
2
8
G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BKR
RNBQKBRN
NBRKNQBR
NBQ...

result:

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

Test #11:

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

input:

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

output:

BRNBNKRQ
RQNKNBBR
RNKBNQBR
RKRNNBBQ
RQNBBNKR
BRNBNKRQ
NRBNQBKR
RNBQKBRN
RNQBBNKR
BRNBNKRQ
RQNKNBBR
NRNQBBKR
RNNBBQKR
BRNBNKRQ
NRBNQBKR
RBBNNQKR
NNBBRQKR
RQNNBBKR
BRNBNKRQ
NBRQKNBR
RNKRBNQB
RNQNBBKR
BRNBNKRQ
NRBNQBKR
RNNQBBKR
BRNBNKRQ
NBBRNKRQ
BRKBNNQR
BRQBNNKR
BRNBNKRQ
NBBRNKRQ
BRNBQNKR
BRNBNKRQ
BBN...

result:

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

Extra Test:

score: 0
Extra Test Passed