QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#465707#7179. Fischer's Chess Guessing Gameucup-team4347#RE 188ms3912kbC++202.9kb2024-07-07 06:03:452024-07-07 06:03:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3824kb

input:

GAME 1
4
3
3
8
END

output:

RQKBBNRN
RQKNBRNB
RKNQBNRB
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 167ms
memory: 3884kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RQBKNNRB
RKNBBRQN
RKRBBQNN
RQKBBNRN
RKNBBQRN
RBKNBQRN
RKRBBNQN
RQKBBNRN
RQKNBRNB
RNKRBBQN
NRKQBNRB
RKRBBNNQ
RQKBBNRN
RQKNBRNB
BQNBRKRN
RNBBKNRQ
RKRBQNBN
RQKBBNRN
NRBBQKRN
RKNBQNBR
RNBBKNQR
RKQBNRBN
RKRBNQBN
RQKBBNRN
NRBBQKRN
RNKQRBBN
RBNKBRQN
RKQBNNBR
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RKN...

result:

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

Test #3:

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

input:

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

output:

RQKBBNRN
RQKNBRNB
NRKQBNRB
RKQBBNNR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQKBBNRN
RQKNBRNB
RNQBBNKR
NQRBBNKR
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBQKRNBN
RBKQNRBN
RKQBNNBR
RQKBBNRN
NRBBQKRN
RKNBQNBR
RQKBBNRN
RKNBNQBR
RQKBBNRN
RKNBNQBR
RKQNRBBN
RKQNBBNR
RQKBBNRN
RKBBNQNR
NQBBNRKR
RKBQRBNN
RBBKRQNN
RKN...

result:

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

Test #4:

score: 0
Accepted
time: 175ms
memory: 3912kb

input:

GAME 1
3
2
0
2
8
GAME 2
3
3
1
2
8
GAME 3
2
0
3
0
8
GAME 4
3
1
1
3
2
8
GAME 5
2
2
3
0
8
GAME 6
3
2
1
8
GAME 7
2
1
4
4
8
GAME 8
2
1
3
1
8
GAME 9
1
0
3
8
GAME 10
2
2
0
3
1
8
GAME 11
2
1
1
3
2
8
GAME 12
1
1
4
3
1
8
GAME 13
3
3
2
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
3
8...

output:

RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRNKBRN
QRKRBBNN
RQKBBNRN
NRBBQKRN
RBBKNQRN
NQRNBKRB
NRKRBBQN
RQKBBNRN
RKNBNQBR
NBBRKNRQ
BNRQKNRB
NRKRBBNQ
RQKBBNRN
NRBBQKRN
RNKQRBBN
QNRBBNKR
RKNBBQNR
QRKRBNNB
RQKBBNRN
RKBBNQNR
RNKNRQBB
RKNQRBBN
NRKRBQNB
RQKBBNRN
NRBBQKRN
RKNBQNBR
NRKRBNQB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NRK...

result:

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

Test #5:

score: 0
Accepted
time: 184ms
memory: 3844kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RNKQRBBN
RBKQNRBN
RQNKRBBN
RQKBBNRN
RKNBNQBR
NNQBBRKR
BRKBNRNQ
RNQKRNBB
RNQKRBBN
RQKBBNRN
BNRKRNQB
RNBNKRQB
BNRBKQNR
NQRKNRBB
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RBQNBNKR
RNKRBBNQ
RQNKRNBB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NBQRBNKR
QBRKBRNN
RNQKRNBB
RQKBBNRN
BNRKRNQB
BNRNKQRB
RNBKRQNB
RNNKRQBB
RQK...

result:

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

Test #6:

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

input:

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

output:

RQKBBNRN
RKNBNQBR
BRKNNBRQ
QRKNRBBN
NRKNBBQR
QRBKNBRN
RQKBBNRN
RKNBNQBR
NBBRKNRQ
BRQNKNRB
NRBKQBRN
RQKBBNRN
BNRKRNQB
BQNRKBNR
NRBKNBRQ
RQKBBNRN
RKBBNQNR
RNKNRQBB
QNNBBRKR
QRBKNNRB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NRBQKNRB
NRBKQNRB
RQKBBNRN
BNRKRNQB
BRNNKQRB
NRKNRQBB
BRKRNQNB
NRBKNQRB
RQKBBNRN
NRBBQKRN
RBB...

result:

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

Test #7:

score: -100
Runtime Error

input:

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

output:

RQKBBNRN
RKBBNQNR
NQRBNKBR
RBBQKRNN
RQKBBNRN
RKNBNQBR
BRNQKBRN
QBBRNKRN
BQRNNKRB
RBBNKRQN
RQKBBNRN
BNRKRNQB
RKQNNBBR
NRBBNQKR
RBBNKRNQ
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBQNKRBN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBNKQRBN
RBNQKRBN
RQKBBNRN
BNRKRNQB
RKNQNBBR
NRKRNBBQ
RBNNKRBQ
RQKBBNRN
RQKNBRNB
RQBNKNRB
RQKRNNBB
RQB...

result: