QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#419591#7179. Fischer's Chess Guessing Gameucup-team2150#WA 18ms3912kbC++171.7kb2024-05-24 02:54:102024-05-24 02:54:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3700kb

input:

GAME 1
2
1
4
3
8
END

output:

RQKNBNRB
RNBKNRQB
RKNQBBNR
RKNBQNBR
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RQKNBNRB
RNBKNRQB
RKNQBBNR
RKNBQNBR
RKRBBQNN
RQKNBNRB
NRBNQKRB
RBNQBNKR
RNKBBQNR
RKRBBNQN
RQKNBNRB
NRBNQKRB
RBNQBNKR
RNKBBQNR
RKRBBNNQ
RQKNBNRB
RNBKNRQB
RKNQBBNR
BRKQNBRN
NQBNRBKR
RKRBQNBN
RQKNBNRB
BBRNQKNR
NRNKQRBB
NNBBRKRQ
QNNRBBKR
RKRBNQBN
RQKNBNRB
RNBKNRQB
RBQKRNBN
RNKRQBBN
RBNNKRBQ
RKRBNNBQ
RQK...

result:

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

Test #3:

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

input:

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

output:

RQKNBNRB
NRBNQKRB
RBNQBNKR
RBKQBRNN
RKQBBNNR
RQKNBNRB
RNBKNRQB
RKNQBBNR
RBNQBKNR
RKNBBQNR
RQKNBNRB
NRBNQKRB
RBNQBNKR
RKNBBNQR
RQKNBNRB
RNBKNRQB
RBQKRNBN
RBKRNQBN
RKQBNNBR
RQKNBNRB
RNBKNRQB
RKNQBBNR
RKNBQNBR
RQKNBNRB
BBRNQKNR
NRNKQRBB
BRKBNRQN
NNQBBRKR
RKNBNQBR
RQKNBNRB
NRBNQKRB
RBKNNQBR
RKQRNNBB
RKQ...

result:

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

Test #4:

score: 0
Accepted
time: 17ms
memory: 3912kb

input:

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

output:

RQKNBNRB
RNBKNRQB
NRKBBQNR
BRKBRNNQ
NRNBBKRQ
QRKRBBNN
RQKNBNRB
RNBKNRQB
RKNQBBNR
BRKQNBRN
NRKRBBQN
RQKNBNRB
RNBKNRQB
NRKBBQNR
BRKBQNNR
NQRBBKNR
NRKRBBNQ
RQKNBNRB
RBKNBRQN
QRKNRNBB
QRKRBNNB
RQKNBNRB
NRBNQKRB
BNRNKQRB
BRKBQNRN
NRKRBQNB
RQKNBNRB
RBKNBRQN
RKQBBNRN
NRKNBBRQ
NRKRBNQB
RQKNBNRB
BBRNQKNR
RKN...

result:

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

Test #5:

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

input:

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

output:

RQKNBNRB
RNBKNRQB
RBQKRNBN
NRQKRNBB
RBNKQNBR
RQNKRBBN
RQKNBNRB
BBRNQKNR
RKNBNRBQ
NRBKNBRQ
NRKBRQBN
RNQKRBBN
RQKNBNRB
BBRNQKNR
RKNBNRBQ
QRKBNRBN
RNNKRBBQ
RQKNBNRB
RBKNBRQN
BRQNKNRB
NQNRBKRB
RQNKRNBB
RQKNBNRB
NRBNQKRB
RBKNNQBR
RKNBBQRN
RNQKRNBB
RQKNBNRB
RNBKNRQB
RBBNNKQR
BNRKNQRB
NQRKNRBB
RNNKRQBB
RQK...

result:

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

Test #6:

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

input:

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

output:

RQKNBNRB
BBRNQKNR
RKNBNRBQ
NNBRKBRQ
QRBKNBRN
RQKNBNRB
BBRNQKNR
NRNKQRBB
NRBKQBRN
RQKNBNRB
BBRNQKNR
RKNBNRBQ
NRBKNBRQ
RQKNBNRB
NRBNQKRB
NRKRQNBB
NNQRBKRB
QRBKNNRB
RQKNBNRB
NRBNQKRB
BRNNQKRB
NRBKQNRB
RQKNBNRB
RNBKNRQB
RBBNNKQR
NRBKNQRB
RQKNBNRB
RNBKNRQB
RKNQBBNR
RKQNRBBN
QNRNBBKR
QRNKBBRN
RQKNBNRB
RNB...

result:

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

Test #7:

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

input:

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

output:

RQKNBNRB
BBRNQKNR
NNRQBBKR
NRBBQKRN
BRNBKNQR
RBBQKRNN
RQKNBNRB
RNBKNRQB
RBBNNKQR
RBBNKRQN
RQKNBNRB
RNBKNRQB
RNBBQKRN
RBBKRNNQ
RBBNKRNQ
RQKNBNRB
RNBKNRQB
RBQKRNBN
NRQKRNBB
RBQNKRBN
RQKNBNRB
BBRNQKNR
NRNKQRBB
NRKBNQBR
RBNQKRBN
RQKNBNRB
RNBKNRQB
RBQKRNBN
RNKRQBBN
RBNNKRBQ
RQKNBNRB
RNBKNRQB
RNBBQKRN
RKB...

result:

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

Test #8:

score: 0
Accepted
time: 16ms
memory: 3616kb

input:

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

output:

RQKNBNRB
BBRNQKNR
NRNKQRBB
NRKBNQBR
QRNBKNBR
RQKNBNRB
BBRNQKNR
NRNKQRBB
NRKBNQBR
NRNBBQKR
NRQBKNBR
RQKNBNRB
BRNBNKQR
BBNRNQKR
BNRKNBQR
NRNBKQBR
RQKNBNRB
BBRNQKNR
NNRQBBKR
BNRKNRQB
NBBQRKRN
QRNNKBBR
RQKNBNRB
BBRNQKNR
NNRQBBKR
NQBRKBNR
BQNRNBKR
NRQNKBBR
RQKNBNRB
BRNBNKQR
NBNQRKBR
NBQRNKBR
NRNQKBBR
RQK...

result:

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

Test #9:

score: -100
Wrong Answer
time: 10ms
memory: 3904kb

input:

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

output:

RQKNBNRB
BBRNQKNR
BNRKQBRN
NBBNRQKR
NBNRBKQR
QBBRKNNR
RQKNBNRB
BRNBNKQR
BBQRKRNN
BBRKRQNN
NBBRKQNR
RQKNBNRB
BBRNQKNR
NNRQBBKR
BNRKNRQB
NBBRKNQR
RQKNBNRB
BBRNQKNR
NNRQBBKR
NRBBQKRN
BNQRKRNB
QBNRKNBR
RQKNBNRB
BBRNQKNR
NNRQBBKR
BNRKNRQB
NBBQRKRN
NBQRKNBR
RQKNBNRB
BRNBNKQR
BNRKRBQN
NBNRKQBR
RQKNBNRB
BRN...

result:

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