QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#344675#7179. Fischer's Chess Guessing Gameucup-team864AC ✓19ms11436kbC++142.1kb2024-03-04 21:13:012024-03-04 21:13:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 14ms
memory: 11208kb

input:

GAME 1
4
2
6
8
END

output:

RQKBBNRN
RNBBKNQR
RKRNBQNB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 19ms
memory: 11144kb

input:

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

output:

RQKBBNRN
RNBBKNQR
RKRNBQNB
RKRBBQNN
RQKBBNRN
RBNKBNQR
BBRNKRQN
RKRBBNQN
RQKBBNRN
RNBBKNQR
RNKBBQNR
BBRKQRNN
RKRBBNNQ
RQKBBNRN
RNBBKNQR
RNKBBQNR
BBRNQNKR
RKRBQNBN
RQKBBNRN
NRNBBKQR
BRKBNRNQ
BBRKNRQN
BBRNNKRQ
RKRBNQBN
RQKBBNRN
NRNBBKQR
BRKBNRNQ
BBRKNNRQ
RKRBNNBQ
RQKBBNRN
NRNBBKQR
BRKBNRNQ
BBQRKRNN
BBR...

result:

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

Test #3:

score: 0
Accepted
time: 11ms
memory: 11144kb

input:

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

output:

RQKBBNRN
RNBBKNQR
BNRBKQRN
BBRNKQNR
RKQBBNNR
RQKBBNRN
NRNBBKQR
BRKBQRNN
BBRNNQKR
RKNBBQNR
RQKBBNRN
RNBBKNQR
BNRBNQKR
BBRNNKQR
RKNBBNQR
RQKBBNRN
NRNBBKQR
RNQNBKRB
BBRNQNKR
BBRNNKRQ
RKQBNNBR
RQKBBNRN
NRNBBKQR
RBNNBKRQ
BBRKNQRN
RKNBQNBR
RQKBBNRN
NRKBBQNR
BBNQRNKR
RQBBNKNR
BBRNNKRQ
RKNBNQBR
RQKBBNRN
NRK...

result:

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

Test #4:

score: 0
Accepted
time: 19ms
memory: 11232kb

input:

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

output:

RQKBBNRN
NRNBBKQR
RNQNBKRB
RBNKRNBQ
QRKRBBNN
RQKBBNRN
NRNBBKQR
BRKBQRNN
NRKRBBQN
RQKBBNRN
NRKBBQNR
BBRNNQKR
BBRNNKRQ
NRKRBBNQ
RQKBBNRN
NRNBBKQR
RNQNBKRB
BBRNQNKR
BBRNNKRQ
QRKRBNNB
RQKBBNRN
NRKBBQNR
BBRNNKQR
NRKRBQNB
RQKBBNRN
NRNBBKQR
BRKBQRNN
BBRNNQKR
NRKRBNQB
RQKBBNRN
NRKBBQNR
RNQKBBNR
QRKNNBBR
BBR...

result:

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

Test #5:

score: 0
Accepted
time: 15ms
memory: 11144kb

input:

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

output:

RQKBBNRN
NRNBBKQR
BRKBNRNQ
BBRKRNNQ
BBRNNKRQ
RQNKRBBN
RQKBBNRN
NRKBBQNR
BNQRNKRB
RKNRNQBB
BBRNNKQR
RNQKRBBN
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
BBNRKQNR
BBRNNKRQ
RNNKRBBQ
RQKBBNRN
NRNBBKQR
BRKBNRNQ
BBRKRNNQ
BBRNNKRQ
RQNKRNBB
RQKBBNRN
NRKBBQNR
BNQRNKRB
BBRNKNRQ
BBRNNKRQ
RNQKRNBB
RQKBBNRN
RNBBNKRQ
RKNNQRBB
RKN...

result:

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

Test #6:

score: 0
Accepted
time: 9ms
memory: 11192kb

input:

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

output:

RQKBBNRN
NRKBBQNR
RBBNKQNR
BBRQKNRN
BBRNKRQN
QRBKNBRN
RQKBBNRN
NRKBBQNR
RNQKBBNR
BBRQNNKR
BBRNNKQR
NRBKQBRN
RQKBBNRN
RNBBNKRQ
NRQNBKRB
BBRNNKRQ
NRBKNBRQ
RQKBBNRN
NRKBBQNR
RBBNKQNR
BBRQKNRN
BBRNKRQN
QRBKNNRB
RQKBBNRN
NRKBBQNR
RNQKBBNR
QRKNNBBR
BBRNNKRQ
NRBKQNRB
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
BBQNRKNR
NRB...

result:

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

Test #7:

score: 0
Accepted
time: 11ms
memory: 11176kb

input:

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

output:

RQKBBNRN
NRKBBQNR
RBBNKQNR
BBRKQNNR
RBBQKRNN
RQKBBNRN
NRKBBQNR
BNQRNKRB
BBRKQNRN
BBRNNKRQ
RBBNKRQN
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
RQKBBNRN
NRKBBQNR
BNQRNKRB
NRBKRBQN
BBRNNKRQ
RBQNKRBN
RQKBBNRN
NRKBBQNR
BNQRNKRB
BBRKQNRN
BBRNNKRQ
RBNQKRBN
RQKBBNRN
RNBBNKRQ
RKNNQRBB
BBRNNQKR
BBRNNKRQ
RBNNKRBQ
RQKBBNRN
RNB...

result:

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

Test #8:

score: 0
Accepted
time: 11ms
memory: 11196kb

input:

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

output:

RQKBBNRN
NRKBBQNR
BBNQRNKR
BRKBRNQN
BBRNNKRQ
QRNBKNBR
RQKBBNRN
NRKBBQNR
BNRBKNQR
BBQRKNRN
NRQBKNBR
RQKBBNRN
RNBBNKRQ
BBRKRNQN
RKQNNRBB
BBRNKRNQ
NRNBKQBR
RQKBBNRN
BBRNNKQR
NRBKNBQR
BRNBKRNQ
QRNNKBBR
RQKBBNRN
BBRNNKQR
NRBKNBQR
BBRNKRNQ
BBRNKRQN
NRQNKBBR
RQKBBNRN
BBRNNKQR
BRKNQRNB
BBNRKRNQ
NRNQKBBR
RQK...

result:

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

Test #9:

score: 0
Accepted
time: 19ms
memory: 11420kb

input:

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

output:

RQKBBNRN
RNBBNKRQ
BBRKRNQN
BQRNNKRB
BBRNNQKR
QBBRKNNR
RQKBBNRN
BBRNNKQR
NRBKNBQR
BRNBKRNQ
NBBRKQNR
RQKBBNRN
RNBBNKRQ
BBRKRNQN
BBRNNQKR
BBRNKRNQ
NBBRKNQR
RQKBBNRN
RNBBNKRQ
NBRNKRBQ
BBRNKRQN
BBRNNQKR
QBNRKNBR
RQKBBNRN
RNBBNKRQ
NBRNKRBQ
BBRNNKRQ
BBRNKNRQ
NBQRKNBR
RQKBBNRN
BBRNNKQR
NRBKNBQR
BBNRKQNR
NBN...

result:

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

Test #10:

score: 0
Accepted
time: 12ms
memory: 11208kb

input:

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

output:

RQKBBNRN
BBRNNKQR
BBRNKRNQ
BBRNNQKR
BBRQNKNR
RQKBBNRN
BBRNNKQR
BBRNKRNQ
BBRNQKNR
RQKBBNRN
BBRNNKQR
RQKBBNRN
NRKBBQNR
BBNQRNKR
RQBBNKNR
BQRBNKNR
RQKBBNRN
RNBBNKRQ
RBBNKRNQ
BBQNRKNR
BBRNNKRQ
BNRBQKNR
RQKBBNRN
RNBBNKRQ
NRQNBKRB
BBNQRKNR
BNRBNKQR
RQKBBNRN
RNBBNKRQ
BBRKRNQN
BQRNNKRB
BBRNNKRQ
QBRNBKNR
RQK...

result:

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

Test #11:

score: 0
Accepted
time: 9ms
memory: 11436kb

input:

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

output:

RQKBBNRN
RBNKBNQR
RBNKBQRN
RQNBBNKR
RQKBBNRN
RNBBKNQR
BNRBNQKR
BBRNNKRQ
RNQBBNKR
RQKBBNRN
NRNBBKQR
BRKBQRNN
BBRNNKRQ
RNNBBQKR
RQKBBNRN
NRNBBKQR
RBNNBKRQ
BBRNKQRN
BBRNKNRQ
RQNNBBKR
RQKBBNRN
NRKBBQNR
RNQKBBNR
BBRNNQKR
RNQNBBKR
RQKBBNRN
NRKBBQNR
RNQKBBNR
BBRNNKRQ
RNNQBBKR
RQKBBNRN
NRKBBQNR
BBNQRNKR
BBN...

result:

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

Extra Test:

score: 0
Extra Test Passed