QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#176752#7179. Fischer's Chess Guessing Gameucup-team1414AC ✓109ms7668kbC++172.8kb2023-09-11 23:12:022023-09-11 23:12:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 7364kb

input:

GAME 1
3
0
4
4
8
END

output:

RQKNBBRN
NRKQNBBR
RKNQBRNB
RKRNNQBB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 100ms
memory: 7376kb

input:

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

output:

RQKNBBRN
NRKQNBBR
RKNQBRNB
RKRNNQBB
RKRBBQNN
RQKNBBRN
NRKQNBBR
RKNQBRNB
RKRNBNQB
RKRBBNQN
RQKNBBRN
NRKQBBNR
RKBNQBNR
RKRBBNQN
RKRNNBBQ
RKRBBNNQ
RQKNBBRN
NRKQBBNR
BNRNQKRB
RKNNRBBQ
RKRNNQBB
RKRBQNBN
RQKNBBRN
NRKQBBNR
BNRNQKRB
RNKBQRBN
RKRBNQBN
RQKNBBRN
RQBKNNRB
RKNBNQBR
RKRNNBBQ
RKRBNNBQ
RQKNBBRN
RKN...

result:

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

Test #3:

score: 0
Accepted
time: 94ms
memory: 7436kb

input:

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

output:

RQKNBBRN
NRKQBBNR
RBNNBKQR
RKRQNBBN
RKRNNBBQ
RKQBBNNR
RQKNBBRN
NRKQBBNR
RBNNBKQR
RNKBBRNQ
RKNBBQNR
RQKNBBRN
NRKQBBNR
RKBNQBNR
RKRBBNQN
RKRNNBBQ
RKNBBNQR
RQKNBBRN
RQBKNNRB
RKNBNQBR
RKRBBNQN
RKQBNNBR
RQKNBBRN
RQBKNNRB
RNKBNQBR
RKRBBNNQ
RKRNNBBQ
RKNBQNBR
RQKNBBRN
RQBKNNRB
RNKBNQBR
RKRNNBBQ
RKNBNQBR
RQK...

result:

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

Test #4:

score: 0
Accepted
time: 94ms
memory: 7436kb

input:

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

output:

RQKNBBRN
RKNNQBBR
RKQNBNRB
QRKRBNNB
QRKRBBNN
RQKNBBRN
RKNNQBBR
RKQNBNRB
QRKRBNNB
NRKRBBQN
RQKNBBRN
NRKQNBBR
RKQRNNBB
RKRNNQBB
NRKRBBNQ
RQKNBBRN
NRKQBBNR
RQBNKBNR
RKRNNBBQ
QRKRBNNB
RQKNBBRN
NRKQBBNR
RKBBRNNQ
RKRNNBBQ
NRKRBQNB
RQKNBBRN
NRKQBBNR
RQBNKBNR
RKRNBNQB
NRKRBNQB
RQKNBBRN
NRKQNBBR
RKRBQNBN
QRK...

result:

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

Test #5:

score: 0
Accepted
time: 109ms
memory: 7664kb

input:

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

output:

RQKNBBRN
RKNNQBBR
RKNBRQBN
RQNKRBBN
RQKNBBRN
NRKQNBBR
RKNNRBBQ
RKBQRNNB
RNQKRBBN
RQKNBBRN
NRKQBBNR
RBBQKNNR
RKNBRQBN
RKRNNBBQ
RNNKRBBQ
RQKNBBRN
NRKQBBNR
BNRNQKRB
RNKBQRBN
RKRNNBBQ
RQNKRNBB
RQKNBBRN
RQBKNNRB
RKBRNBNQ
RNQKNRBB
RNQKRNBB
RQKNBBRN
RQBKNNRB
RKNBNQBR
RKRNQNBB
RNNKRQBB
RQKNBBRN
NRKQBBNR
RBB...

result:

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

Test #6:

score: 0
Accepted
time: 107ms
memory: 7468kb

input:

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

output:

RQKNBBRN
NRKQNBBR
RKNBRNBQ
RKNRQBBN
RKBRNNQB
QRBKNBRN
RQKNBBRN
NRKQNBBR
RKNBRNBQ
RKNRQBBN
NRBKQBRN
RQKNBBRN
NRKQBBNR
RBNNBKQR
RKBNRBNQ
RKRNNBBQ
NRBKNBRQ
RQKNBBRN
RQBKNNRB
QRBKNNRB
RQKNBBRN
RQBKNNRB
RKRNBNQB
RKRNNBBQ
NRBKQNRB
RQKNBBRN
RQBKNNRB
RKRNBNQB
NRBKNQRB
RQKNBBRN
RKNNQBBR
RKNQBNRB
RKBNQBRN
QRN...

result:

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

Test #7:

score: 0
Accepted
time: 105ms
memory: 7668kb

input:

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

output:

RQKNBBRN
NRKQBBNR
RKBNQBNR
RKRBBNQN
RKRNNBBQ
RBBQKRNN
RQKNBBRN
NRKQNBBR
RKNQBRNB
RKRNQNBB
RKRNNBBQ
RBBNKRQN
RQKNBBRN
NRKQBBNR
RBBQKNNR
RKRQNNBB
RBBNKRNQ
RQKNBBRN
NRKQNBBR
RKNRBNQB
RKQRNBBN
RKRNNBBQ
RBQNKRBN
RQKNBBRN
NRKQBBNR
RBBQKNNR
RQNBNKBR
RKRNNBBQ
RBNQKRBN
RQKNBBRN
NRKQBBNR
BNRNQKRB
RNKBQRBN
RKR...

result:

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

Test #8:

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

input:

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

output:

RQKNBBRN
BBQRNNKR
RNBBNKQR
BRKNNRQB
QRNBKNBR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RKRNNQBB
NRQBKNBR
RQKNBBRN
BBQRNNKR
BRNKNRQB
RKNBRQBN
NRNBKQBR
RQKNBBRN
NRKQBBNR
RBNNBKQR
RKRQNBBN
RKRNNBBQ
QRNNKBBR
RQKNBBRN
NRKQBBNR
RQBNKBNR
RKRNNBBQ
NRQNKBBR
RQKNBBRN
RQBKNNRB
RBQNKRBN
NNRBKRBQ
RKRQNNBB
NRNQKBBR
RQKNBBRN
RQB...

result:

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

Test #9:

score: 0
Accepted
time: 101ms
memory: 7364kb

input:

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

output:

RQKNBBRN
BBQRNNKR
BRKBNQNR
NNBRKBQR
QBBRKNNR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RBKNQNBR
NBBRKQNR
RQKNBBRN
BBQRNNKR
BRKBNQNR
RKNRNBBQ
NBBRKNQR
RQKNBBRN
BBQRNNKR
BRKBNQNR
RKNRNBBQ
QBNRKNBR
RQKNBBRN
BBQRNNKR
RKQBRNBN
NBQRKNBR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RKRNNQBB
RKRNQNBB
NBNRKQBR
RQKNBBRN
RQBKNNRB
NBBRNQKR
RKB...

result:

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

Test #10:

score: 0
Accepted
time: 99ms
memory: 7364kb

input:

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

output:

RQKNBBRN
BBQRNNKR
BRKBNQNR
RKRQNNBB
BBRQNKNR
RQKNBBRN
RQBKNNRB
RBQNKRBN
NNRBKRBQ
RKRNNBBQ
BBRNQKNR
RQKNBBRN
RQBKNNRB
NBBRNQKR
RKBQNBNR
RKRNNBBQ
BBRNNKQR
RQKNBBRN
RQBKNNRB
RNKBNQBR
RKNBRNBQ
RKRNBBNQ
BQRBNKNR
RQKNBBRN
BBQRNNKR
RNBBNKQR
NNBBRQKR
BNRBQKNR
RQKNBBRN
BBQRNNKR
RNNBBKQR
RKRNNBBQ
BNRBNKQR
RQK...

result:

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

Test #11:

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

input:

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

output:

RQKNBBRN
NRKQNBBR
RKNRBNQB
RBKNBNQR
RQNBBNKR
RQKNBBRN
NRKQBBNR
RKBNQBNR
RKNRNBBQ
RKRBNNBQ
RNQBBNKR
RQKNBBRN
NRKQBBNR
RKBNQBNR
RKNRNBBQ
RKRNBNQB
RNNBBQKR
RQKNBBRN
RKNNBRQB
RKNRNBBQ
RQNNBBKR
RQKNBBRN
RKNNQBBR
RKNBRQBN
RKBRNNQB
RNQNBBKR
RQKNBBRN
NRKQNBBR
RKNBRNBQ
RKRBNQBN
RKRNNBBQ
RNNQBBKR
RQKNBBRN
BBQ...

result:

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

Extra Test:

score: 0
Extra Test Passed