QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#465866#7179. Fischer's Chess Guessing Gameucup-team4347TL 1041ms3972kbC++234.5kb2024-07-07 12:23:262024-07-07 12:23:26

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 3728kb

input:

GAME 1
4
3
3
3
8
END

output:

RQKBBNRN
RQKNBRNB
RNKRBBQN
RBQNBKRN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 1041ms
memory: 3972kb

input:

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

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
BNQNRKRB
RKRBBNNQ
RKRBBQNN
RQKNBBRN
NRBKQBRN
RKNBBRQN
RKQBBRNN
RKRBBNQN
RQKBBNRN
RQKNBRNB
NRKQBNRB
RKQBBNNR
RKRBBNNQ
NRBBNKQR
BNRKQBNR
RNBQKRNB
RKRBQNBN
RQKNBBRN
RKNQNBBR
RKQBNRBN
RKNBQRBN
RKRBNQBN
NRBBNKQR
RBBNQNKR
RNNKBBQR
RQBBKRNN
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RNKQRBBN
RNK...

result:

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

Test #3:

score: 0
Accepted
time: 745ms
memory: 3700kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RKNBBRQN
RNKBQRBN
RKRBBNNQ
RKQBBNNR
NRNBBKQR
BNRBNKQR
NRBBQNKR
NBNQRKBR
RKNBBQNR
RQKNBBRN
RKNQNBBR
RKQBNRBN
RKNBBQNR
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBQKRNBN
RBKQNRBN
RKQBNNBR
RQKNBBRN
RNBQKRNB
NNRBBKQR
RKRBNNBQ
RKNBQNBR
NRNBBKQR
NRKQBBRN
RQNBKNBR
RKNBNQBR
RQKNBBRN
RQBNKBNR
RNB...

result:

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

Test #4:

score: 0
Accepted
time: 927ms
memory: 3748kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRKNBRN
QRKRBBNN
RQKBBNRN
NRBBQKRN
RBBKNQRN
NQRNBKRB
NRKRBBQN
RQKBBNRN
RKNBNQBR
BNQRKBRN
BRKRQNNB
NRKRBBNQ
RQKNBBRN
RNNKQBBR
BRKNRNQB
BRKBRQNN
QRKRBNNB
RQKBBNRN
RKBBNQNR
RNKNRQBB
RQNNKBBR
NRKRBQNB
NRNBBKQR
BNRBNKQR
NRKRBNQB
RQKNBBRN
NRBKQBRN
NRKQBBNR
QRKRNBBN
RQKNBBRN
NRB...

result:

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

Test #5:

score: 0
Accepted
time: 1040ms
memory: 3688kb

input:

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

output:

RQKNBBRN
RQBNKBNR
RBKNBNQR
RQBBNKRN
RQNKRBBN
RQKBBNRN
RKNBNQBR
NNQBBRKR
NRBBNKRQ
RNQKRBBN
NRBBNKQR
RKNNRQBB
RKQNBRNB
RQNKRBBN
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RBQNBNKR
RNKQRNBB
RNKQBRNB
RQNKRNBB
RQKNBBRN
RNBQKRNB
RNBBNKQR
NBBRKRQN
RNQKRNBB
RQKBBNRN
BNRKRNQB
BNRBNKQR
RNNKRQBB
RQKNBBRN
RNNKQBBR
RBQKRNBN
RBK...

result:

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

Test #6:

score: 0
Accepted
time: 990ms
memory: 3760kb

input:

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

output:

NRNBBKQR
BQNRKRNB
RNKNQBBR
RKBBNQRN
QRBKNBRN
NRNBBKQR
RBQNBNKR
QRNKRBBN
NRKRQBBN
NRBKQBRN
RQKNBBRN
RNQKNBBR
QRBNNBKR
BRKQNBNR
BNRNQBKR
NRBKNBRQ
RQKBBNRN
RKBBNQNR
RNKNRQBB
NRQBKNBR
NBBRKQRN
QRBKNNRB
NRBBNKQR
NRBQKBRN
NRNQBKRB
NRKQBBNR
NRBKQNRB
NRNBBKQR
RBQNBNKR
QRNKRBBN
NQNRKRBB
NRBKNQRB
RQKNBBRN
RQB...

result:

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

Test #7:

score: 0
Accepted
time: 1030ms
memory: 3688kb

input:

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

output:

RQKBBNRN
RKBBNQNR
NQRBNKBR
RBBKRNNQ
RKBNRNQB
RBBQKRNN
NRNBBKQR
BQNRKRNB
BRQKNNRB
RBKNBRNQ
NBRNKRBQ
RBBNKRQN
RQKBBNRN
BNRKRNQB
RKQNNBBR
QRBBNKNR
QBNNBRKR
RBBNKRNQ
NRBBNKQR
RKNNRQBB
RKQNBBRN
RNQKRBBN
RBQNKRBN
NRNBBKQR
BQNRKRNB
BQRKNBNR
RBNQKRBN
RQKBBNRN
BNRKRNQB
RKNQNBBR
NRNBQKBR
RBNNKRBQ
RQKBBNRN
RQK...

result:

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

Test #8:

score: -100
Time Limit Exceeded

input:

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

output:

RQKBBNRN
RKBBNQNR
RNKNRQBB
NRQBKNBR
QRNBKNBR
RQKBBNRN
RKNBNQBR
RKQNRBBN
QRNBKRBN
NRQBKNBR
NRNBBKQR
NRKBBQNR
NRBBQKNR
NRQBBNKR
NRNBKQBR
RQKBBNRN
BBRNNKQR
QNBNRBKR
QRBKNBNR
QRNNKBBR
NRNBBKQR
NRKQBBRN
NRQNKBBR
RQKNBBRN
RNBQKRNB
BNRKQBNR
QNNBBRKR
QBBNRKNR
BRKBNRNQ

result: