QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#200981#7179. Fischer's Chess Guessing Gameucup-team1281AC ✓19ms13388kbC++202.3kb2023-10-05 02:53:032023-10-05 02:53:03

詳細信息

Test #1:

score: 100
Accepted
time: 7ms
memory: 11460kb

input:

GAME 1
5
4
4
8
END

output:

RKQBBNRN
RKNBBNQR
RQNBBKRN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 8ms
memory: 12160kb

input:

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

output:

RKQBBNRN
RKNBBNQR
RQNBBKRN
RKRBBQNN
RKQBBNRN
RKQBBRNN
RKQNBBRN
RKQBRNBN
RKRBBNQN
RKQBBNRN
RKNBBNQR
RKQBNNBR
RKBBRNQN
RKRBBNNQ
RKQBBNRN
RKNBBNQR
RQNBBKRN
RKBBNNRQ
RKRBQNBN
RKQBBNRN
RKQNBBNR
RKRBNQBN
RKQBBNRN
RKQNBBNR
RKRBNQBN
RKNBRQBN
RKRBNNBQ
RKQBBNRN
RKQNBBNR
RKRNBBQN
RKRQBBNN
RKQBBNRN
RKQNBBNR
RKR...

result:

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

Test #3:

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

input:

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

output:

RKQBBNRN
RKQBBRNN
RKQBBNNR
RKQBBNRN
RKQNBBNR
RKRNBBQN
RKNBBQNR
RKQBBNRN
RKNBBNQR
RKQBBNRN
RKNBBNQR
RKQBNNBR
RKQBBNRN
RKQNBBNR
RKBQNBRN
RQKBBRNN
RKNBQNBR
RKQBBNRN
RKNQBBNR
RNNBBQKR
RKNBNQBR
RKQBBNRN
RKQNBBNR
RKQBBNRN
RKNQBBNR
RKQBBNRN
RKNQBBNR
RKNQBRNB
RKNNBBQR
RKQBBNRN
RKNQBBNR
RNNBBQKR
RQKRBBNN
RKQ...

result:

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

Test #4:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
QRKRBBNN
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
NRKRBBQN
RKQBBNRN
RBBNNQKR
NQRKRBBN
NRKRBBNQ
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBKQRNN
QRKRBNNB
RKQBBNRN
RBBNNQKR
BRKNRNQB
BRQKNRNB
BBRKRNNQ
NRKRBQNB
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBKQRNN
NRKRBNQB
RKQBBNRN
RBBNNQKR
BRKNRNQB
BQN...

result:

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

Test #5:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
RBBNNKRQ
QRBBKNNR
RQNKRBBN
RKQBBNRN
RKNQBBNR
RNKBQNBR
RNBKQBRN
RNQKRBBN
RKQBBNRN
RBBNNQKR
BRKNRNQB
QNNBRKBR
RNNKRBBQ
RKQBBNRN
RNKBNQBR
RBBNNKRQ
QRBBKNNR
RQNKRNBB
RKQBBNRN
RKNQBBNR
RBBNQKRN
RNQKRNBB
RKQBBNRN
RBBNNQKR
BRNBNKQR
QBRKNRBN
RQNNKRBB
RNNKRQBB
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBB...

result:

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

Test #6:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBKQRNN
QRBKNBRN
RKQBBNRN
RNKBNQBR
NQBRKNRB
NRBKQBRN
RKQBBNRN
RBBNNQKR
BRNBNKQR
BBRQKNNR
QNBRNKRB
NRBKNBRQ
RKQBBNRN
RNKBNQBR
BNRKQNRB
QNRNBKRB
QRBKNNRB
RKQBBNRN
RNKBNQBR
NQBRKNRB
QRBNKNRB
BQRNKNRB
NRBKQNRB
RKQBBNRN
RBBNNQKR
RNKNRQBB
NRBKNQRB
RKQBBNRN
RKNQBBNR
RKBRNBQN
RBK...

result:

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

Test #7:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
RBBNKRQN
RKQBBNRN
RBBNNQKR
BRNBNQKR
RBBNKRNQ
RKQBBNRN
RKNQBBNR
RBBNQKRN
RBBKRNQN
RQBNKNRB
RBQNKRBN
RKQBBNRN
RNKBNQBR
RBBNNKRQ
RKNNQRBB
RQKNBRNB
RBNQKRBN
RKQBBNRN
RBBNNQKR
RNKNRQBB
RQNNKBBR
RBNNKRBQ
RKQBBNRN
RKNQBBNR
RNKBQNBR
RKB...

result:

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

Test #8:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
RKNNRQBB
RNKQBRNB
QRNBKNBR
RKQBBNRN
RKNQBBNR
RBBNQKRN
BRQBNNKR
NRQBKNBR
RKQBBNRN
RBBNNQKR
BRNBNKQR
NNBBRKQR
BNNBQRKR
NRNBKQBR
RKQBBNRN
BNRQKRNB
QBBNRKNR
NRBKQBNR
QRNNKBBR
RKQBBNRN
RBBNNQKR
BRNBNKQR
BBRQKNNR
QRKNBBNR
NRQNKBBR
RKQBBNRN
BNRQKRNB
BNNRQBKR
BRNKRBNQ
NRNQKBBR
RKQBBNRN
RBB...

result:

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

Test #9:

score: 0
Accepted
time: 7ms
memory: 12508kb

input:

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

output:

RKQBBNRN
RBBNNQKR
RNKNRQBB
QRBBNKNR
QBBRKNNR
RKQBBNRN
BNRQKRNB
BNNRQBKR
BRKNRBNQ
NRNKQRBB
NBBRKQNR
RKQBBNRN
RBBNNQKR
RNKNRQBB
QRBBNKNR
BBRKNNQR
NBBRKNQR
RKQBBNRN
RBBNNQKR
BRNBNKQR
BBRQKNNR
QBNRKNBR
RKQBBNRN
RNKBNQBR
RBBNNKRQ
QRBBKNNR
NRNBBKQR
NBQRKNBR
RKQBBNRN
BNRQKRNB
QBBNRKNR
BRKNNBQR
NBNRKQBR
RKQ...

result:

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

Test #10:

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

input:

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

output:

RKQBBNRN
BNRQKRNB
NQBRKRNB
BNRKQBNR
BBRQNKNR
RKQBBNRN
BNRQKRNB
NQRKNRBB
BRKQNBNR
BBRNQKNR
RKQBBNRN
BNRQKRNB
BNNRQBKR
BRKNRBNQ
BBRNNKQR
RKQBBNRN
RBBNNQKR
BRNBNKQR
BRNBKQNR
BQRBNKNR
RKQBBNRN
RBBNNQKR
BRKNRNQB
QNNBRKBR
RNNKRBBQ
BNRBQKNR
RKQBBNRN
RBBNNQKR
BRNBNKQR
QRNBNKBR
BNRBNKQR
RKQBBNRN
RBBNNQKR
RNK...

result:

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

Test #11:

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

input:

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

output:

RKQBBNRN
RKQNBBNR
RKBQNBRN
RQNBBNKR
RKQBBNRN
RKNBBNQR
RKQBNNBR
RNQBBNKR
RKQBBNRN
RKNQBBNR
RNNBBQKR
RKQBBNRN
RNKBNQBR
RBBNNKRQ
RKNNQRBB
RQNNBBKR
RKQBBNRN
RKNQBBNR
RNNBBQKR
RKNBNQBR
RNQNBBKR
RKQBBNRN
RNKBNQBR
RKNNRQBB
RNKQBRNB
RQKNBBNR
RNNQBBKR
RKQBBNRN
RKNQBBNR
RBBNQKRN
BRQBNNKR
RKQBBNRN
RNKBNQBR
RBB...

result:

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

Extra Test:

score: 0
Extra Test Passed