QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#219903#7179. Fischer's Chess Guessing Gameucup-team1881AC ✓20ms5152kbC++202.7kb2023-10-19 19:36:312023-10-19 19:36:31

详细

Test #1:

score: 100
Accepted
time: 16ms
memory: 4988kb

input:

GAME 1
4
4
5
8
END

output:

RKQNBBRN
RKBBQNRN
RKQBBNNR
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RKQNBBRN
RKBBQNRN
RKQBBNNR
RKRBBQNN
RKQNBBRN
RKBBQNRN
RQKBBNRN
RKNBBNRQ
RKRBBNQN
RKQNBBRN
RKNBBNQR
RKQBNNBR
RKBBRNQN
RKRBBNNQ
RKQNBBRN
RKNBBNQR
RBNNBQKR
RKBBNNRQ
RKRBQNBN
RKQNBBRN
RKNBBNQR
RKBQNBNR
RBKNBQNR
RKRBNQBN
RKQNBBRN
NRNQBBKR
RNBKQNRB
RBBNKRNQ
QBBRNKRN
RKRBNNBQ
RKQNBBRN
RKNNBBQR
RKNBBQRN
RKR...

result:

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

Test #3:

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

input:

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

output:

RKQNBBRN
RKBBQNRN
RKQBBNNR
RKQNBBRN
RKNBBNQR
RKNBBQNR
RKQNBBRN
RKNBBNQR
RKQNBBRN
RKNBBNQR
RKQBNNBR
RKQNBBRN
NRNQBBKR
RBBNNQKR
RNKBBNQR
RKNBQNBR
RKQNBBRN
NRNQBBKR
RBBNNQKR
RKNBNQBR
RKQNBBRN
RKQBBNRN
RKBNQBRN
RKQNBBNR
RKQNBBRN
RKBBQNRN
RKNQBBNR
RKQNBBRN
RKNNBBQR
RKQNBBRN
RKNNBBQR
RKQNNBBR
RKQNBBRN
RKN...

result:

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

Test #4:

score: 0
Accepted
time: 20ms
memory: 5152kb

input:

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

output:

RKQNBBRN
RKNBBNQR
RBBQNKRN
BRQNNBKR
RNQNKRBB
QRKRBBNN
RKQNBBRN
RKNBBNQR
RQBNNBKR
RNQKBRNB
NQRBBKRN
NRKRBBQN
RKQNBBRN
NRNQBBKR
RNBQNBKR
NRQBBKNR
NRKRBBNQ
RKQNBBRN
NRBQNBKR
BBRNKQNR
QRNKBRNB
QRKRBNNB
RKQNBBRN
NRBQNBKR
RQKBNNBR
NBNRBKQR
BBNNQRKR
NRKRBQNB
RKQNBBRN
NRBQNBKR
RQKBNNBR
BBRNNKQR
NRKNRQBB
NRK...

result:

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

Test #5:

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

input:

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

output:

RKQNBBRN
RKNBBNQR
RQBNNBKR
QRKNBBNR
RNBKRBQN
RQNKRBBN
RKQNBBRN
RKBBQNRN
RKNQBBNR
RNKNBQRB
RNQKRBBN
RKQNBBRN
NRNQBBKR
RBBNNQKR
NBRKBRQN
RNNKRBBQ
RKQNBBRN
NRBQNBKR
RNNKQRBB
RNNBKRBQ
RQNKRNBB
RKQNBBRN
NRNQBBKR
RNBKQNRB
RNBBKNRQ
RNQKRNBB
RKQNBBRN
NRBQNBKR
RNNKQRBB
RNNKRQBB
RKQNBBRN
NRNQBBKR
RNBKQNRB
RNQ...

result:

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

Test #6:

score: 0
Accepted
time: 13ms
memory: 4936kb

input:

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

output:

RKQNBBRN
RKNBBNQR
NRBQKBRN
BRKQNBRN
QRBKNBRN
RKQNBBRN
RKNBBNQR
NRBQKBRN
NRBKQBRN
RKQNBBRN
NRNQBBKR
RQNKNBBR
RNNBBKQR
NRBKNBRQ
RKQNBBRN
NRBQNBKR
RNBBQNKR
NRNBBKQR
BNRQKBNR
QRBKNNRB
RKQNBBRN
NRBQNBKR
RNBBQNKR
NRKBBNQR
NRBKQNRB
RKQNBBRN
NRBQNBKR
NRNBBQKR
RQBBNNKR
BRNKNBQR
NRBKNQRB
RKQNBBRN
RKBBQNRN
RKN...

result:

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

Test #7:

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

input:

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

output:

RKQNBBRN
NRNQBBKR
RKBBQNNR
RBBNNKQR
RBBQKRNN
RKQNBBRN
RKNBBNQR
RQBNNBKR
QRKNBBNR
RNBKRBQN
RBBNKRQN
RKQNBBRN
NRNQBBKR
RNBKQNRB
RBBNKRNQ
RKQNBBRN
RKBBQNRN
RKNQBBNR
BRQKNBRN
RBQNKRBN
RKQNBBRN
NRNQBBKR
RBBNNQKR
RNKBBNQR
NRBBKQRN
RBNQKRBN
RKQNBBRN
NRNQBBKR
RKBBQNNR
BRQNKRNB
RBNNKRBQ
RKQNBBRN
NRNQBBKR
RNB...

result:

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

Test #8:

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

input:

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

output:

RKQNBBRN
NRBBNQKR
BRNBQKNR
BNRBNKQR
NBBRQKNR
QRNBKNBR
RKQNBBRN
NRBQNBKR
RNBBQNKR
NRKBBNQR
NRQBKNBR
RKQNBBRN
NRBBNQKR
NRBBQKNR
NRNBKQBR
RKQNBBRN
NRNQBBKR
RNBQNBKR
NRKNQBBR
QRNNKBBR
RKQNBBRN
RKNBBNQR
RBBQNKRN
BRQNKBNR
NRQNKBBR
RKQNBBRN
NRBQNBKR
RBBQNNKR
NRBKQBNR
NRNQKBBR
RKQNBBRN
NRBQNBKR
BBRNKQNR
QBR...

result:

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

Test #9:

score: 0
Accepted
time: 15ms
memory: 4988kb

input:

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

output:

RKQNBBRN
NRBBNQKR
BBRQNKNR
BNRBKNQR
NBRKQNBR
QBBRKNNR
RKQNBBRN
NRBBNQKR
BRNBNKQR
NBBRKQNR
RKQNBBRN
NRBBNQKR
BRNBQKNR
NRKQNRBB
NBBRKNQR
RKQNBBRN
NRBBNQKR
BBRQKNNR
BRNQKRNB
QBNRKNBR
RKQNBBRN
NRBQNBKR
RQKBNNBR
RNBBKQNR
NRKBRQBN
NBQRKNBR
RKQNBBRN
NRBBNQKR
BRNBQKNR
BBRQNNKR
NBNRKQBR
RKQNBBRN
NRBQNBKR
RNB...

result:

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

Test #10:

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

input:

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

output:

RKQNBBRN
NRBBNQKR
BBRQNKNR
RKQNBBRN
NRBQNBKR
BBRNKQNR
BBRNKNQR
BBRNQKNR
RKQNBBRN
NRBQNBKR
RQKBNNBR
BBRNNKQR
RKQNBBRN
NRBBNQKR
BRNBQKNR
BRNBKNQR
BQRBNKNR
RKQNBBRN
NRBBNQKR
BBRQNKNR
BBRKNNQR
BNRBQKNR
RKQNBBRN
NRBBNQKR
BRNBQKNR
BNRBNKQR
RKQNBBRN
NRNQBBKR
RBBNNQKR
NRBNKQRB
RNKBBQNR
QBRNBKNR
RKQNBBRN
NRB...

result:

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

Test #11:

score: 0
Accepted
time: 14ms
memory: 5116kb

input:

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

output:

RKQNBBRN
NRNQBBKR
RNBQNBKR
NRBNKBQR
RQNBBNKR
RKQNBBRN
RKNBBNQR
RKQBNNBR
RNQBBNKR
RKQNBBRN
NRNQBBKR
RNBQNBKR
RNNBBQKR
RKQNBBRN
RKBBQNRN
RQNNBBKR
RKQNBBRN
RKNNBBQR
RKQNNBBR
RNQNBBKR
RKQNBBRN
RKNBBNQR
RBNNBQKR
RNNQBBKR
RKQNBBRN
NRBQNBKR
NRNBBQKR
RNBBNQKR
BRQBNNKR
RKQNBBRN
NRBBNQKR
BRNBNKQR
NRNBQKBR
BRN...

result:

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

Extra Test:

score: 0
Extra Test Passed