QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#177965#7179. Fischer's Chess Guessing Gameucup-team1130AC ✓25ms3956kbC++142.6kb2023-09-13 16:34:242023-09-13 16:34:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

GAME 1
8
END

output:

RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RKRBBQNN
RKRBBQNN
RKBBRQNN
RKRBBNQN
RKRBBQNN
RKBBRQNN
RKRBBNQN
RKRBBNNQ
RKRBBQNN
RKNBBRNQ
RBKRBQNN
RKRBQNBN
RKRBBQNN
RKBBRQNN
RKNBBQNR
RKRBNQBN
RKRBBQNN
RBNKBQNR
RKBBNRQN
RKQBRNBN
RKRBNNBQ
RKRBBQNN
RKBBRQNN
RKRBBNQN
RKRQBBNN
RKRBBQNN
RKNBBRNQ
RBKRBQNN
RKBBNQRN
RKRNBBQN
RKRBBQNN
RKNBBRNQ
RKBBQRNN
RKN...

result:

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

Test #3:

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

input:

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

output:

RKRBBQNN
RKNBBRNQ
RKBBQRNN
RKQBBNNR
RKRBBQNN
RKBBRQNN
RKNBBQNR
RKRBBQNN
RBNKBQNR
RKNQBRNB
RKNBBNQR
RKRBBQNN
BQRBKNNR
BBRKQRNN
RKBBNNQR
RKQBNNBR
RKRBBQNN
BQRBKNNR
BBRKQRNN
NNRBBKQR
RKNBQNBR
RKRBBQNN
RBNKBQNR
RKNQBRNB
RNQBBKNR
RKNBNQBR
RKRBBQNN
RBNKBQNR
RKNQBRNB
RKNBBNQR
RKQNBBNR
RKRBBQNN
RBNKBQNR
RKN...

result:

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

Test #4:

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

input:

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

output:

RKRBBQNN
BQRBKNNR
NBRQBKRN
NRKRBQNB
QRKRBBNN
RKRBBQNN
NRNBBKQR
NNRKBBQR
NRKQBBNR
NRKRBBQN
RKRBBQNN
NRNBBKQR
NQRNBKRB
RNKNBBQR
NRKRBBNQ
RKRBBQNN
NRNBBKQR
RBNKNQBR
BRKBQNRN
QNBBRKRN
QRKRBNNB
RKRBBQNN
BQRBKNNR
NBRQBKRN
NRKRBQNB
RKRBBQNN
NRNQBBKR
BBRQNNKR
QRNKBNRB
BRNKQBRN
NRKRBNQB
RKRBBQNN
NRNQBBKR
BRK...

result:

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

Test #5:

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

input:

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

output:

RKRBBQNN
NRNBBKQR
BQRKNBNR
QRBKRBNN
BRKRQBNN
RQNKRBBN
RKRBBQNN
NRNBBKQR
BQRKNBRN
RKBNNBRQ
BNRNKQRB
RNQKRBBN
RKRBBQNN
NRNQBBKR
BRKQNRNB
NBRNQKBR
QNBBRNKR
RNNKRBBQ
RKRBBQNN
NRNQBBKR
BBQRKNNR
BNRKNBRQ
NQRNKRBB
RQNKRNBB
RKRBBQNN
NRNQBBKR
BNRKNRQB
RNKNQRBB
RNBKQNRB
RNQKRNBB
RKRBBQNN
NRNBBKQR
BQRKNBNR
RKB...

result:

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

Test #6:

score: 0
Accepted
time: 25ms
memory: 3724kb

input:

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

output:

RKRBBQNN
NRNQBBKR
BRKQNRNB
BRNBKNRQ
BBNRQKNR
QRBKNBRN
RKRBBQNN
NRNQBBKR
BBRQNNKR
NRBKRBNQ
NRBKQBRN
RKRBBQNN
QNBRNBKR
BRNKNBQR
BBNQNRKR
NRBKNBRQ
RKRBBQNN
QNBRNBKR
BRNKNBQR
BBNRQNKR
NRKRNBBQ
QRBKNNRB
RKRBBQNN
QNBRNBKR
BRKNNRQB
BNNQRKRB
NQNRKRBB
NRBKQNRB
RKRBBQNN
NRNQBBKR
BRKQNRNB
BRKNQBRN
NRBKNQRB
RKR...

result:

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

Test #7:

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

input:

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

output:

RKRBBQNN
BQRBKNNR
RKBNQBNR
RBNQBKNR
RBBQKRNN
RKRBBQNN
NRNBBKQR
BQRKNBNR
NBBRKQRN
RBBNKRQN
RKRBBQNN
NRNBBKQR
BQRKNBRN
RNBQKRNB
RBBNKRNQ
RKRBBQNN
NRNBBKQR
BQRKNBRN
RBKQRNBN
RBBKRNNQ
RBQNKRBN
RKRBBQNN
NRNBBKQR
BQRKNBNR
NBBRKQRN
RBNQKRBN
RKRBBQNN
NRNQBBKR
BBQRKNNR
NBRKRNBQ
QBRNNKBR
RBNNKRBQ
RKRBBQNN
RBN...

result:

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

Test #8:

score: 0
Accepted
time: 25ms
memory: 3660kb

input:

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

output:

RKRBBQNN
NRNQBBKR
BBRQNNKR
BQNRKBNR
QRBKNBNR
QRNBKNBR
RKRBBQNN
NRNQBBKR
BBRQNNKR
BQNRKBNR
NRQBKNBR
RKRBBQNN
NRNBBKQR
NRQBBNKR
NRBBQKNR
NRNBKQBR
RKRBBQNN
QNBRNBKR
BRNKNBQR
BBNQNRKR
QRNNKBBR
RKRBBQNN
QNBRNBKR
BBNRKNQR
NRNKQBBR
NRQNKBBR
RKRBBQNN
QNBRNBKR
BBNRKNQR
BNNRQKRB
NBBNRKQR
NRNQKBBR
RKRBBQNN
BQR...

result:

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

Test #9:

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

input:

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

output:

RKRBBQNN
NRNQBBKR
BBQRKNNR
BBQRNKNR
QBBRKNNR
RKRBBQNN
NRNBBKQR
RBNKNQBR
RBQNBNKR
BBRQNKNR
NBBRKQNR
RKRBBQNN
QNBRNBKR
BRNKNBQR
BNQRNKRB
NBBRKNQR
RKRBBQNN
QNBRNBKR
BRNKNBQR
BNQRNKRB
NBBRKNQR
QBNRKNBR
RKRBBQNN
QNBRNBKR
BBNRKNQR
BRNNKBQR
NBQRKNBR
RKRBBQNN
NRNQBBKR
BBRQNNKR
BQNRKBNR
NBNRKQBR
RKRBBQNN
NRN...

result:

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

Test #10:

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

input:

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

output:

RKRBBQNN
NRNBBKQR
RBNKNQBR
RBQNBNKR
BBRQNKNR
RKRBBQNN
NRNBBKQR
RBNKNQBR
QRKBNRBN
NBRKBNRQ
BBRNQKNR
RKRBBQNN
NRNQBBKR
BBQRKNNR
BBRNNKQR
RKRBBQNN
BQRBKNNR
BQRBKNRN
BQRBNKNR
RKRBBQNN
BQRBKNNR
BBRNKQNR
BNRBKRNQ
BNRBQKNR
RKRBBQNN
NRNBBKQR
NNRKBBQR
NRKQBBNR
BNRBNKQR
RKRBBQNN
BQRBKNNR
BBRKQRNN
QNRBKRBN
QBR...

result:

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

Test #11:

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

input:

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

output:

RKRBBQNN
BQRBKNNR
BBRKNQNR
NQRBKRBN
RQNBBNKR
RKRBBQNN
BQRBKNNR
BBRKQRNN
RKBBNNQR
RNQBBNKR
RKRBBQNN
RBNKBQNR
RKNQBBNR
RNNBBQKR
RKRBBQNN
NRNBBKQR
NQRNBKRB
NBRQBNKR
NRKQBBRN
RQNNBBKR
RKRBBQNN
NRNBBKQR
RBNKNQBR
QRKBNRBN
NBRKBNRQ
RNQNBBKR
RKRBBQNN
NRNBBKQR
NQRNBKRB
NRBBKRNQ
RBNQBNKR
RNNQBBKR
RKRBBQNN
NRN...

result:

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

Extra Test:

score: 0
Extra Test Passed