QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#217298#7179. Fischer's Chess Guessing Gameucup-team1135WA 27ms7724kbC++141.9kb2023-10-16 18:32:492023-10-16 18:32:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 24ms
memory: 7536kb

input:

GAME 1
3
1
5
8
END

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBQNN
RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBNQN
RQKNBBRN
RNNKQBBR
NNRQBKRB
QBRKBRNN
RKRBBNNQ
RQKNBBRN
RNNKQBBR
RBQKRNBN
RNQBKRBN
RKRBQNBN
RQKNBBRN
RNNKQBBR
RQBBNNKR
RKQBRNBN
RKRBNQBN
RQKNBBRN
RNBQKRNB
NNRBBKQR
RKNBQNBR
RKRBNNBQ
RQKNBBRN
RNKBBNRQ
QRKRBBNN
RKRQBBNN
RQKNBBRN
RNQ...

result:

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

Test #3:

score: 0
Accepted
time: 18ms
memory: 7492kb

input:

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

output:

RQKNBBRN
RNNKQBBR
RQBBNNKR
RNBBKNRQ
RQBKRNNB
RKQBBNNR
RQKNBBRN
RNNKQBBR
RBQKRNBN
RKNBBQNR
RQKNBBRN
RNNKQBBR
RBQKRNBN
NRQKBBNR
RBBNQKNR
RKNBBNQR
RQKNBBRN
RNBQKRNB
NNRBBKQR
RKNBQNBR
RKNBNQBR
RKQBNNBR
RQKNBBRN
RNBQKRNB
NNRBBKQR
RKNBQNBR
RQKNBBRN
RNBQKRNB
NNRBBKQR
RKNBQNBR
RKNBNQBR
RQKNBBRN
RNKBBNRQ
QRK...

result:

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

Test #4:

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

input:

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

output:

RQKNBBRN
RNKBBNRQ
QRKRBBNN
RQKNBBRN
RNKBBNRQ
QRKRBBNN
NRKRBBQN
RQKNBBRN
NRBKQBRN
NRKQBBNR
NRKRBBNQ
RQKNBBRN
RNNKQBBR
BRKNRNQB
BRKBRQNN
QRKRBNNB
RQKNBBRN
RNNKQBBR
BRKNRNQB
NRKRBQNB
RQKNBBRN
RNNKQBBR
BRKNRNQB
NRKRBNQB
RQKNBBRN
NRBKQBRN
NRKQBBNR
RQBKNBNR
BRKRNBQN
QRKRNBBN
RQKNBBRN
NRBKQBRN
NRNKBBRQ
NRK...

result:

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

Test #5:

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

input:

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

output:

RQKNBBRN
RNKBBNRQ
RKQNRBBN
RQNKRBBN
RQKNBBRN
NRBKQBRN
NRKQBBNR
RKNRQBBN
RNQKRBBN
RQKNBBRN
RNNKQBBR
RNNQKBBR
RNNKRBBQ
RQKNBBRN
RNNKQBBR
RBNKRQBN
RBNNKQBR
RQNKRNBB
RQKNBBRN
RNBQKRNB
RNBBNKQR
RNQKRNBB
RQKNBBRN
RNBQKRNB
RNBBNKQR
RNQKRNBB
RNNKRQBB
RQKNBBRN
RNNKQBBR
RBQKRNBN
RNQBKRBN
RNKQRNBB
RBBKQRNN
RQK...

result:

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

Test #6:

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

input:

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

output:

RQKNBBRN
NRBKQBRN
NRBQKBRN
QRBKNBRN
RQKNBBRN
NRBKQBRN
RQKNBBRN
RNNKQBBR
RQBBNNKR
RKBNQRNB
NRBKNBRQ
RQKNBBRN
RNBQKRNB
BNRKQBNR
RKNRQNBB
BRNQNKRB
QRBKNNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
NRBKQNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
RKNRQNBB
NBRNKRBQ
NRBKNQRB
RQKNBBRN
RNKBBNRQ
QRKRBBNN
RKQRBBNN
QRNKBBRN
RQKNBBRN
RNK...

result:

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

Test #7:

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

input:

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

output:

RQKNBBRN
RNNKQBBR
NNRQBKRB
RKBNRNQB
RBBQKRNN
RQKNBBRN
NRBKQBRN
QRNNBKRB
RNQKBBNR
RBBNKRQN
RQKNBBRN
RNNKQBBR
NNRQBKRB
RKBBNRQN
RBBNKRNQ
RQKNBBRN
NRBKQBRN
RKNBBRQN
RNNQBBKR
RBQNKRBN
RQKNBBRN
RNNKQBBR
RBQKRNBN
RNQBKRBN
RBNQKRBN
RQKNBBRN
RNNKQBBR
RBQKRNBN
RNQNKRBB
RNQKBRNB
RBNNKRBQ
RQKNBBRN
NRBKQBRN
QRN...

result:

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

Test #8:

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

input:

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

output:

RQKNBBRN
BBQRNNKR
QRBBNKNR
NRBBKNQR
QRNBKNBR
RQKNBBRN
BBQRNNKR
NRBBNQKR
NBRKNQBR
NRQBKNBR
RQKNBBRN
BBQRNNKR
BNRQKRNB
NRBKRNQB
NRNBKQBR
RQKNBBRN
RNNKQBBR
RBNKRQBN
RNKRQNBB
NQRKNBBR
QRNNKBBR
RQKNBBRN
RNNKQBBR
RBQKRNBN
NRQKBBNR
NRQNKBBR
RQKNBBRN
RNBQKRNB
BNRKQBNR
NRBKQNRB
NRNQKBBR
RQKNBBRN
RNBQKRNB
QNB...

result:

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

Test #9:

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

input:

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

output:

RQKNBBRN
BBQRNNKR
NBBRNKQR
NBBQRNKR
QBBRKNNR
RQKNBBRN
BBQRNNKR
NRBBNQKR
NBRKNQBR
NBBRKQNR
RQKNBBRN
BBQRNNKR
NBBRNKQR
NBBRKNQR
RQKNBBRN
BBQRNNKR
NBBRNKQR
BRQBNKNR
QBNRKNBR
RQKNBBRN
BBQRNNKR
BBNRNKQR
NBBRQNKR
NBQRKNBR
RQKNBBRN
BBQRNNKR
NRBBNQKR
NBNRKQBR
RQKNBBRN
RNBQKRNB
QNBRKNRB
NRBQKNRB
QNBRKBNR
RQK...

result:

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

Test #10:

score: -100
Wrong Answer
time: 25ms
memory: 7656kb

input:

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

output:

RQKNBBRN
BBQRNNKR
NBBRNKQR
NBBQRNKR
BBRQNKNR
RQKNBBRN
RNBQKRNB
NNRBBKQR
NRBKNBQR
BBRNQKNR
RQKNBBRN
RNBQKRNB
BBRNQNKR
NBRNQKBR
BBRNNKQR
RQKNBBRN
RNBQKRNB
NNRBBKQR
NBRQBNKR
BNRKNBQR
BQRBNKNR
RQKNBBRN
BBQRNNKR
QRBBNKNR
NRBBKNQR
BNRBQKNR
RQKNBBRN
BBQRNNKR
NRBBNQKR
NBNRKQBR
BNRBNKQR
RQKNBBRN
RNNKQBBR
NNR...

result:

wrong answer (i) too many guesses in game 43, pos = p