QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#465754#7179. Fischer's Chess Guessing Gameucup-team4347TL 186ms3964kbC++233.9kb2024-07-07 08:26:292024-07-07 08:26:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3964kb

input:

GAME 1
3
1
6
8
END

output:

RQKNBBRN
NRBKQBRN
RKQBBRNN
RKRBBQNN

result:

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

Test #2:

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

input:

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

output:

RQKNBBRN
NRBKQBRN
RKQBBRNN
RKNBBRQN
RKRBBQNN
RQKNBBRN
NRBKQBRN
RKQBBRNN
RKRBBNQN
RQKNBBRN
RNNKQBBR
NNRQBKRB
QBRKBRNN
NBQNBRKR
RKRBBNNQ
RQKNBBRN
RKNQNBBR
NRNKBBQR
RNBQNKRB
RKRBQNBN
RQKNBBRN
RKBQNBNR
NRQKBBNR
RKBBRNQN
RKRBNQBN
RQKNBBRN
RNBQKRNB
NBRNKQBR
NRKBNRBQ
RKRBNNBQ
RQKNBBRN
RNKQBNRB
RBKNBQNR
RKR...

result:

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

Test #3:

score: 0
Accepted
time: 108ms
memory: 3744kb

input:

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

output:

RQKNBBRN
RKBQNBNR
RKBBRQNN
RQBBKNNR
RBBNKQNR
RKQBBNNR
RQKNBBRN
RNNKQBBR
RBQKRNBN
QNBNRBKR
RKNBBQNR
RQKNBBRN
RKBQNBNR
NRQKBBNR
RKNBBRNQ
RKNBBNQR
RQKNBBRN
RNBQKRNB
BBRNQKNR
BRNKNQRB
NNRKRBBQ
RKQBNNBR
RQKNBBRN
RNBQKRNB
BNRKNBQR
NRKBNRBQ
QRNBBKNR
RKNBQNBR
RQKNBBRN
RNBQKRNB
BBRNQKNR
BRNKNQRB
NRBKNBQR
RKN...

result:

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

Test #4:

score: -100
Time Limit Exceeded

input:

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

output:

RQKNBBRN
RNKQBNRB
QRKRBBNN
RQKNBBRN
RNKBBNRQ
QRKRBBNN
NRKRBBQN
RQKNBBRN
NRBKQBRN
NRKQBBNR
NRKRBBNQ
RQKNBBRN
RNNKQBBR
BRKNNRQB
NRKRBQNB
QRKRBNNB
RQKNBBRN
RNNKQBBR
BBQRNKRN
NRKRBQNB
RQKNBBRN
RNQKNBBR
QBBRKNRN
BQRBKRNN
NRKRBNQB
RQKNBBRN
NRBKQBRN
NRKQBBNR
RQBKNBNR
QRKRNBBN
RQKNBBRN
NRBKQBRN
BNRKQBRN
NRK...

result: