QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#232776#7179. Fischer's Chess Guessing Gameucup-team1259WA 306ms3748kbC++143.4kb2023-10-30 21:54:402023-10-30 21:54:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 3728kb

input:

GAME 1
3
1
5
4
8
END

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKNBBNRQ
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 300ms
memory: 3520kb

input:

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

output:

RQKNBBRN
NRBKQBRN
RKNBBRQN
RKNBBNRQ
RKRBBQNN
NRNBBKQR
NRKQBBRN
RBNQBNKR
NBBQRKNR
RKRBBNQN
RQKNBBRN
RNQKNBBR
BBRNNKRQ
QBNNBRKR
BRKBNRQN
RKRBBNNQ
NRNBBKQR
BQNRKRNB
RBBNNQKR
NBRKRNBQ
RKRBQNBN
NRNBBKQR
BQNRKRNB
RBBNNQKR
QBBNRKRN
RKRBNQBN
RQKNBBRN
RNBQKRNB
BBRNQKNR
BRNKNQRB
RKQBNNBR
RKRBNNBQ
NRBBNKQR
RKN...

result:

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

Test #3:

score: 0
Accepted
time: 301ms
memory: 3748kb

input:

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

output:

NRNBBKQR
NRKQBBRN
NBBRQKNR
NQRBKNBR
QRBBNNKR
RKQBBNNR
NRNBBKQR
BNRBNKQR
NRBBQKRN
RQNBBNKR
RKNBBQNR
NRNBBKQR
RQNBBKNR
NQNBBRKR
RKNBBNQR
NRBBNKQR
NRBQKBRN
RBNNBKQR
RKQBNNBR
NRBBNKQR
RBBNKQNR
RNNKBBQR
NNRQKBBR
BNNBRQKR
RKNBQNBR
RQKNBBRN
RNBQKRNB
BBRNQKNR
BRNKNQRB
NRBKNBQR
RKNBNQBR
RQKBBNRN
RKNBNQBR
RKQ...

result:

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

Test #4:

score: 0
Accepted
time: 306ms
memory: 3516kb

input:

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

output:

NRNBBKQR
RBQNBNKR
QRNNKRBB
BRKRNNQB
NRBKQNRB
QRKRBBNN
NRNBBKQR
BNRBNKQR
NRKNBRQB
NRKRBBQN
NRNBBKQR
NRKQBBRN
NRKQBRNB
NRKNBQRB
NRKRBBNQ
NRBBNKQR
BNRKQBNR
RNKQNRBB
RBBNKRNQ
BRNQKNRB
QRKRBNNB
NRNBBKQR
NRKQBBRN
NRKNQBBR
NNRQBBKR
NRKRBQNB
NRNBBKQR
BNRBNKQR
NRKNBRQB
NRKRBNQB
RQKBBNRN
RKNBNQBR
NNQBBRKR
RKB...

result:

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

Test #5:

score: -100
Wrong Answer
time: 136ms
memory: 3740kb

input:

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

output:

NRNBBKQR
BQNRKRNB
BRQKNNRB
RKNNRQBB
RKNRNBBQ
RQNKRBBN
NRNBBKQR
RQKNNRBB
RBBNKQRN
RKBQRNNB
RNQKRBBN
NRNBBKQR
BQNRKRNB
BBRKRNQN
QBBRNNKR
RNNKRBBQ
NRNBBKQR
BQNRKRNB
BQRKNBNR
RNQKBRNB
RQNKRNBB
NRBBNKQR
RKNNRQBB
RQKNRBBN
RNKNBQRB
RNQKRNBB
NRBBNKQR
RKNNRQBB
RKNQRNBB
RKNNQRBB
RNNKRQBB
NRNBBKQR
RQKNNRBB
RBB...

result:

wrong answer (i) too many guesses in game 41, pos = 0\x05\x05