QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#173982#7179. Fischer's Chess Guessing Gameucup-team1657#AC ✓316ms4100kbC++142.5kb2023-09-10 03:19:132023-09-10 03:19:14

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3752kb

input:

GAME 1
1
2
2
5
2
8
END

output:

NNBBRKRQ
NBNRBQKR
NBRKQRBN
RKNBBRQN
RNNKBRQB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 306ms
memory: 3752kb

input:

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

output:

NNBBRKRQ
NBNRBQKR
NBRKQRBN
RKNBBRQN
RNNKBRQB
RKRBBQNN
NNBBRKRQ
NBNRBQKR
BRNBKRQN
BNRNKBQR
NRQNKRBB
RKRBBNQN
NNBBRKRQ
NNRKBBQR
NBNRQKBR
BNRNKQRB
RKBNRBQN
RKRBBNNQ
NNBBRKRQ
NBNRBQKR
BNRNKRQB
BRKQNBRN
RKRBQNBN
NNBBRKRQ
NBNRBQKR
BRNBKRQN
NRKNQRBB
BBRKNRNQ
RKRBNQBN
NNBBRKRQ
NNRKBBQR
NRBQKRNB
BBRNQKRN
RKN...

result:

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

Test #3:

score: 0
Accepted
time: 310ms
memory: 3812kb

input:

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

output:

NNBBRKRQ
NBNRBQKR
NBRKQRBN
BNQRKBNR
BRKBNQNR
RKQBBNNR
NNBBRKRQ
NBNRBQKR
NBRNKQBR
NRKRBQNB
NRNKBBQR
RKNBBQNR
NNBBRKRQ
NBNRBQKR
NBRKBRQN
NRNKQBBR
RBBKNQNR
RKNBBNQR
NNBBRKRQ
NBNRBQKR
BRNBKRQN
RBKQRNBN
RNKQBRNB
RKQBNNBR
NNBBRKRQ
NBNRBQKR
NBRKQRBN
RKNBBRQN
RKNBQNBR
NNBBRKRQ
NBNRBQKR
NBRKBRQN
BNQRNBKR
BRN...

result:

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

Test #4:

score: 0
Accepted
time: 305ms
memory: 3752kb

input:

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

output:

NNBBRKRQ
BBNNQRKR
RKRQNNBB
QRKRBBNN
NNBBRKRQ
NBNRBQKR
NBRKBRQN
NBRKQNBR
NRKRBBQN
NNBBRKRQ
NNRKBBQR
NNRQKRBB
NRNBBQKR
NBQRBKNR
NRKRBBNQ
NNBBRKRQ
BBNNQRKR
RKRQNNBB
RKQRBBNN
QRKRNBBN
QRKRBNNB
NNBBRKRQ
NBNRBQKR
NBRNKQBR
NRKRBQNB
NNBBRKRQ
NBNRBQKR
NBRKBRQN
NBRQKNBR
NRKRBNQB
NNBBRKRQ
BBNNQRKR
RKRQNNBB
RKQ...

result:

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

Test #5:

score: 0
Accepted
time: 316ms
memory: 3868kb

input:

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

output:

NNBBRKRQ
NBNRBQKR
BRNBKRQN
NRKNQRBB
BBRKNRNQ
RQNKRBBN
NNBBRKRQ
NNRKBBQR
NNRQKRBB
NRKBBRQN
RNNKBQRB
RNQKRBBN
NNBBRKRQ
NNBRKBQR
NNRKBQRB
NRNKRBBQ
RNNKRBBQ
NNBBRKRQ
NBNRBQKR
BRNBKRQN
RBKQRNBN
RBKNNRBQ
RQNKRNBB
NNBBRKRQ
NNRKBBQR
NBNRQKBR
NRBNKRQB
BRNKNBRQ
RNQKRNBB
NNBBRKRQ
NNRKBBQR
NBNRQKBR
NRBKQRNB
NRK...

result:

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

Test #6:

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

input:

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

output:

NNBBRKRQ
NNRKBBQR
NBNRQKBR
BNRNKQRB
RKBNRBQN
QRBKNBRN
NNBBRKRQ
NNBRKBQR
NNRBBQKR
NRBKRNQB
NRBKQBRN
NNBBRKRQ
NNBBQRKR
NNRKBBRQ
NNRQBKRB
NRBKNBRQ
NNBBRKRQ
NNRKBBQR
NRBQKRNB
NBNRKRBQ
RKBQRBNN
QRBKNNRB
NNBBRKRQ
NNBRKBQR
NNRKBQRB
NRNKBBRQ
NRBKQNRB
NNBBRKRQ
NNBRKBQR
NNRKBQRB
NRBKNQRB
NNBBRKRQ
NBNRBQKR
NBR...

result:

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

Test #7:

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

input:

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

output:

NNBBRKRQ
NBNRBQKR
BRNBKRQN
BNRNKBQR
BRNKQNRB
RBBQKRNN
NNBBRKRQ
NBNRBQKR
BRNBKRQN
BRNKRNQB
RBBNKRQN
NNBBRKRQ
NNRKBBQR
BBNRKNRQ
BRNNQKRB
RBBNKRNQ
NNBBRKRQ
BBNNQRKR
BBRKNNQR
BRNQKRNB
RBQNKRBN
NNBBRKRQ
BBNNQRKR
BBRKNNQR
BRNQKRNB
RBNQKRBN
NNBBRKRQ
NBNRBQKR
NBRKQRBN
NRNQKRBB
NRKRQNBB
RBNNKRBQ
NNBBRKRQ
NNR...

result:

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

Test #8:

score: 0
Accepted
time: 293ms
memory: 3872kb

input:

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

output:

NNBBRKRQ
NBNRBQKR
NBRKQRBN
BRNKNQRB
BQRBNNKR
QRNBKNBR
NNBBRKRQ
NNRKBBQR
NBNRQKBR
NNQRKRBB
NBBRKRQN
NRQBKNBR
NNBBRKRQ
NNRKBBQR
NBNRQKBR
NBBNQRKR
NRNBKQBR
NNBBRKRQ
BBNNQRKR
BBRKNNQR
BRNQKRNB
QBNRKRBN
QRNNKBBR
NNBBRKRQ
NBNRBQKR
NBRKQRBN
RKNBBRQN
NRKQNBBR
NRQNKBBR
NNBBRKRQ
NBNRBQKR
NBRKBRQN
NRNQKBBR
NNB...

result:

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

Test #9:

score: 0
Accepted
time: 245ms
memory: 4100kb

input:

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

output:

NNBBRKRQ
NBNRBQKR
NBRKBRQN
NRNQKBBR
RBBNKQNR
QBBRKNNR
NNBBRKRQ
NNRKBBQR
NBNRQKBR
NBBNQRKR
NBBRKQNR
NNBBRKRQ
NNRKBBQR
NNRQKRBB
NRKBBRQN
NBBRKNQR
NNBBRKRQ
BBNNQRKR
BBRKNNQR
BBRQKRNN
RBQNKNBR
QBNRKNBR
NNBBRKRQ
NBNRBQKR
NBRNKQBR
NBQRKNBR
NNBBRKRQ
NBNRBQKR
NBNRKQBR
NNBBRKRQ
NNRKBBQR
NNRQKRBB
NRKBBRQN
BNN...

result:

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

Test #10:

score: 0
Accepted
time: 234ms
memory: 3860kb

input:

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

output:

NNBBRKRQ
NBNRBQKR
NBRKQRBN
RKNBBRQN
NRKQNBBR
BBRQNKNR
NNBBRKRQ
NBNRBQKR
NBRKQRBN
NRNQKRBB
BBRNQKNR
NNBBRKRQ
NBNRBQKR
NBRKQRBN
RKNBBRQN
RBKRNNBQ
BBRNNKQR
NNBBRKRQ
NNRKBBQR
NBNRQKBR
NRBKQRNB
BQRBNKNR
NNBBRKRQ
NNBRKBQR
NNRKBQRB
NRNKRBBQ
BNRBQKNR
NNBBRKRQ
NNBRKBQR
NNRBBQKR
NBBNRQKR
BNRBNKQR
NNBBRKRQ
NBN...

result:

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

Test #11:

score: 0
Accepted
time: 278ms
memory: 3840kb

input:

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

output:

NNBBRKRQ
NBNRBQKR
NBRNKQBR
BNNRQBKR
RQNBBNKR
NNBBRKRQ
NNRKBBQR
NNRQKRBB
NRNBBQKR
NRBNQBKR
RNQBBNKR
NNBBRKRQ
NNRKBBQR
NNRQKRBB
NRNBBQKR
NRKBBQNR
RNNBBQKR
NNBBRKRQ
BBNNQRKR
BBNRKNQR
BBRKQRNN
RQNNBBKR
NNBBRKRQ
NBNRBQKR
NBRKBRQN
NRNQKBBR
RBBNKQNR
RNQNBBKR
NNBBRKRQ
NBNRBQKR
NBRNKQBR
BNNRQBKR
RNNQBBKR
NNB...

result:

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

Extra Test:

score: 0
Extra Test Passed