QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#165221#7179. Fischer's Chess Guessing Gameucup-team1005#AC ✓51ms7716kbC++203.3kb2023-09-05 16:45:282023-09-05 16:45:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 7444kb

input:

GAME 1
5
4
1
8
END

output:

RKQBBNNR
RKNQBBRN
BQRNKNRB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 40ms
memory: 7596kb

input:

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

output:

RKQBBNNR
RKNQBBRN
BQRNKNRB
RKRBBQNN
RKQBBNNR
RKNQBBRN
BQRNKNRB
RKRBBNQN
RKQBBNNR
BNNBRKQR
RKBBNQRN
RKRBBNNQ
RKQBBNNR
RKNQBBRN
RBNKBQNR
QRBKRNNB
RKRBQNBN
RKQBBNNR
BRQBNNKR
RKBBNQRN
QRKRNBBN
RKRBNQBN
RKQBBNNR
RKNQBBRN
RKQRNNBB
QRKRBBNN
RKRBNNBQ
RKQBBNNR
RKNQBBRN
QRKRBBNN
RKRQBBNN
RKQBBNNR
BRQBNNKR
RKB...

result:

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

Test #3:

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

input:

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

output:

RKQBBNNR
RKQBBNNR
BNNBRKQR
QRKRBBNN
RKNBBQNR
RKQBBNNR
BNNBRKQR
QRKRBBNN
RKNBBNQR
RKQBBNNR
BNNBRKQR
QRKRBBNN
RKQBNNBR
RKQBBNNR
RKNQBBRN
RQNBBNKR
RKNBQNBR
RKQBBNNR
RKNQBBRN
RBNKBQNR
QRKRBBNN
RKNBNQBR
RKQBBNNR
BNNBRKQR
RKBBNQRN
RKQNBBNR
RKQBBNNR
RKNQBBRN
RKNQBBNR
RKQBBNNR
RKNQBBRN
QRKBBRNN
RKNNBBQR
RKQ...

result:

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

Test #4:

score: 0
Accepted
time: 36ms
memory: 7596kb

input:

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

output:

RKQBBNNR
RQBNNBKR
RBNQKNBR
BRKRNBNQ
QRKRBBNN
RKQBBNNR
NRKQNBBR
NRBNQBKR
BQNRKBNR
NRKRBBQN
RKQBBNNR
RQBNNBKR
RBNQKNBR
BRKRNBNQ
QRKRBBNN
NRKRBBNQ
RKQBBNNR
BRQBNNKR
RKBBNQRN
QRBNKBNR
QRKRBNNB
RKQBBNNR
RQBNNBKR
BRKBRNQN
NRKRBNQB
NRKRBQNB
RKQBBNNR
RQBNNBKR
BRKBRNQN
QNRBBKRN
NRKRBNQB
RKQBBNNR
BBNRQKRN
BRK...

result:

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

Test #5:

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

input:

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

output:

RKQBBNNR
NRKQNBBR
NRBKQNRB
RNNKRBBQ
RQNKRBBN
RKQBBNNR
RQBNNBKR
BBRQNKNR
RKNNQRBB
QRKNBBRN
RNQKRBBN
RKQBBNNR
NRKQNBBR
NRBKQNRB
RNNKRBBQ
RKQBBNNR
RQBNNBKR
BBRQNKNR
RKNNQRBB
QRKRBBNN
RQNKRNBB
RKQBBNNR
BRQBNNKR
RKBBNQRN
RQNKRNBB
RNQKRNBB
RKQBBNNR
NRKQNBBR
NQBRNKRB
BRNQKRNB
QRKRNBBN
RNNKRQBB
RKQBBNNR
RQB...

result:

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

Test #6:

score: 0
Accepted
time: 51ms
memory: 7620kb

input:

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

output:

RKQBBNNR
BBNRQKRN
BRKNNBRQ
QRKRNBBN
QRBKNBRN
RKQBBNNR
BBNRQKRN
BNRQNKRB
QRBKNBNR
NRBKQBRN
RKQBBNNR
BBNRQKRN
BNRNKRQB
QBBRNKRN
NRBKNBRQ
RKQBBNNR
NRKQNBBR
NRBKQNRB
QRKRNNBB
QRBKNNRB
RKQBBNNR
NRKQNBBR
NRBKQNRB
RKQBBNNR
BBNRQKRN
BNRNKRQB
RKQNRBBN
NRBKNQRB
RKQBBNNR
NRKQNBBR
NRBKQNRB
NQRKBBRN
QRKRBBNN
QRN...

result:

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

Test #7:

score: 0
Accepted
time: 28ms
memory: 7584kb

input:

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

output:

RKQBBNNR
RQBNNBKR
BBRQNKNR
BRNBQNKR
RBBQKRNN
RKQBBNNR
NRKQNBBR
BBRKQRNN
QBRNBKRN
QRKBRNBN
RBBNKRQN
RKQBBNNR
RQBNNBKR
NRBQKBNR
QBNRBNKR
RBBNKRNQ
RKQBBNNR
RQBNNBKR
BBRQNKNR
RBKNBQRN
QRKRBNNB
RBQNKRBN
RKQBBNNR
NRKQNBBR
NRBKQNRB
BQRNNBKR
RBNQKRBN
RKQBBNNR
NRKQNBBR
NQBRNKRB
QNRKRBBN
QRKRNBBN
RBNNKRBQ
RKQ...

result:

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

Test #8:

score: 0
Accepted
time: 37ms
memory: 7716kb

input:

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

output:

RKQBBNNR
BRQBNNKR
RNBBNQKR
QRBBKNRN
QRNBKNBR
RKQBBNNR
RKNQBBRN
BNQNRKRB
QRKBBNRN
NRQBKNBR
RKQBBNNR
RQBNNBKR
RBNQKNBR
RBKQBRNN
NRNBKQBR
RKQBBNNR
NRKQNBBR
NRBNQBKR
QRKNRBBN
QRNNKBBR
RKQBBNNR
RQBNNBKR
NRBQKBNR
QRBNKRNB
NRQNKBBR
RKQBBNNR
NRKQNBBR
QRKBRNBN
NRNQKBBR
RKQBBNNR
NRKQNBBR
NQBRNKRB
QNRKRBBN
BBR...

result:

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

Test #9:

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

input:

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

output:

RKQBBNNR
BRQBNNKR
RKBBNQRN
RQNKRNBB
QBBRKNNR
RKQBBNNR
RQBNNBKR
BBRQNKNR
BRNBQNKR
QRKRBBNN
NBBRKQNR
RKQBBNNR
RQBNNBKR
BBRQNKNR
RBBKRNQN
QRKRBNNB
NBBRKNQR
RKQBBNNR
RQBNNBKR
RBNQKNBR
QRKRBBNN
QBNRKNBR
RKQBBNNR
BRQBNNKR
BNRBQKNR
QRKBRNBN
QRKRBBNN
NBQRKNBR
RKQBBNNR
NRKQNBBR
BQNRNBKR
NBBRKQNR
NBNRKQBR
RKQ...

result:

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

Test #10:

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

input:

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

output:

RKQBBNNR
RQBNNBKR
BBRQNKNR
RKQBBNNR
RQBNNBKR
BBRQNKNR
QRKRNBBN
BBRNQKNR
RKQBBNNR
NRKQNBBR
NRBKQNRB
BQRNNBKR
QRKRBBNN
BBRNNKQR
RKQBBNNR
BRQBNNKR
RNBBNQKR
QRBBKNNR
BQRBNKNR
RKQBBNNR
BRQBNNKR
BNRBQKNR
RKQBBNNR
RQBNNBKR
BBRQNKNR
QNRNKBBR
BNRBNKQR
RKQBBNNR
BRQBNNKR
RKNRQNBB
QRBKRBNN
QRKRBBNN
QBRNBKNR
RKQ...

result:

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

Test #11:

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

input:

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

output:

RKQBBNNR
RKNQBBRN
RQNBBNKR
RKQBBNNR
BNNBRKQR
QRKRBBNN
RNQBBNKR
RKQBBNNR
RKNQBBRN
RBNKBQNR
QRKRBBNN
RNNBBQKR
RKQBBNNR
BRQBNNKR
RKBBNQRN
RQNKRNBB
QRKRBBNN
RQNNBBKR
RKQBBNNR
RKNQBBRN
RBNKBQNR
QRKBBNRN
RNQNBBKR
RKQBBNNR
BRQBNNKR
RKBBNQRN
RQNKRNBB
QRKRBBNN
RNNQBBKR
RKQBBNNR
RKNQBBRN
BNQNRKRB
QRKRBBNN
BRQ...

result:

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

Extra Test:

score: 0
Extra Test Passed