QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#465858#7179. Fischer's Chess Guessing Gameucup-team4347RE 609ms3864kbC++234.5kb2024-07-07 12:14:432024-07-07 12:14:44

詳細信息

Test #1:

score: 100
Accepted
time: 6ms
memory: 3736kb

input:

GAME 1
2
2
1
4
3
8
END

output:

NRNBBKQR
RNQNBBKR
BBQRNKNR
RBNKBQRN
RQNKBRNB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 528ms
memory: 3724kb

input:

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

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
BNQNRKRB
RKRQNBBN
RKRBBQNN
RQKNBBRN
NRBKQBRN
RKQBBRNN
RKRBBNQN
RQKBBNRN
RQKNBRNB
NRKBBRQN
RKQBBNNR
RKRBBNNQ
NRBBNKQR
BNRKQBNR
RNBQKRNB
QBRNKNBR
BQRBKNRN
RKRBQNBN
NRNBBKQR
BQNRKRNB
RNKNQBBR
RKRBNNBQ
RKRBNQBN
NRBBNKQR
RBBQKNNR
RKNNBBQR
BBNRNQKR
RNBKNBRQ
RKRBNNBQ
RQKBBNRN
NRB...

result:

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

Test #3:

score: 0
Accepted
time: 389ms
memory: 3704kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RKNQBNRB
RKQBBNNR
RQKNBBRN
RKBQNBNR
RKBBRQNN
RKNBBQNR
NRNBBKQR
RQNBBKNR
RKNBBNQR
RQKNBBRN
RNBQKRNB
BBRNQKNR
NQRKRNBB
BRNKNQRB
RKQBNNBR
NRNBBKQR
NRKQBBRN
RNBBKNQR
QNBBRKNR
RKNBQNBR
NRNBBKQR
NRKQBBRN
RQBBNKNR
RKNBNQBR
NRBBNKQR
BNRKQBNR
RKNQBBNR
RNNQBBKR
RKQNBBNR
NRBBNKQR
BNRKQBNR
RKN...

result:

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

Test #4:

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

input:

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

output:

NRNBBKQR
RNQNBBKR
BBQRNKNR
RKNRBQNB
RKBBQNNR
QRKRBBNN
RQKBBNRN
NRBBQKRN
NRKBBQNR
NRKBRNBQ
NRKRBBQN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
BRKRQBNN
QRKRNBBN
NRKRBBNQ
NRBBNKQR
BNRKQBNR
RBQKNRBN
QNBRKNRB
BRNQKNRB
QRKRBNNB
RQKNBBRN
RKBQNBNR
BRKBNNRQ
NRBNQKRB
QNBBRKRN
NRKRBQNB
RQKNBBRN
RKNQNBBR
QNBBRKRN
BQRNKRNB
NRK...

result:

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

Test #5:

score: 0
Accepted
time: 570ms
memory: 3768kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RNKQRBBN
RBKQNRBN
RQNKRBBN
NRNBBKQR
RQKNNRBB
BQRKRNNB
RBBKQRNN
RNQKRBBN
NRNBBKQR
BQNRKRNB
RKBRNBQN
NQRKRBBN
RNNKRBBQ
NRNBBKQR
BQNRKRNB
RBNQKRBN
RNBNKRQB
RKNRNQBB
RQNKRNBB
NRNBBKQR
RBKNNRBQ
RQBNKNRB
BNRNKBRQ
RNQKRNBB
NRBBNKQR
RKNNRQBB
RKNNRBBQ
RNNKRQBB
NRBBNKQR
BNRKQBNR
BQRKNNRB
RQK...

result:

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

Test #6:

score: 0
Accepted
time: 571ms
memory: 3668kb

input:

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

output:

NRBBNKQR
NRBQKBRN
QRBKNBRN
NRBBNKQR
NRBQKBRN
NRBKQBRN
NRNBBKQR
RNQNBBKR
QRBNNKRB
NNBQRKRB
RQBBNKRN
NRBKNBRQ
NRNBBKQR
BQNRKRNB
BBRKRNQN
RKNQRBBN
QRBKNNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
QNNBBRKR
BRKRNQNB
NRBKQNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
NRNKBRQB
BRNBKRQN
NRBKNQRB
RQKNBBRN
RQBNKBNR
RBNQBKRN
RNKQBNRB
QRN...

result:

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

Test #7:

score: 0
Accepted
time: 609ms
memory: 3716kb

input:

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

output:

RQKNBBRN
RNNKQBBR
NNRQBKRB
RKBNRNQB
BRKNQRNB
RBBQKRNN
NRBBNKQR
RBBNKQNR
RBBKQNNR
RBBNKRQN
NRBBNKQR
BNRKQBNR
RQBNKRNB
RBBNKRNQ
RQKNBBRN
NRBKQBRN
RKNBBRQN
RNNQBKRB
RBQNKRBN
NRBBNKQR
RKNNRQBB
QNRKRNBB
RBNQKRBN
RQKNBBRN
RNNKQBBR
RBQKRNBN
RBNNKRBQ
RQKBBNRN
RQKNBRNB
RQBBKRNN
NRNBBKQR
RNQNBBKR
BBQRNKNR
RQN...

result:

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

Test #8:

score: -100
Runtime Error

input:

GAME 1
0
2
4
5
8
GAME 2
4
2
1
8
GAME 3
5
3
8
GAME 4
3
2
2
4
8
GAME 5
2
2
2
2
8
GAME 6
1
2
2
2
2
1

output:

RQKNBBRN
BBQRNNKR
QRBBNKNR
NRBBKNQR
QRNBKNBR
NRNBBKQR
BNRBNKQR
RKNNBBQR
NRQBKNBR
NRNBBKQR
BNNBRKQR
NRNBKQBR
NRNBBKQR
NRKQBBRN
RBNQBNKR
QRKBNNBR
QRNNKBBR
RQKNBBRN
RKBQNBNR
RBNQKRBN
RNKBQNBR
NRQNKBBR
RQKNBBRN
RNBQKRNB
BNRKQBNR
QNNBBRKR
NQBBRKNR
BRKBNRNQ

result: