QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#344680#7179. Fischer's Chess Guessing Gameucup-team864AC ✓21ms11512kbC++142.1kb2024-03-04 21:14:072024-03-04 21:14:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 21ms
memory: 11216kb

input:

GAME 1
2
4
1
1
8
END

output:

NRNBBKQR
RNQBBKRN
QNNRBBKR
QNBBNRKR
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 17ms
memory: 11172kb

input:

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

output:

NRNBBKQR
RNQBBKRN
QNNRBBKR
QNBBNRKR
RKRBBQNN
NRNBBKQR
RQKBBNRN
RKNQBNRB
RKRBBNQN
NRNBBKQR
RNQBBKRN
RQNBKNBR
QRNKBNRB
QNNRKBBR
RKRBBNNQ
NRNBBKQR
QRKNBBNR
QBRKNRBN
QNNRKRBB
QNRKNRBB
RKRBQNBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
QNRKBNRB
QNNRKRBB
RKRBNQBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
QNNRKRBB
QNRKNRBB
RKRBNNBQ
NRN...

result:

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

Test #3:

score: 0
Accepted
time: 15ms
memory: 11176kb

input:

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

output:

NRNBBKQR
RQKBBNRN
QNRBKNBR
QNNRKRBB
RKQBBNNR
NRNBBKQR
RQNKBBNR
QBRKBNNR
QNNRBBKR
RKNBBQNR
NRNBBKQR
RQNBKNBR
NRQBKNBR
RKNBBNQR
NRNBBKQR
RNQBBKRN
RQNBKNBR
QNNRKRBB
RKQBNNBR
NRNBBKQR
RQKBBNRN
QRKBNNBR
QRNKRBBN
QNNRKRBB
RKNBQNBR
NRNBBKQR
RQKBBNRN
RBNQBKRN
QNNRKBBR
QNNRBKRB
RKNBNQBR
NRNBBKQR
RNQBBKRN
RQN...

result:

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

Test #4:

score: 0
Accepted
time: 18ms
memory: 11512kb

input:

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

output:

NRNBBKQR
RNQBBKRN
RKRBBNNQ
QRNBKRBN
QNNRKRBB
QRKRBBNN
NRNBBKQR
RQNKBBNR
BNQBNRKR
QNNRKRBB
NRKRBBQN
NRNBBKQR
RQKBBNRN
RBNQBKRN
NRKRBBNQ
NRNBBKQR
RNQBBKRN
RNQKNBBR
QRKNBBNR
QRKRBNNB
NRNBBKQR
RQKBBNRN
RBNQBKRN
NRKRBBNQ
NRKRBQNB
NRNBBKQR
RQNKBBNR
QRKNRNBB
QNNRKBBR
NRKRBNQB
NRNBBKQR
QRKNBBNR
BRKBNQRN
QNB...

result:

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

Test #5:

score: 0
Accepted
time: 13ms
memory: 11444kb

input:

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

output:

NRNBBKQR
QRKNBBNR
NQNRKRBB
QRKRNBBN
QNNRKRBB
RQNKRBBN
NRNBBKQR
RQKNNRBB
RQBNKBRN
QNRKBNRB
RNQKRBBN
NRNBBKQR
QRKNBBNR
NQNRKRBB
QNRBKRBN
QNNRKRBB
RNNKRBBQ
NRNBBKQR
QRKNBBNR
QBRKNRBN
QRNKRNBB
RQNKRNBB
NRNBBKQR
RQKNNRBB
QNRKRBBN
RKRQNBBN
RNQKRNBB
NRNBBKQR
QRKNBBNR
QBRKNRBN
QRNKRNBB
RNNKRQBB
NRNBBKQR
RQK...

result:

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

Test #6:

score: 0
Accepted
time: 14ms
memory: 11232kb

input:

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

output:

NRNBBKQR
QRKNBBNR
QNRKNBBR
QNRNKRBB
QNNRKBBR
QRBKNBRN
NRNBBKQR
RNQBBKRN
RKRBBNNQ
QRBNNKRB
QNNRKRBB
NRBKQBRN
NRNBBKQR
RNQBBKRN
RNQKNBBR
NRQKBBRN
NRBKNBRQ
NRNBBKQR
QRKNBBNR
BBRQNNKR
QNRKNBBR
QNNRKRBB
QRBKNNRB
NRNBBKQR
RNQBBKRN
RNQKNBBR
QRNKBBRN
QNNRKBBR
NRBKQNRB
NRNBBKQR
RNQBBKRN
RNQKNBBR
NRKQNRBB
QNN...

result:

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

Test #7:

score: 0
Accepted
time: 10ms
memory: 11176kb

input:

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

output:

NRNBBKQR
RQKNNRBB
RQBNKBRN
QNNRBKRB
QNNRKRBB
RBBQKRNN
NRNBBKQR
QRKNBBNR
NQNRKRBB
QNRBKRBN
QNRKNBBR
RBBNKRQN
NRNBBKQR
RQKNNRBB
QNRKRBBN
QRBKNNRB
RBBNKRNQ
NRNBBKQR
RQKNNRBB
RBQKRNBN
QNRKRNBB
RBQNKRBN
NRNBBKQR
QRKNBBNR
QBRKNRBN
QNRKBNRB
QNBRKNRB
RBNQKRBN
NRNBBKQR
QRKNBBNR
NQNRKRBB
NQBRKBNR
RBNNKRBQ
NRN...

result:

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

Test #8:

score: 0
Accepted
time: 15ms
memory: 11404kb

input:

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

output:

NRNBBKQR
RQNKBBNR
BNQBNRKR
QNNBRKBR
QRNBKNBR
NRNBBKQR
RQNKBBNR
QRKNRNBB
NNQRKRBB
NRQBKNBR
NRNBBKQR
RQNBKNBR
NRQBKNBR
NRNBKQBR
NRNBBKQR
RQKBBNRN
NRBKQRNB
QNNRBBKR
QNNRKRBB
QRNNKBBR
NRNBBKQR
RQKBBNRN
NRBKQRNB
QNNRKBBR
QNNRBKRB
NRQNKBBR
NRNBBKQR
RQNKBBNR
RNQBBKNR
QNNRKBBR
NRNQKBBR
NRNBBKQR
RQKNNRBB
RQB...

result:

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

Test #9:

score: 0
Accepted
time: 16ms
memory: 11176kb

input:

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

output:

NRNBBKQR
QRKNBBNR
QNRKNBBR
QRBKNRNB
QNNRKRBB
QBBRKNNR
NRNBBKQR
RNQBBKRN
QBBRNNKR
QNBNRBKR
QNNRKBBR
NBBRKQNR
NRNBBKQR
RQKBBNRN
QNNBBRKR
QNRNKBBR
QNNRKRBB
NBBRKNQR
NRNBBKQR
RNQBBKRN
QBBRNNKR
QNNRBKRB
QBNRKNBR
NRNBBKQR
RNQBBKRN
RNQKNBBR
NRQKBBRN
QNNRKRBB
NBQRKNBR
NRNBBKQR
RQKBBNRN
NRBKQRNB
QNNRBBKR
NBN...

result:

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

Test #10:

score: 0
Accepted
time: 13ms
memory: 11176kb

input:

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

output:

NRNBBKQR
RNQBBKRN
RNQKNBBR
NRKQNRBB
BBRQNKNR
NRNBBKQR
RNQBBKRN
RNQKNBBR
QRNKBBRN
QNNRKRBB
BBRNQKNR
NRNBBKQR
RQKBBNRN
NRBKQRNB
QNNRKBBR
BBRNNKQR
NRNBBKQR
RQKBBNRN
RBNQBKRN
NRKRBBNQ
BQRBNKNR
NRNBBKQR
RQKBBNRN
QNNBBRKR
NBRNBQKR
BNRBQKNR
NRNBBKQR
RQNKBBNR
QRKNRNBB
QNNBRKBR
BNRBNKQR
NRNBBKQR
RQKBBNRN
QNN...

result:

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

Test #11:

score: 0
Accepted
time: 18ms
memory: 11476kb

input:

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

output:

NRNBBKQR
RQNKBBNR
QBRKBNNR
QNNRBBKR
RQNBBNKR
NRNBBKQR
RQKBBNRN
QNRBKNBR
QNNRKRBB
RNQBBNKR
NRNBBKQR
RQNKBBNR
QNNBRKBR
QNNRKRBB
RNNBBQKR
NRNBBKQR
RQKBBNRN
QRKBNNBR
RKNQBRNB
RQNNBBKR
NRNBBKQR
RNQBBKRN
QNNRBBKR
RNQNBBKR
NRNBBKQR
RQKBBNRN
RBNQBKRN
QNNRKBBR
QNNRKRBB
RNNQBBKR
NRNBBKQR
RQKBBNRN
RBNQBKRN
QNR...

result:

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

Extra Test:

score: 0
Extra Test Passed