QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#466499#7179. Fischer's Chess Guessing Gameucup-team4347AC ✓572ms3960kbC++234.6kb2024-07-07 21:21:512024-07-07 21:21:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 9ms
memory: 3700kb

input:

GAME 1
2
2
1
4
8
END

output:

NRNBBKQR
RNQNBBKR
BBQRNKNR
RBNKBQRN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 561ms
memory: 3724kb

input:

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

output:

NRNBBKQR
RNQNBBKR
BBQRNKNR
RBNKBQRN
RKRBBQNN
NRNBBKQR
NRKQBBRN
RBNQBNKR
NBBQRKNR
RKRBBNQN
NRNBBKQR
RNQNBBKR
BBQRNKNR
RBNKBQRN
BRNNKBRQ
RKRBBNNQ
NRNBBKQR
BQNRKRNB
RNKNQBBR
RBKNBNRQ
RKBNRBQN
RKRBQNBN
NRNBBKQR
BQNRKRNB
RNKNQBBR
QBBNRNKR
RKRBNQBN
NRNBBKQR
BQNRKRNB
RNKNQBBR
QBBNRNKR
QNRKBBRN
RKRBNNBQ
NRN...

result:

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

Test #3:

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

input:

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

output:

NRNBBKQR
NRKQBBRN
NQBBRNKR
BRQBKNNR
RKQBBNNR
NRNBBKQR
BNRBNKQR
RKNNBBQR
RKNBBQNR
NRNBBKQR
RQNBBKNR
RKNBBNQR
NRNBBKQR
RNQNBBKR
RBKNBRQN
NQRNKBBR
RKQBNNBR
NRNBBKQR
NRKQBBRN
RQNBKNBR
RKNBQNBR
NRNBBKQR
NRKQBBRN
RQNBKNBR
BQNBRNKR
RKNBNQBR
NRNBBKQR
RNQNBBKR
RKQNBBNR
NRNBBKQR
NRKQBBRN
RNQBBKRN
BRKBNRQN
RKN...

result:

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

Test #4:

score: 0
Accepted
time: 513ms
memory: 3808kb

input:

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

output:

NRNBBKQR
RNQNBBKR
BBQRNKNR
RKNRBQNB
QRKRBBNN
NRNBBKQR
BNRBNKQR
NRQKBBNR
NQNRBBKR
NRKRBBQN
NRNBBKQR
NRKQBBRN
NRKRBBNQ
NRNBBKQR
RNQNBBKR
QRBNNKRB
NRKNQRBB
NRBKQBRN
QRKRBNNB
NRNBBKQR
NRKQBBRN
NRKNQBBR
NNRQBBKR
NRBKRBQN
NRKRBQNB
NRNBBKQR
BNRBNKQR
NRQKBBNR
NRKRBNQB
NRNBBKQR
BQNRKRNB
RNBKRNQB
BBRNNKRQ
QRK...

result:

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

Test #5:

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

input:

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

output:

NRNBBKQR
BQNRKRNB
BRQKNNRB
RBKRBNNQ
RKNNRQBB
RQNKRBBN
NRNBBKQR
RQKNNRBB
RNBNKBRQ
RNQKRBBN
NRNBBKQR
BQNRKRNB
RNBKRNQB
BBRKRNQN
QRBKNNRB
RNNKRBBQ
NRNBBKQR
BQNRKRNB
RBNQKRBN
RKNRNQBB
RQNKRNBB
NRNBBKQR
RQKNNRBB
RKQRNBBN
RNQKRNBB
NRNBBKQR
BQNRKRNB
BRQKNNRB
BNRKQBNR
RBQKBRNN
RNNKRQBB
NRNBBKQR
RQKNNRBB
RNB...

result:

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

Test #6:

score: 0
Accepted
time: 504ms
memory: 3932kb

input:

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

output:

NRNBBKQR
BQNRKRNB
RNKNQBBR
NBRKRNBQ
QRBKNBRN
NRNBBKQR
RNQNBBKR
QRBNNKRB
NRKNQRBB
NRBKQBRN
NRNBBKQR
RNQNBBKR
QRBNNKRB
NNBQRKRB
NRBKNBRQ
NRNBBKQR
BQNRKRNB
RNBKRNQB
BBRKRNQN
QRBKNNRB
NRNBBKQR
RNQNBBKR
NRBKQNRB
NRNBBKQR
RNQNBBKR
NRBKQNRB
NRBKNQRB
NRNBBKQR
NRKQBBRN
NRKRBBNQ
QRKBBNRN
QRNKBBRN
NRNBBKQR
NRK...

result:

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

Test #7:

score: 0
Accepted
time: 521ms
memory: 3672kb

input:

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

output:

NRNBBKQR
RQKNNRBB
RNBNKBRQ
RNQKRBBN
RBBQKRNN
NRNBBKQR
BQNRKRNB
BRQKNNRB
RBBNKQNR
RBBNKRQN
NRNBBKQR
RQKNNRBB
RKQRNBBN
BQRKNNRB
RBBNKRNQ
NRNBBKQR
RQKNNRBB
RBKRNQBN
RBQNKRBN
NRNBBKQR
BQNRKRNB
RBNQKRBN
NRNBBKQR
BQNRKRNB
RBNQKRBN
RBNNKRBQ
NRNBBKQR
BQNRKRNB
RQKNBRNB
BRKQNRNB
NQRNKRBB
RQBBKRNN
NRNBBKQR
RNQ...

result:

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

Test #8:

score: 0
Accepted
time: 544ms
memory: 3684kb

input:

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

output:

NRNBBKQR
BNRBNKQR
RKNNBBQR
NBNQRKBR
QRNBKNBR
NRNBBKQR
BNRBNKQR
RKNNBBQR
NRBBKRQN
NRBBQNKR
NRQBKNBR
NRNBBKQR
RQNBBKNR
NRQBBNKR
BRNBKNQR
NRNBKQBR
NRNBBKQR
NRKQBBRN
RBNQBNKR
BRKBQNNR
QRNKBRNB
QRNNKBBR
NRNBBKQR
NRKQBBRN
RNQBBKRN
NQRKBBNR
NRQNKBBR
NRNBBKQR
BNRBNKQR
NRQKBBNR
NQNRBBKR
NRKRBBQN
NRNQKBBR
NRN...

result:

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

Test #9:

score: 0
Accepted
time: 388ms
memory: 3804kb

input:

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

output:

NRNBBKQR
BQNRKRNB
RBNQKRBN
BNRQKBNR
BQRBKNRN
QBBRKNNR
NRNBBKQR
RNQNBBKR
QRBNNKRB
NBRKBNRQ
NBBRKQNR
NRNBBKQR
NRKQBBRN
NQBBRNKR
RNQBBNKR
NBBRKNQR
NRNBBKQR
RNQNBBKR
QRBNNKRB
NBRKBNRQ
NBBRKQNR
QBNRKNBR
NRNBBKQR
RNQNBBKR
BBQRNKNR
BQNRKBNR
BBNQNRKR
NBQRKNBR
NRNBBKQR
NRKQBBRN
NQBBRNKR
BRNKRNQB
NBNRKQBR
NRN...

result:

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

Test #10:

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

input:

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

output:

NRNBBKQR
RNQNBBKR
QRBNNKRB
BRNKQBRN
BBRQNKNR
NRNBBKQR
RNQNBBKR
BBQRNKNR
BBRNQKNR
NRNBBKQR
NRKQBBRN
RQNBKNBR
BBRNNKQR
NRNBBKQR
NRKQBBRN
RQNBKNBR
BNNBQRKR
BQRBNKNR
NRNBBKQR
NRKQBBRN
RQNBKNBR
BBNRQKNR
BNRBQKNR
NRNBBKQR
BNRBNKQR
NRNBBKQR
NRKQBBRN
NQBBRNKR
BNNRKBQR
QBRNBKNR
NRNBBKQR
BNRBNKQR
RNNKBBQR
BRN...

result:

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

Test #11:

score: 0
Accepted
time: 491ms
memory: 3960kb

input:

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

output:

NRNBBKQR
BNRBNKQR
RKNNBBQR
RBNQBKNR
RQNBBNKR
NRNBBKQR
NRKQBBRN
NQBBRNKR
RNQBBNKR
NRNBBKQR
BNRBNKQR
RNNKBBQR
RNNBBQKR
NRNBBKQR
NRKQBBRN
RBNQBNKR
NBQRBNKR
RQNNBBKR
NRNBBKQR
RNQNBBKR
NRNBBKQR
NRKQBBRN
RNQBBKRN
NBRNBKRQ
BRNBKQRN
RNNQBBKR
NRNBBKQR
NRKQBBRN
NQBBRNKR
RNQBBNKR
BRQBNNKR
NRNBBKQR
BNRBNKQR
RNN...

result:

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

Extra Test:

score: 0
Extra Test Passed