QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#173221#7179. Fischer's Chess Guessing Gameucup-team856#AC ✓564ms11272kbC++233.8kb2023-09-09 22:30:372023-09-09 22:30:37

詳細信息

Test #1:

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

input:

GAME 1
1
5
2
0
8
END

output:

NRBBNKQR
RKBBNQRN
NNBBRQKR
NNBRKBQR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 564ms
memory: 11272kb

input:

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

output:

NRBBNKQR
RKBBNQRN
NNBBRQKR
NNBRKBQR
RKRBBQNN
NRBBNKQR
RNBBQKRN
RQKBNNBR
BBRNNQKR
NNBBRKRQ
RKRBBNQN
RQKNBBRN
NRKQBBNR
RNBBQKNR
RKBBNRNQ
RKRBBNNQ
NRBBNKQR
RKBBNQRN
NNRKRQBB
NBRQNKBR
RKRBQNBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
NBNRBKRQ
NNBRKQRB
RKRBNQBN
RQKNBBRN
NRQNBBKR
RQBKRNNB
RBNKQRBN
NNBBRKQR
RKRBNNBQ
RQK...

result:

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

Test #3:

score: 0
Accepted
time: 521ms
memory: 10936kb

input:

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

output:

NRBBNKQR
RNBBQKRN
RNBQNBKR
NQRBKNBR
RKQBBNNR
RQKBBNRN
NRNBBKQR
NNBRQKRB
NNRBKQBR
RKNBBQNR
NRNBBKQR
BQNBRNKR
NBBRQKNR
RKNBBNQR
NRNBBKQR
RNQBBKRN
RNKBQNBR
RKQBNNBR
NRNBBKQR
RQKBBNRN
RBNNBKRQ
NNQRBKRB
RKNBQNBR
RQKNBBRN
RQBKNNRB
BBRQNNKR
NRQNKBBR
NNBBRQKR
RKNBNQBR
NRNBBKQR
RNQBBKRN
RNKBBNQR
RBNKBQNR
NNB...

result:

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

Test #4:

score: 0
Accepted
time: 561ms
memory: 11004kb

input:

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

output:

NRNBBKQR
RNQBBKRN
RNBBKQNR
RBBNNKRQ
NNBBRQKR
QRKRBBNN
NRNBBKQR
BNRBNKQR
BQNNRBKR
NBRQBKRN
NRKRBBQN
RQKBBNRN
NRKBBQNR
NNBRKQRB
NNBBRKRQ
NRKRBBNQ
NRBBNKQR
RKBBNQRN
BNNRQBKR
BRQKRNNB
NNBRKBRQ
QRKRBNNB
NRBBNKQR
RNBBQKRN
BRKQNRNB
NRKBRNBQ
NNBBQRKR
NRKRBQNB
NRBBNKQR
RQBBKNRN
NBRNQKBR
NNBBQRKR
NNBRQBKR
NRK...

result:

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

Test #5:

score: 0
Accepted
time: 548ms
memory: 10976kb

input:

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

output:

NRNBBKQR
QRKNBBNR
RQNBKRBN
NNQRKRBB
NNBBRKRQ
RQNKRBBN
NRBBNKQR
RKNNRQBB
BQRNKRNB
NRQKRNBB
RNQKRBBN
NRNBBKQR
RKNBBQRN
BNRQKBRN
NBRKBRQN
NNBBRKRQ
RNNKRBBQ
RQKBBNRN
NRQBBKNR
BNRQKBRN
NBBRNKRQ
RQNKRNBB
RQKBBNRN
NRKBBQNR
RKNNRBBQ
NBBRKRNQ
NNBBRKRQ
RNQKRNBB
NRNBBKQR
RKNBBQRN
NQNRKRBB
NBBRKRQN
NNBBRQKR
RNN...

result:

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

Test #6:

score: 0
Accepted
time: 542ms
memory: 11008kb

input:

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

output:

NRNBBKQR
QRKNBBNR
QNRKNBBR
BNRNQBKR
QRBKNBRN
NRNBBKQR
RNQBBKRN
RKRBBNNQ
NRBQNKRB
NNBBRKRQ
NRBKQBRN
RQKNBBRN
NRKQBBNR
RBNNBKQR
NRBKRBNQ
NNBBRKRQ
NRBKNBRQ
NRNBBKQR
QRKNBBNR
BBRQNNKR
NBBRKNRQ
NNBBRKRQ
QRBKNNRB
NRNBBKQR
RNQBBKRN
RNQKNBBR
NNRKBQRB
NNBBRKQR
NRBKQNRB
NRNBBKQR
RNQBBKRN
RNQKNBBR
NRBQKBRN
NNB...

result:

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

Test #7:

score: 0
Accepted
time: 558ms
memory: 11268kb

input:

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

output:

RQKNBBRN
NRKQBBNR
RNBQKBNR
BBRQKRNN
RBBQKRNN
NRNBBKQR
QRKNBBNR
NQNRKRBB
NNRKRBBQ
NNRBKRBQ
RBBNKRQN
NRNBBKQR
BBRNKQRN
BBRKNRNQ
NQRKBBRN
RBBNKRNQ
RQKBBNRN
NRKBBQNR
RKNNQRBB
NBBNRKQR
NNBBRKRQ
RBQNKRBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
NNRBBKRQ
NNRBKRBQ
RBNQKRBN
NRNBBKQR
QRKNBBNR
RQNBKRBN
NNRBBKRQ
NNBRKBRQ
RBN...

result:

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

Test #8:

score: 0
Accepted
time: 540ms
memory: 10944kb

input:

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

output:

RQKNBBRN
BBQRNNKR
NRBBQKNR
BNQBRKNR
QRNBKNBR
RQKNBBRN
BBQRNNKR
NBRQNKBR
NBNRKQBR
NRQBKNBR
NRBBNKQR
BRNBQKNR
NRBBQNKR
NNRBKRBQ
NRNBKQBR
RQKBBNRN
NRQKNRBB
NBNRQKBR
NNBRKBRQ
QRNNKBBR
RQKNBBRN
NRKQBBNR
RQBNKBNR
NNBRQBKR
NRQNKBBR
NRNBBKQR
RQNKBBNR
RNQBBKNR
NNBRQKRB
NRNQKBBR
NRNBBKQR
RNKQRNBB
RNBNKBRQ
NNR...

result:

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

Test #9:

score: 0
Accepted
time: 508ms
memory: 11016kb

input:

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

output:

NRNBBKQR
RKNBBQRN
BNRKNBQR
BRKQRNNB
NNBBRQKR
QBBRKNNR
NRBBNKQR
RQBBKNRN
NRNBKRBQ
NNBQRKRB
NNBBRKRQ
NBBRKQNR
NRBBNKQR
NBNRBKRQ
RBNQBKNR
NNBQRBKR
NBBRKNQR
NRNBBKQR
RNQBBKRN
BBRNQNKR
NBRKBQNR
NNBBRQKR
QBNRKNBR
NRNBBKQR
RNQBBKRN
BRNQKBRN
NBNQRKBR
NNBRQBKR
NBQRKNBR
NRNBBKQR
RNKBBQRN
NQBBRNKR
NNRKRBBQ
NBN...

result:

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

Test #10:

score: 0
Accepted
time: 537ms
memory: 11040kb

input:

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

output:

NRNBBKQR
RNQBBKRN
BRNQKBRN
NRNKRQBB
NNBRQKRB
BBRQNKNR
NRBBNKQR
RNBBQKRN
RNBQNBKR
BBRNNKRQ
BBRNQKNR
RQKBBNRN
BNRNQBKR
NBBRNQKR
NNRBQKBR
BBRNNKQR
RQKBBNRN
NRKBBQNR
BBNQRNKR
RQBBNKNR
BQRBNKNR
NRNBBKQR
RNKBBQRN
BRKBRNNQ
NNBBRKRQ
BNRBQKNR
NRNBBKQR
RQNKBBNR
NNRBQKBR
NNBBRKQR
BNRBNKQR
NRNBBKQR
RNKBBQRN
BRQ...

result:

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

Test #11:

score: 0
Accepted
time: 549ms
memory: 10976kb

input:

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

output:

NRNBBKQR
BNRBNKQR
RBNKBRQN
NNBBQRKR
RQNBBNKR
NRNBBKQR
RQKBBNRN
BRKQRBNN
NNBBRQKR
RNQBBNKR
RQKBBNRN
NRNBBKQR
BRKBQRNN
NNBBQRKR
RNNBBQKR
NRNBBKQR
RQKBBNRN
RBNNBKRQ
NNBRKBRQ
NNBBRKRQ
RQNNBBKR
NRNBBKQR
RNQBBKRN
NQRBKRBN
NNBQRBKR
RNQNBBKR
NRNBBKQR
RNKBBQRN
NBBRQKRN
NNRKBRQB
NNBBRQKR
RNNQBBKR
NRNBBKQR
RNK...

result:

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

Extra Test:

score: 0
Extra Test Passed