QOJ.ac

QOJ

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

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 3904kb

input:

GAME 1
3
1
5
8
END

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 544ms
memory: 3720kb

input:

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

output:

RQKBBNRN
RQKNBRNB
QRKBBNNR
RKRBBQNN
RQKNBBRN
NRBKQBRN
RKNBBRQN
RKQBBRNN
RKRBBNQN
RQKBBNRN
RQKNBRNB
NRKQBNRB
RKQBBNNR
RKRBBNNQ
RQKNBBRN
RKBQNBNR
RBNQKRBN
RBBKRNQN
RKRBQNBN
NRBBNKQR
RBBQKNNR
BRKBQRNN
NNRBKRBQ
QNNBBRKR
RKRBNQBN
NRNBBKQR
BQNRKRNB
RBBNQNKR
NBRKRNBQ
RKRBNNBQ
RQKNBBRN
RQBNKBNR
RQKNNRBB
BQN...

result:

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

Test #3:

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

input:

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

output:

RQKNBBRN
RKNQNBBR
NRNKBBQR
RQNKRNBB
RKNBBRNQ
RKQBBNNR
NRNBBKQR
BNRBNKQR
QBNRBKNR
NBNQRKBR
RKNBBQNR
RQKBBNRN
RQKNBRNB
RQBKNBRN
NQRBBNKR
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKQBNNBR
NRBBNKQR
RBBNQNKR
NBRNBQKR
RBBKRNQN
RNBNQKRB
RKNBQNBR
NRNBBKQR
NRKQBBRN
RNBBKNQR
RKNBNQBR
NRNBBKQR
RBQNBNKR
RBQNBKRN
RBK...

result:

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

Test #4:

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

input:

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

output:

RQKNBBRN
RQBNKBNR
RNKQRBBN
RBKRBQNN
QRKRBBNN
NRNBBKQR
BNRBNKQR
NRKNBRQB
NRKBBRNQ
NRKRBBQN
NRBBNKQR
RBBNQNKR
NRKRBQNB
NRKRBBNQ
NRBBNKQR
BNRKQBNR
RNKQNRBB
RKQBBRNN
RBQNKNBR
QRKRBNNB
RQKBBNRN
RKBBNQNR
RNKNRQBB
RNBNKBRQ
NRKRBQNB
RQKBBNRN
NRBBQKRN
RKNBQNBR
NRKRBNQB
NRNBBKQR
BQNRKRNB
RKBNQBNR
NQRKRBBN
BRQ...

result:

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

Test #5:

score: 0
Accepted
time: 547ms
memory: 3888kb

input:

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

output:

RQKNBBRN
RNKBBNRQ
RKQNRBBN
RQNKRBBN
RQKNBBRN
NRBKQBRN
NRKQBBNR
BNQRKBRN
RNQKRBBN
NRNBBKQR
BQNRKRNB
RKBRNBQN
RQKBRNBN
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RBNKBNQR
RNKNBBQR
RQNKRNBB
NRNBBKQR
RNKQRNBB
RNKQNRBB
RNQKRNBB
NRNBBKQR
BQNRKRNB
BRQKNNRB
BNRKQBNR
RBQKBRNN
RNNKRQBB
RQKNBBRN
RKBQNBNR
NRQKBBNR
RKRBBNNQ
RBB...

result:

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

Test #6:

score: 0
Accepted
time: 534ms
memory: 3728kb

input:

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

output:

NRNBBKQR
BQNRKRNB
RBBNNQKR
RNKNBBRQ
QNRKNBBR
QRBKNBRN
RQKNBBRN
NRBKQBRN
RQKBBNRN
BNRKRNQB
BQNRKBNR
RBBKNRNQ
RKBNQRNB
NRBKNBRQ
RQKNBBRN
RNBQKRNB
BNRKQBNR
QRBKNNRB
NRNBBKQR
RNQNBBKR
BRKBNNRQ
NRBKQNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
QBBNNRKR
NRBKNQRB
RQKBBNRN
NRBBQKRN
NRKBBQNR
NQNRBKRB
QRNKBBRN
NRNBBKQR
NRK...

result:

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

Test #7:

score: 0
Accepted
time: 562ms
memory: 3640kb

input:

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

output:

NRNBBKQR
RKBNQRNB
RKRNNQBB
QNBRKRNB
RBBQKRNN
RQKNBBRN
NRBKQBRN
QRKNNBBR
RBBNKNRQ
RNBNKQRB
RBBNKRQN
RQKBBNRN
BNRKRNQB
RKQNNBBR
QRBBNKNR
QBNNBRKR
RBBNKRNQ
RQKNBBRN
NRBKQBRN
RKNBBRQN
RNKBRQBN
RBQNKRBN
RQKBBNRN
RKNBNQBR
RKQNRBBN
RNKRNBBQ
RBNKQRBN
RBNQKRBN
NRBBNKQR
RKNNRQBB
RNNKBQRB
RNKNRBBQ
RBNNKRBQ
RQK...

result:

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

Test #8:

score: 0
Accepted
time: 554ms
memory: 3856kb

input:

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

output:

NRBBNKQR
NRBQKBRN
RBBNNKRQ
QRNBKNBR
RQKBBNRN
RKNBNQBR
RKQNRBBN
RBNNBKQR
RNKQNRBB
NRQBKNBR
RQKBBNRN
BNRKRNQB
RBBQNKNR
QBNRKRBN
NRNBKQBR
RQKBBNRN
BBNRQKNR
BRQNKRNB
BNRKRQNB
QRNNKBBR
NRNBBKQR
NRKQBBRN
RNQBBKRN
NRKBNRBQ
NRQNKBBR
NRNBBKQR
BNRBNKQR
NRKRBNQB
QRNKBBNR
NRNQKBBR
RQKNBBRN
RNBQKRNB
QNBRKNRB
RKN...

result:

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

Test #9:

score: -100
Time Limit Exceeded

input:

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

output:

NRBBNKQR
RNBNQBKR
NBRKQNBR
NQNRKBBR
NBNQBRKR
QBBRKNNR
RQKNBBRN
BBQRNNKR
BBNRKRNQ
NBBRKQNR
RQKNBBRN
BBQRNNKR
BBRKQNNR
NBBRKNQR
NRBBNKQR
BNRKQBNR
RBQKNRBN
QBRNBKRN
RBNQBNKR
QBNRKNBR
NRBBNKQR
RBBNKQNR
RQBBKNRN
NBQRKNBR
RQKNBBRN
BBQRNNKR
NBRQNKBR
NBNRKQBR
RQKBBNRN
BNRQNBKR
NRNQKBBR
NBRKNQBR
QNBRKBNR
RQK...

result: