QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#465868#7179. Fischer's Chess Guessing Gameucup-team4347TL 973ms3732kbC++234.5kb2024-07-07 12:25:152024-07-07 12:25:15

詳細信息

Test #1:

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

input:

GAME 1
3
2
2
8
END

output:

RBKNBRQN
RQNNBBKR
RNKRQBBN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 954ms
memory: 3684kb

input:

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

output:

BNRKQNRB
RNBBNQKR
NNQRBBKR
QRBBKNNR
RKRBBQNN
RQKBBNNR
NQRBKNBR
RBKQNNBR
NRKBBNRQ
RKRBBNQN
NRNKRQBB
BBRQKNNR
RKQBBNNR
RQKBBNNR
RKBBQNNR
RKRBBNNQ
RQBNKRNB
RNNBBQKR
NBRQBKNR
BNRBKNRQ
BNNRQKRB
RKRBQNBN
RQBBNKRN
RQBKNBNR
NRBQNKRB
RNBBKRQN
RKRBNQBN
RKNNQBBR
RKQBRNBN
RKRBNNBQ
NBBRKNRQ
BRNQNBKR
QRKNRBBN
RNK...

result:

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

Test #3:

score: 0
Accepted
time: 915ms
memory: 3660kb

input:

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

output:

RBBKQNNR
BBNRQNKR
RBBNQKRN
RQKBBNNR
RKQBBNNR
BNRKNRQB
QBNRBKNR
QRKBBNNR
RBKNBQNR
RBKRBNNQ
RKNBBQNR
BBNRQKNR
BBRKNRQN
RKNBBRNQ
RKNBBNQR
BBRKQNRN
QRNKBBNR
RKBNRBQN
NRBNKQRB
RKQBNNBR
NQRKNBBR
RKNQRBBN
RBKQNRBN
RKRNBBQN
RKNBQNBR
RKQRBNNB
BBRQKNNR
RNQBKRBN
RBKRNQBN
RBKNBRQN
RKNBNQBR
BNRNKRQB
RKQNNBBR
RKQ...

result:

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

Test #4:

score: 0
Accepted
time: 901ms
memory: 3732kb

input:

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

output:

NRKQBBRN
NRKNBBQR
BRKNQBRN
QRKRBBNN
BNRKNBQR
NQRBBNKR
RKBBNQNR
NRNKBBRQ
NRKRBBQN
NRQKNRBB
NQBRNBKR
RNBKNBRQ
BRKQNBNR
QRBBNKNR
NRKRBBNQ
BRKNQRNB
NRKNQBBR
BRNKQNRB
NRQKBRNB
QRKRBNNB
RKNBBQRN
RQKBNNBR
BBRQKNRN
QRNKBBNR
NRKRBQNB
BNQBNRKR
RKNNRBBQ
NBBRKQRN
NRKRBNQB
NRKBBNQR
BRNQNBKR
BRKNQBRN
QRKRNBBN
BNR...

result:

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

Test #5:

score: 0
Accepted
time: 973ms
memory: 3684kb

input:

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

output:

RNNKQBBR
RBNKNQBR
RNBKNBQR
RQNKRBBN
NNRBKQBR
RKNQNBBR
RNBKQBNR
RQBBNKNR
BNNRQBKR
RNQKRBBN
BNQRKNRB
RQNBBNKR
RBNNKRBQ
RKNRNBBQ
RNNKRBBQ
QBRNBNKR
NRBNQKRB
RNQKBBRN
BNRKNRQB
RNKQRNBB
RQNKRNBB
RKBBNRNQ
BBRKNNQR
NRQKBBNR
QBNNBRKR
RNQKRNBB
NRNQKBBR
RNQNBBKR
NQRBBKNR
RNKQRNBB
RNNKRQBB
RNKNQRBB
NRBKQRNB
NRB...

result:

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

Test #6:

score: -100
Time Limit Exceeded

input:

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

output:

NRBNKBQR
RBBNNQKR
BBNRKNQR
NRKNRQBB
QRBKNBRN
RQKRBBNN
RNNKQBBR
QRBKNBNR
QRNNBBKR
NRBKQBRN
NRBBKRNQ
RNBBKQNR
NRNQKRBB
NRKBBNRQ
NRBKNBRQ
NNBQRKRB
RBBNQKRN
RQBKRNNB
RKBQNRNB
QRBKNNRB
RBNQBKNR
NRKNQRBB
QRKNRBBN
NRBKQNRB
RQKBNRBN
BNRKNBRQ
BBRNKRNQ
QRNKBBRN
RNQKBNRB
NRBKNQRB
RKNBQNBR
QRKNBBNR
RQKRBBNN
BQR...

result: