QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#232748#7179. Fischer's Chess Guessing Gameucup-team1259WA 315ms3828kbC++143.4kb2023-10-30 21:23:342023-10-30 21:23:35

详细

Test #1:

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

input:

GAME 1
4
3
3
8
END

output:

RQKBBNRN
RQKNBRNB
RNKRBBQN
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 307ms
memory: 3632kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RNKRBBQN
RKRBBQNN
RQKBBNRN
RQKRBNNB
RKNBBNRQ
RKRBBNQN
RQKBBNRN
RQKNBRNB
RNKRBBQN
RKRBBNNQ
RQKBBNRN
RQKNBRNB
RNBBKQRN
BQNBRKRN
RKRBQNBN
RQKBBNRN
NRBBQKRN
RKNBQNBR
RNBBKNQR
RKRBNQBN
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBKNRQBN
RKRBNNBQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKRQBBNN
RQKBBNRN
NRBBQKRN
RKN...

result:

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

Test #3:

score: 0
Accepted
time: 299ms
memory: 3764kb

input:

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

output:

RQKBBNRN
RQKNBRNB
RNKRBBQN
RKRBBNNQ
RKQBBNNR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQKBBNRN
RQKNBRNB
RNKBRNBQ
RQBBNNKR
RKNBBNQR
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBKNRQBN
RKRBNNBQ
RKQBNNBR
RQKBBNRN
NRBBQKRN
RKNBQNBR
RQKBBNRN
RKBBNQNR
RNBBNQKR
RKNBNQBR
RQKBBNRN
RKBBNQNR
RKNRBQNB
RKBRNNQB
RKQNBBNR
RQKBBNRN
RKB...

result:

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

Test #4:

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

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNBQNBR
BQRKNBRN
QRKRBBNN
RQKBBNRN
NRBBQKRN
RBBKNQRN
NRKRBBQN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
BRKRQBNN
NRKRBBNQ
RQKBBNRN
NRBBQKRN
RKNRBBQN
RBKNRQBN
QRKRBNNB
RQKBBNRN
RKBBNQNR
RNKNRQBB
NRKRBQNB
RQKBBNRN
NRBBQKRN
RKNBQNBR
NRKRBNQB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
BRKRQBNN
NRKRBBNQ
QRKRNBBN
RQK...

result:

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

Test #5:

score: 0
Accepted
time: 310ms
memory: 3828kb

input:

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

output:

RQKBBNRN
NRBBQKRN
RKNRBBQN
RKNBBQNR
RQNKRBBN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBQNKRBN
RNQKRBBN
RQKBBNRN
BNRKRNQB
RNBNKRQB
NRBKRBQN
RNNKRBBQ
RQKBBNRN
NRBBQKRN
RBKNRNBQ
RQNKRNBB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBNKQRBN
RNQKRNBB
RQKBBNRN
BNRKRNQB
BNRNKQRB
RNBKRQNB
RNNKRQBB
RQKBBNRN
RKBBNQNR
NRNBBQKR
RKRQNBBN
RKB...

result:

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

Test #6:

score: 0
Accepted
time: 315ms
memory: 3644kb

input:

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

output:

RQKBBNRN
RKBBNQNR
RNKNRQBB
BRNBQNKR
QRBKNBRN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
QRKRNNBB
NRBKQBRN
RQKBBNRN
BNRKRNQB
RKRNNBBQ
RKBRNQNB
RNBNQBKR
NRBKNBRQ
RQKBBNRN
RKBBNQNR
RNKNRQBB
QRNBKNBR
QRBKNNRB
RQKBBNRN
RKBBNQNR
BRKNNBRQ
NRKQBRNB
RNKNQRBB
NRBKQNRB
RQKBBNRN
BNRKRNQB
BRNNKQRB
BRKRNQNB
NRKNRQBB
NRBKNQRB
RQK...

result:

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

Test #7:

score: -100
Wrong Answer
time: 109ms
memory: 3828kb

input:

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

output:

RQKBBNRN
RKBBNQNR
NRNBBQKR
RKRQNBBN
RBBKNRQN
RBBQKRNN
RQKBBNRN
RKBBNQNR
RNKNRQBB
RKNRQBBN
RBBNKRQN
RQKBBNRN
BNRKRNQB
RBBNKRNQ
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBQNKRBN
RQKBBNRN
RKBBNQNR
BRKNNBRQ
RBNKQRBN
RBNQKRBN
RQKBBNRN
BNRKRNQB
RBBNKRNQ
RBNNKRBQ
RQKBBNRN
RQKNBRNB
RKQBBRNN
RQBBKRNN
RQKBBNRN
NRBBQKRN
RBB...

result:

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