QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#171609#7179. Fischer's Chess Guessing Gameucup-team1828#AC ✓58ms4272kbC++142.2kb2023-09-09 17:18:022023-09-09 17:18:02

詳細信息

Test #1:

score: 100
Accepted
time: 47ms
memory: 4080kb

input:

GAME 1
2
3
1
3
0
8
END

output:

RBBNNQKR
RKNBQNBR
NRQBNKBR
RKNNRQBB
BBNNQRKR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 49ms
memory: 4044kb

input:

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

output:

RBBNNQKR
RKNBQNBR
NRQBNKBR
RKNNRQBB
BBNNQRKR
RKRBBQNN
RBBNNQKR
RNQBBKRN
BNQNRKRB
BBNNQRKR
RKRBBNQN
RBBNNQKR
RNQBBKRN
RKNBBRNQ
RKRBBNNQ
RBBNNQKR
RNQBBKRN
RKNBBRNQ
RQKBRNBN
RKRBQNBN
RBBNNQKR
RKBNQBRN
RKBQNRNB
BNRBKQNR
RKRBNQBN
RBBNNQKR
RKNBQNBR
RKBNNRQB
BBNNQRKR
RKRBNNBQ
RBBNNQKR
RNQBBKRN
RKNBBRNQ
QRK...

result:

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

Test #3:

score: 0
Accepted
time: 55ms
memory: 4264kb

input:

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

output:

RBBNNQKR
RKNBQNBR
RKBNNRQB
BBNNRKQR
RKQBBNNR
RBBNNQKR
RKBNQBRN
QRNNBBKR
NBBNRQKR
RKNBBQNR
RBBNNQKR
RKNBQNBR
NBNRBKQR
RKNBBNQR
RBBNNQKR
RKBNQBRN
QRNNBBKR
RBKQRNBN
BBNNQRKR
RKQBNNBR
RBBNNQKR
RKNBQNBR
RBBNNQKR
BBRNQNKR
RQNBNKBR
BBNNQRKR
RKNBNQBR
RBBNNQKR
RKBNQBRN
QRBBNKRN
BNNBQRKR
RKQNBBNR
RBBNNQKR
RKN...

result:

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

Test #4:

score: 0
Accepted
time: 47ms
memory: 4272kb

input:

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

output:

RBBNNQKR
QNRKBNRB
BNQRKRNB
NRKRQBBN
QRKRBBNN
RBBNNQKR
QNRKBNRB
NRKBRNBQ
BNRKRBQN
NRKRBBQN
RBBNNQKR
QNRKBNRB
NRKBRNBQ
BBNQRKRN
NRKRBBNQ
RBBNNQKR
QNRKBNRB
BNRKQRNB
BNNBRKRQ
QRKRBNNB
RBBNNQKR
RNQBBKRN
NNRQKRBB
BQRKNRNB
BBNNRKRQ
NRKRBQNB
RBBNNQKR
QNRKBNRB
NQNRBKRB
BBNQRKRN
NRKRBNQB
RBBNNQKR
RNQBBKRN
NNR...

result:

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

Test #5:

score: 0
Accepted
time: 52ms
memory: 4268kb

input:

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

output:

RBBNNQKR
RNQBBKRN
BRQNKBRN
RBNKRQBN
RQNKRBBN
RBBNNQKR
RNQBBKRN
BNQNRKRB
BBRQKNRN
RNQKRBBN
RBBNNQKR
RNQBBKRN
BRQNKBRN
QBRKBRNN
BBNNRKRQ
RNNKRBBQ
RBBNNQKR
RNQBBKRN
NNRQKRBB
BQRKNRNB
BBNQRKRN
RQNKRNBB
RBBNNQKR
RNQBBKRN
RKNBBRNQ
QBNRBKRN
RNQKRNBB
RBBNNQKR
RKNBQNBR
NRQBNKBR
RKNNRQBB
RNNKRQBB
RBBNNQKR
RKB...

result:

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

Test #6:

score: 0
Accepted
time: 58ms
memory: 4200kb

input:

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

output:

RBBNNQKR
RKNBQNBR
BBRKNRQN
BQNBRKRN
QRBKNBRN
RBBNNQKR
RNQBBKRN
BRQNKBRN
BBQRKRNN
BBNNQRKR
NRBKQBRN
RBBNNQKR
RKNBQNBR
BBRKNRQN
BNRNQKRB
NRBKNBRQ
RBBNNQKR
RKNBQNBR
RNBQKBNR
BBRNKRQN
BBNNRKQR
QRBKNNRB
RBBNNQKR
RNQBBKRN
NNRQKRBB
BQRKNRNB
BBNNRKRQ
NRBKQNRB
RBBNNQKR
RKBNQBRN
QRNNBBKR
RBKQRNBN
NRBKNQRB
RBB...

result:

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

Test #7:

score: 0
Accepted
time: 53ms
memory: 4044kb

input:

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

output:

RBBNNQKR
RKBNQBRN
RKBQNRNB
BBQRKRNN
RBBQKRNN
RBBNNQKR
BBRNQNKR
QNBRNBKR
BBRNKRQN
RBBNKRQN
RBBNNQKR
BBRNQNKR
QNBRNBKR
BBRNKRQN
RBBNKRNQ
RBBNNQKR
RKBNQBRN
RKBQNRNB
NBBQRKRN
BBNNRKQR
RBQNKRBN
RBBNNQKR
RKNBQNBR
NRQBNKBR
RKNNRQBB
BBNNQRKR
RBNQKRBN
RBBNNQKR
RKBNQBRN
QRNNBBKR
NBNRQKBR
BBNNRKQR
RBNNKRBQ
RBB...

result:

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

Test #8:

score: 0
Accepted
time: 54ms
memory: 4128kb

input:

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

output:

RBBNNQKR
RNQBBKRN
NNRQKRBB
BQRKNRNB
BBNNRKQR
QRNBKNBR
RBBNNQKR
RNQBBKRN
BRQNKBRN
NRBBKRQN
BBNNQRKR
NRQBKNBR
RBBNNQKR
RKNBQNBR
RKRQNBBN
RNKBBRQN
NRNBKQBR
RBBNNQKR
RKNBQNBR
NRQBNKBR
NQBBRNKR
BBNNQRKR
QRNNKBBR
RBBNNQKR
RKNBQNBR
RQKNBBRN
BRNQNBKR
BBNNQRKR
NRQNKBBR
RBBNNQKR
RNQBBKRN
BRKNRNQB
NNRKQRBB
NRN...

result:

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

Test #9:

score: 0
Accepted
time: 50ms
memory: 4052kb

input:

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

output:

RBBNNQKR
RKBNQBRN
QBBNRKNR
BBNNQRKR
QBBRKNNR
RBBNNQKR
BBRNQNKR
QNBRNBKR
RKQBNRBN
NBBRKQNR
RBBNNQKR
RKBNQBRN
QBBNRKNR
QBRKBNNR
NBBRKNQR
RBBNNQKR
RKNBQNBR
RKRQNBBN
RNKBBRQN
BBNNQRKR
QBNRKNBR
RBBNNQKR
RKNBQNBR
NRQBNKBR
NBNRQKBR
NBQRKNBR
RBBNNQKR
RKBNQBRN
BBQRNKNR
BQNBNRKR
BBNNQRKR
NBNRKQBR
RBBNNQKR
RKN...

result:

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

Test #10:

score: 0
Accepted
time: 55ms
memory: 4264kb

input:

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

output:

RBBNNQKR
RKBNQBRN
BBQRNKNR
BBNNQRKR
BBRQNKNR
RBBNNQKR
RKBNQBRN
QRNNBBKR
NBNRQKBR
BBRNQKNR
RBBNNQKR
BBRNQNKR
BBRNNKQR
RBBNNQKR
RKNBQNBR
RQKNBBRN
BBRKNNQR
BBNNQRKR
BQRBNKNR
RBBNNQKR
RNQBBKRN
RKNBBRNQ
BBNRQKNR
BNRBQKNR
RBBNNQKR
RKNBQNBR
RQKNBBRN
BBNRKNQR
BBNNRKQR
BNRBNKQR
RBBNNQKR
RKBNQBRN
QBBNRKNR
NBR...

result:

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

Test #11:

score: 0
Accepted
time: 54ms
memory: 4112kb

input:

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

output:

RBBNNQKR
RKBNQBRN
QBBNRKNR
BNRNQBKR
BBNNQRKR
RQNBBNKR
RBBNNQKR
RKBNQBRN
QBBNRKNR
BNRNQBKR
RNQBBNKR
RBBNNQKR
BBRNQNKR
QNBRNBKR
RKQBNRBN
RNNBBQKR
RBBNNQKR
BBRNQNKR
RBQNBKRN
BBNNRKQR
RQNNBBKR
RBBNNQKR
BBRNQNKR
RBQNBKRN
BBNNQRKR
RNQNBBKR
RBBNNQKR
RKBNQBRN
QRNNBBKR
BBNQRNKR
RNNQBBKR
RBBNNQKR
RKBNQBRN
BBQ...

result:

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

Extra Test:

score: 0
Extra Test Passed