QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#190991#7179. Fischer's Chess Guessing Gameucup-team2039AC ✓1343ms3772kbC++143.9kb2023-09-29 16:33:232023-09-29 16:33:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 16ms
memory: 3764kb

input:

GAME 1
4
3
3
3
8
END

output:

RQKBBNRN
RQKNBRNB
NRKBBRQN
RQNBKRBN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 1337ms
memory: 3772kb

input:

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

output:

RQKBBNRN
RQKNBRNB
NRKBBRQN
RQNBKRBN
RKRBBQNN
RQKBBNRN
RNKBBNQR
RBKRBNQN
RKRBBNQN
RQKBBNRN
RQKNBRNB
NRKBBRQN
RKQBBNNR
RKRBBNNQ
RQKBBNRN
RQKNBRNB
BQRBNKRN
RKBBNNRQ
RKRBQNBN
RQKBBNRN
NRBBQKRN
RKNBQNBR
QRNBBNKR
RKRBNQBN
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBQKRNBN
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNNBBRQ
RKR...

result:

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

Test #3:

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

input:

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

output:

RQKBBNRN
RQKNBRNB
NRKBBRQN
RKQBBNNR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQKBBNRN
RQKNBRNB
RNKBQNBR
NRKBBNQR
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBQKRNBN
RBKQNRBN
RKQBNNBR
RQKBBNRN
NRBBQKRN
RKNBQNBR
RQKBBNRN
RKBBNQNR
RNBBNQKR
RKNBNQBR
RQKBBNRN
RKBBNQNR
RKNRBQNB
RKBRNNQB
RKQNBBNR
RQKBBNRN
RKBBNQNR
RKN...

result:

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

Test #4:

score: 0
Accepted
time: 1330ms
memory: 3736kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRKNBRN
QRKRBBNN
RQKBBNRN
NRBBQKRN
NRKBBQNR
NRKRBBQN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NRKRBBNQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBQKRNBN
QRKRBNNB
RQKBBNRN
RKBBNQNR
RNKNRQBB
RKNQRBBN
NRKRBQNB
RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRBKRNN
RNQNBKRB
NRKRBNQB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NRKRBBNQ
QRK...

result:

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

Test #5:

score: 0
Accepted
time: 1327ms
memory: 3736kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQNKRBBN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBQNKRBN
RNQKRBBN
RQKBBNRN
BNRKRNQB
NBRKQNBR
BNRBNQKR
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RBKNRNBQ
RBKNBQNR
RQNKRNBB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NBRKBNQR
RNQKRNBB
NRBBNKQR
RKNNRQBB
RKNNRBBQ
RNNKRQBB
RQKBBNRN
RKBBNQNR
NQRBNKBR
RKNRBBNQ
RBB...

result:

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

Test #6:

score: 0
Accepted
time: 1302ms
memory: 3680kb

input:

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

output:

RQKBBNRN
RKBBNQNR
RNKNRQBB
BRNBQNKR
NQRKBBNR
QRBKNBRN
NRBBNKQR
NRBQKBRN
NRBQKNRB
NRBKQBRN
RQKBBNRN
BNRKRNQB
BQNRKBNR
NRBKNBRQ
RQKBBNRN
RKBBNQNR
RNKNRQBB
BNRBKNQR
QRBKNNRB
RQKNBBRN
RNBQKRNB
BNRKQBNR
NBBNQRKR
RBBKNNQR
NRBKQNRB
RQKBBNRN
BNRKRNQB
BRNNKQRB
NRKNRQBB
NRBKNQRB
RQKBBNRN
NRBBQKRN
NRKBBQNR
NQR...

result:

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

Test #7:

score: 0
Accepted
time: 1315ms
memory: 3736kb

input:

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

output:

RQKBBNRN
RKBBNQNR
NQRBNKBR
RKNRBBNQ
RBBQKRNN
NRNBBKQR
BQNRKRNB
BRQKNNRB
RBKRBQNN
RBBNKRQN
RQKBBNRN
BNRKRNQB
RKQNNBBR
NRBBNQKR
RBBNKRNQ
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBQNKRBN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NBRKBNQR
RBNQKRBN
RQKBBNRN
BNRKRNQB
RKQNNBBR
NRKRNBBQ
QRNNBBKR
RBNNKRBQ
RQKBBNRN
RQKNBRNB
QRKBBRNN
RBK...

result:

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

Test #8:

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

input:

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

output:

RQKBBNRN
RKBBNQNR
RNKNRQBB
BNRBKNQR
QRNBKNBR
RQKBBNRN
RKBBNQNR
RNKNRQBB
BNRBKNQR
QRNBKNBR
NRQBKNBR
RQKBBNRN
BNRKRNQB
RBBNKRNQ
NRKNQBBR
NRNBKQBR
RQKBBNRN
BNRQNBKR
NBQRNKBR
BRQKNRNB
QRNNKBBR
RQKBBNRN
NRQKNRBB
NRNKQBBR
NRQNKBBR
RQKBBNRN
BNRQNBKR
NRNQKBBR
RQKBBNRN
BNRKRNQB
BRNNKQRB
RKBNNRQB
NRNKBBQR
BBR...

result:

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

Test #9:

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

input:

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

output:

RQKBBNRN
BNRKRNQB
RKRNNBBQ
NQBRKRNB
BBQRKRNN
QBBRKNNR
RQKBBNRN
BNRQNBKR
BRNKQRNB
QBNNRKBR
NBBRKQNR
RQKBBNRN
BNRKRNQB
BRNNKQRB
NBRNBKQR
QNRNBBKR
NBBRKNQR
RQKBBNRN
BNRKRNQB
BQNRKBNR
BRKNQBNR
QBNRKNBR
RQKBBNRN
BNRKRNQB
BQNRKBNR
NQBNRBKR
BRNBNQKR
NBQRKNBR
RQKBBNRN
BBRNNQKR
QBNRNKBR
NBBRNKQR
BBNRQKNR
NBN...

result:

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

Test #10:

score: 0
Accepted
time: 1300ms
memory: 3628kb

input:

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

output:

RQKBBNRN
BBNRQKNR
BBNNQRKR
QBNRNKBR
BBRQNKNR
RQKNBBRN
RNBQKRNB
BNRKNBQR
BRNKNQRB
QBRKBNNR
BBRNQKNR
RQKBBNRN
BBRNNQKR
BBNRNQKR
BBRNNKQR
RQKBBNRN
RKBBNQNR
RKNRBQNB
RQBNNBKR
NQBBRKNR
BQRBNKNR
RQKBBNRN
BNRKRNQB
NBRKQNBR
BBQNRNKR
BQRKNBNR
BNRBQKNR
RQKBBNRN
BNRKRNQB
BNRBNKQR
RQKBBNRN
BNRKRNQB
BQNRKBNR
RKN...

result:

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

Test #11:

score: 0
Accepted
time: 1300ms
memory: 3620kb

input:

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

output:

RQKBBNRN
RNKBBNQR
RBKRBNQN
RQNBBNKR
RQKBBNRN
RQKNBRNB
RNKBQNBR
RBKRQNBN
RNQBBNKR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBRNBQ
RNNBBQKR
RQKBBNRN
NRBBQKRN
RQNKBBNR
RQNNBBKR
RQKBBNRN
RKBBNQNR
RNKNRQBB
RKNQRBBN
RBQNKNBR
RNQNBBKR
RQKBBNRN
RKBBNQNR
RNKNRQBB
RNNQBBKR
RQKBBNRN
RKBBNQNR
NQRBNKBR
NRBBQNKR
BRQBNNKR
RQK...

result:

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

Extra Test:

score: 0
Extra Test Passed