QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#219612#7179. Fischer's Chess Guessing Gameucup-team1881WA 17ms4856kbC++202.1kb2023-10-19 16:46:342023-10-19 16:46:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 4848kb

input:

GAME 1
5
4
4
8
END

output:

RKQBBNRN
RKNBBNQR
RQNBBKRN
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RKQBBNRN
RKNBBNQR
RQNBBKRN
RKRBBQNN
RKQBBNRN
RKQBBRNN
RKQNBBRN
RKQBRNBN
RKRBBNQN
RKQBBNRN
RKNBBNQR
RKQBNNBR
RKRBBNNQ
RKQBBNRN
RKNBBNQR
RQNBBKRN
RKRBQNBN
RKQBBNRN
RKQNBBNR
RKRBNQBN
RKQBBNRN
RKQNBBNR
RKRBNQBN
RKRBNNBQ
RKQBBNRN
RKQNBBNR
RKRNBBQN
RKRQBBNN
RKQBBNRN
RKQNBBNR
RKRNBBQN
RKQBBNRN
RKNQBBNR
RKB...

result:

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

Test #3:

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

input:

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

output:

RKQBBNRN
RKQBBRNN
RKQBBNNR
RKQBBNRN
RKQNBBNR
RKRNBBQN
RKNBBQNR
RKQBBNRN
RKNBBNQR
RKQBBNRN
RKNBBNQR
RKQBNNBR
RKQBBNRN
RKQNBBNR
RKBQNBRN
RKNRBNQB
RKNBQNBR
RKQBBNRN
RKNQBBNR
RNNBBQKR
RKNBNQBR
RKQBBNRN
RKQNBBNR
RKQBBNRN
RKNQBBNR
RKQBBNRN
RKNQBBNR
RKNQBRNB
RKNNBBQR
RKQBBNRN
RKNQBBNR
RNNBBQKR
RKQNNBBR
RKQ...

result:

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

Test #4:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
QRKRBBNN
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
NRKRBBQN
RKQBBNRN
RBBNNQKR
NQRKRBBN
NRKRBBNQ
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBKQRNN
QRKRBNNB
RKQBBNRN
RBBNNQKR
BRKNRNQB
BRQKNRNB
BBRKRNNQ
NRKRBQNB
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBKQRNN
NRKRBNQB
RKQBBNRN
RBBNNQKR
BRKNRNQB
BQN...

result:

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

Test #5:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
BRNBKNQR
RKNNRBBQ
RKNNQRBB
RQNKRBBN
RKQBBNRN
RKNQBBNR
RNKBQNBR
RNBKQBRN
RNQKRBBN
RKQBBNRN
RBBNNQKR
BRKNRNQB
QNNBRKBR
RNNKRBBQ
RKQBBNRN
RNKBNQBR
BRNBKNQR
RQNKRNBB
RKQBBNRN
RKNQBBNR
RBBKNQRN
RNQKRNBB
RKQBBNRN
RBBNNQKR
BRNBNKQR
QBRKNRBN
RQNNKRBB
RNNKRQBB
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBB...

result:

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

Test #6:

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

input:

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

output:

RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBKQRNN
QRBKNBRN
RKQBBNRN
RNKBNQBR
NQBRKNRB
NRBKQBRN
RKQBBNRN
RBBNNQKR
BRNBNKQR
BBRQKNNR
QNBRNKRB
NRBKNBRQ
RKQBBNRN
RNKBNQBR
BNRKQNRB
QNRNBKRB
QRBKNNRB
RKQBBNRN
RNKBNQBR
NQBRKNRB
QRBNKNRB
BQRNKNRB
NRBKQNRB
RKQBBNRN
RBBNNQKR
RNKNRQBB
NRBKNQRB
RKQBBNRN
RKNQBBNR
RKBRNBQN
RBK...

result:

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

Test #7:

score: -100
Wrong Answer
time: 0ms
memory: 4852kb

input:

GAME 1
2
1
0
8
GAME 2
2
1
0
6
8
GAME 3
1
4
0
8
GAME 4
3
1
3
4
4
8
GAME 5
2
2
2
3
2
2

output:

RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
RKQBBNRN
RNKBNQBR
BNRKQNRB
RBBQKRNN
RBBNKRQN
RKQBBNRN
RBBNNQKR
BRNBNQKR
RBBNKRNQ
RKQBBNRN
RKNQBBNR
RBBKNQRN
RQKBNRBN
RBKRQNBN
RBQNKRBN
RKQBBNRN
RNKBNQBR
BRNBKNQR
RQNKRNBB
RQNNBBKR
RBBKQNNR

result:

wrong answer (i) too many guesses in game 5, pos =