QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#232778#7179. Fischer's Chess Guessing Gameucup-team1259WA 331ms3900kbC++143.4kb2023-10-30 21:55:292023-10-30 21:55:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

GAME 1
4
3
1
5
8
END

output:

RQKBBNRN
RQKNBRNB
RQBKNNRB
RKNBBRQN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 319ms
memory: 3896kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RQBKNNRB
RKNBBRQN
RKRBBQNN
RQKBBNRN
RNKBBNQR
RKRBBNQN
RQKBBNRN
RQKNBRNB
RQBKNNRB
RKQNBBRN
RKRBBNNQ
RQKBBNRN
RQKNBRNB
BQRBNKRN
RNBBKQRN
RKRBQNBN
RQKBBNRN
NRBBQKRN
RKNBQNBR
QRNBBNKR
RKRBNQBN
RQKBBNRN
NRBBQKRN
RNKQRBBN
RBNKBRQN
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RNKQRBBN
RNKBNQBR
RKRQBBNN
RQK...

result:

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

Test #3:

score: 0
Accepted
time: 302ms
memory: 3768kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RQBKNNRB
RKQNBBRN
RKQBBNNR
RQKBBNRN
NRBBQKRN
RNKQRBBN
RKNNBQRB
RKNBBQNR
RQKBBNRN
RQKNBRNB
RBNQBKRN
RQBKNBRN
RKNBBNQR
RQKBBNRN
NRBBQKRN
RNKQRBBN
RBNKBRQN
RKRBNNBQ
RKQBNNBR
RQKBBNRN
NRBBQKRN
RKNBQNBR
RQKBBNRN
RKNBNQBR
RQKBBNRN
RKNBNQBR
RKQNRBBN
RKQNBBNR
RQKBBNRN
RKNBNQBR
RKNQRBBN
RBN...

result:

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

Test #4:

score: 0
Accepted
time: 331ms
memory: 3708kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRKNBRN
QRKRBBNN
RQKBBNRN
NRBBQKRN
NRKBBQNR
NRKRBBQN
RQKBBNRN
RKNBNQBR
QNBRKNRB
NQRKBRNB
NRKRBBNQ
RQKBBNRN
NRBBQKRN
RNKQRBBN
RKNNBQRB
QRKRBNNB
RQKBBNRN
RKNBNQBR
BBRKNNRQ
QRKNRBBN
NRKRBQNB
RQKBBNRN
NRBBQKRN
RKNBQNBR
NRKRBNQB
RQKBBNRN
RKNBNQBR
NNQBBRKR
RKBRQBNN
RKBNRNQB
QRK...

result:

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

Test #5:

score: 0
Accepted
time: 324ms
memory: 3892kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RNKQRBBN
RBKNRQBN
RQNKRBBN
RQKBBNRN
RKNBNQBR
NNQBBRKR
BRKBNRNQ
RNQKRBBN
RQKBBNRN
BNRKRNQB
RNBNKRQB
BNRBKQNR
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RQNKBBNR
RNKRBBNQ
RQNKRNBB
RQKBBNRN
RKNBNQBR
NNQBBRKR
BRKBNRNQ
RNQKRBBN
RNQKRNBB
RQKBBNRN
BNRKRNQB
BNRBNKQR
RNBKRQNB
RNNKRQBB
RQKBBNRN
RKNBNQBR
BBR...

result:

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

Test #6:

score: 0
Accepted
time: 322ms
memory: 3760kb

input:

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

output:

RQKBBNRN
RKNBNQBR
BBRKNNRQ
NBNRBKRQ
QRBKNBRN
RQKBBNRN
RKNBNQBR
QNBRKNRB
BRKQRNNB
NRBKQBRN
RQKBBNRN
BNRKRNQB
NQNRKRBB
BRNBNQKR
QRBNNKRB
NRBKNBRQ
RQKBBNRN
RKNBNQBR
BBRKNNRQ
QBRKBNNR
QRBKNNRB
RQKBBNRN
RKNBNQBR
QNBRKNRB
NRBKQNRB
RQKBBNRN
BNRKRNQB
BRNNKQRB
NRKNRQBB
BRKRNQNB
NRBKNQRB
RQKBBNRN
NRBBQKRN
NRK...

result:

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

Test #7:

score: 0
Accepted
time: 325ms
memory: 3892kb

input:

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

output:

RQKBBNRN
RKNBNQBR
BBRKNNRQ
NRNQBKRB
RBBQKRNN
RQKBBNRN
RKNBNQBR
BBRKNNRQ
NRNQBKRB
RNBKRBQN
RBBNKRQN
RQKBBNRN
BNRKRNQB
RKQNNBBR
NRBBNQKR
RBBNKRNQ
RQKBBNRN
RKNBNQBR
NNQBBRKR
BRKBNRNQ
RBQNKRBN
RQKBBNRN
RKNBNQBR
RKQNRBBN
RBNKQRBN
RBNQKRBN
RQKBBNRN
BNRKRNQB
RKQNNBBR
NRKRNBBQ
RBNNKRBQ
RQKBBNRN
RQKNBRNB
RQB...

result:

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

Test #8:

score: -100
Wrong Answer
time: 186ms
memory: 3768kb

input:

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

output:

RQKBBNRN
RKNBNQBR
RKNQRBBN
RKBNNQRB
QRNBKNBR
RQKBBNRN
RKNBNQBR
RKQNRBBN
RNNKBBQR
QRNBKRBN
NRQBKNBR
RQKBBNRN
BNRKRNQB
RKQNNBBR
NRBBNQKR
NRNBKQBR
RQKBBNRN
BBRNNKQR
NRQKNBBR
NNRQKBBR
QRNNKBBR
RQKBBNRN
BBRNNKQR
NRQKNBBR
QRNKNBBR
NRQNKBBR
RQKBBNRN
BBRNNKQR
NNBRQBKR
NNRKRBBQ
NRNQKBBR
RQKBBNRN
BNRKRNQB
BRN...

result:

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