QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#175864#7179. Fischer's Chess Guessing Gameucup-team356AC ✓31ms4144kbC++203.0kb2023-09-11 03:27:322023-09-11 03:27:32

詳細信息

Test #1:

score: 100
Accepted
time: 25ms
memory: 4108kb

input:

GAME 1
1
2
2
1
2
8
END

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
BRNQKBRN
QNRNBKRB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 25ms
memory: 3792kb

input:

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

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
BRNQKBRN
QNRNBKRB
RKRBBQNN
NRBBNKQR
RBBNKQNR
QRKNNRBB
NBNRBKRQ
BQNBRNKR
RKRBBNQN
NRBBNKQR
BNRKQBNR
RNBQKRNB
BRNQKBRN
RBKNBQNR
RKRBBNNQ
NRBBNKQR
BNRKQBNR
RNBQKRNB
BBNQRNKR
QBRKNRBN
RKRBQNBN
NRBBNKQR
RBBNKQNR
NBNQBRKR
BRKBRQNN
QRBKRNNB
RKRBNQBN
NRBBNKQR
RBBNKQNR
QRKNNRBB
NRK...

result:

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

Test #3:

score: 0
Accepted
time: 30ms
memory: 4144kb

input:

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

output:

NRBBNKQR
RBBNKQNR
RKBNNBRQ
BRKNQBNR
RBKQNNBR
RKQBBNNR
NRBBNKQR
RBBNKQNR
BBRNNQKR
RKNBBQNR
NRBBNKQR
NRBQKBRN
RBNNBKQR
RBQNNKBR
RKNBBNQR
NRBBNKQR
NRBQKBRN
RBNNBKQR
BNRBQKNR
RKQBNNBR
NRBBNKQR
RBBNKQNR
NBNQBRKR
BRNNKRQB
NNQRKBBR
RKNBQNBR
NRBBNKQR
NRBQKBRN
RBNNBKQR
BBQRNKNR
QNNBRKBR
RKNBNQBR
NRBBNKQR
BNR...

result:

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

Test #4:

score: 0
Accepted
time: 26ms
memory: 3912kb

input:

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

output:

NRBBNKQR
BNRKQBNR
RNBQKRNB
BBNQRNKR
QRKRBBNN
NRBBNKQR
NRBQKBRN
NBBRQKRN
NRKBBQRN
NRKRBBQN
NRBBNKQR
RBBNKQNR
QRKNNRBB
NRKRBBNQ
NRBBNKQR
BNRKQBNR
RBQKNRBN
BQNNRKRB
QRKRBNNB
NRBBNKQR
RBBNKQNR
NBNQBRKR
BRNNKRQB
BQRNNBKR
NRKRBQNB
NRBBNKQR
NRBQKBRN
BRKBNNRQ
BRNBKQNR
NNRBBKRQ
NRKRBNQB
NRBBNKQR
RBBNKQNR
NRK...

result:

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

Test #5:

score: 0
Accepted
time: 30ms
memory: 3916kb

input:

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

output:

NRBBNKQR
RKNNRQBB
RBKNRNBQ
RKNNBBRQ
RQNKRBBN
NRBBNKQR
RKNNRQBB
QNRKRNBB
QNNRKRBB
RNQKRBBN
NRBBNKQR
RKNNRQBB
RBKNRNBQ
RNKNQRBB
RNNKRBBQ
NRBBNKQR
RKNNRQBB
RKNRQNBB
RKNRBQNB
RQNKRNBB
NRBBNKQR
RKNNRQBB
RBKNRNBQ
RNKNQRBB
RNQKRNBB
NRBBNKQR
RKNNRQBB
RKNNRBBQ
RNKNRQBB
RNNKRQBB
NRBBNKQR
BNRKQBNR
BQRKNNRB
BBN...

result:

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

Test #6:

score: 0
Accepted
time: 22ms
memory: 3904kb

input:

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

output:

NRBBNKQR
NRBQKBRN
NRBQKRNB
QRBKNBRN
NRBBNKQR
NRBQKBRN
NRBKQBRN
NRBBNKQR
BRNBQKNR
NBBRNQKR
NRBKNBRQ
NRBBNKQR
NRBQKBRN
RNBBQKRN
NRQNBKRB
NRBKQRNB
QRBKNNRB
NRBBNKQR
NRBQKBRN
NBBRQKRN
NNBQRKRB
NRBKQNRB
NRBBNKQR
BRNBQKNR
NBBRNQKR
NQBRNKRB
NRBKNQRB
NRBBNKQR
BNRKQBNR
RNBQKRNB
NBRKBNRQ
QRNKBBRN
NRBBNKQR
RBB...

result:

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

Test #7:

score: 0
Accepted
time: 26ms
memory: 3908kb

input:

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

output:

NRBBNKQR
BNRKQBNR
RBQKNRBN
NBRQKRBN
RBBQKRNN
NRBBNKQR
RBBNKQNR
RBBKQNNR
RBBNKRQN
NRBBNKQR
BNRKQBNR
RBQKNRBN
NBRNKRBQ
RBBNKRNQ
NRBBNKQR
RKNNRQBB
QNRKRNBB
RBKNQRBN
RBQNKRBN
NRBBNKQR
RKNNRQBB
QNRKRNBB
RBKNQRBN
RBNQKRBN
NRBBNKQR
RKNNRQBB
RBKNRNBQ
RBNNKRBQ
NRBBNKQR
RBBNKQNR
BBRNNQKR
RNBBKRNQ
RQBBKRNN
NRB...

result:

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

Test #8:

score: 0
Accepted
time: 30ms
memory: 4104kb

input:

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

output:

NRBBNKQR
NRBQKBRN
BRKBNNRQ
BRNBKQNR
QRNBKNBR
NRBBNKQR
BRNBQKNR
RNQBNKBR
NRQBKNBR
NRBBNKQR
BRNBQKNR
BRNKNBQR
NRNBBQKR
NRNBKQBR
NRBBNKQR
RBBNKQNR
RKBNNBRQ
BRKNQBNR
BNRNKBQR
QRNNKBBR
NRBBNKQR
NRBQKBRN
NBBRQKRN
NRNQBBKR
NRQNKBBR
NRBBNKQR
NRBQKBRN
NRBQKRNB
NRNQKBBR
NRBBNKQR
RKNNRQBB
BBQRKRNN
BBQRKNRN
BBR...

result:

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

Test #9:

score: 0
Accepted
time: 30ms
memory: 3844kb

input:

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

output:

NRBBNKQR
RBBNKQNR
RBBKQNNR
QBBRKNNR
NRBBNKQR
NRBQKBRN
RNBBQKRN
NBBQRNKR
NBBRKQNR
NRBBNKQR
BRNBQKNR
NBBRNQKR
NBBRKNQR
NRBBNKQR
BNRKQBNR
RBQKNRBN
RBNQBNKR
QBNRKNBR
NRBBNKQR
RBBNKQNR
RKBNNBRQ
BBNRQKNR
BQRBKNNR
NBQRKNBR
NRBBNKQR
RBBNKQNR
BBRNNQKR
RKBNNQRB
BRQNKBNR
NBNRKQBR
NRBBNKQR
RBBNKQNR
BBRNNQKR
QNB...

result:

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

Test #10:

score: 0
Accepted
time: 31ms
memory: 3912kb

input:

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

output:

NRBBNKQR
NRBQKBRN
NNRBBQKR
NBQNRKBR
BBRQNKNR
NRBBNKQR
RBBNKQNR
BBRNNQKR
BBRNKNQR
BBRNQKNR
NRBBNKQR
BRNBQKNR
RNQBNKBR
NNBBQRKR
BBRNNKQR
NRBBNKQR
BRNBQKNR
BRKBNQNR
BQRBNKNR
NRBBNKQR
NRBQKBRN
RBNNBKQR
BNRBQKNR
NRBBNKQR
BNRBNKQR
NRBBNKQR
RBBNKQNR
BBRNNQKR
BBQNRKNR
QBRNBKNR
NRBBNKQR
NRBQKBRN
BRKBNNRQ
NBB...

result:

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

Test #11:

score: 0
Accepted
time: 28ms
memory: 3912kb

input:

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

output:

NRBBNKQR
RBBNKQNR
NBNQBRKR
NQRNBBKR
RQNBBNKR
NRBBNKQR
RBBNKQNR
NBNQBRKR
BNNBRQKR
BRNNQBKR
RNQBBNKR
NRBBNKQR
RBBNKQNR
RKBNNBRQ
RQNBKNBR
RBNKBNQR
RNNBBQKR
NRBBNKQR
BNRKQBNR
RNBQKRNB
BBNQRNKR
QBRNKNBR
RQNNBBKR
NRBBNKQR
BNRKQBNR
BQRKNNRB
QNNRKBBR
RKNQBBNR
RNQNBBKR
NRBBNKQR
BNRKQBNR
BQRKNNRB
QNNRKBBR
RKN...

result:

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

Extra Test:

score: 0
Extra Test Passed