QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#221056#7179. Fischer's Chess Guessing Gameucup-team254TL 14ms4552kbC++203.5kb2023-10-21 05:32:422023-10-21 05:32:43

详细

Test #1:

score: 100
Accepted
time: 5ms
memory: 4552kb

input:

GAME 1
1
3
4
4
4
8
END

output:

BBNNRQKR
RKQNBNRB
RKNRBBNQ
RKBRNQNB
RKBBRNNQ
RKRBBQNN

result:

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

Test #2:

score: 0
Accepted
time: 14ms
memory: 4552kb

input:

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

output:

BBNNRQKR
RKQNBNRB
RKNRBBNQ
RKBRNQNB
RKBBRNNQ
RKRBBQNN
BBNNRQKR
RKQBNRBN
NQRBKRBN
RKRBBNQN
BBNNRQKR
RKQBNRBN
NRKQNRBB
RKRBBNNQ
BBNNRQKR
RKQBNRBN
RKQBBNRN
RKRBQNBN
BBNNRQKR
RKQNBNRB
RQKBNNBR
NRQBKNBR
RBKRQNBN
RKRBNQBN
BBNNRQKR
RKQBNRBN
RKQBBNRN
RKBBQRNN
RKRBNNBQ
BBNNRQKR
RKQBNRBN
NRKQNRBB
RKQRBNNB
RKB...

result:

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

Test #3:

score: -100
Time Limit Exceeded

input:

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

output:

BBNNRQKR
RKQNBNRB
RKNBBNRQ
RKNRBNQB
RKQBBNNR
BBNNRQKR
NBRQBNKR
BNQRNBKR
BBRNKRNQ
NRNBKQBR
RKNBBQNR
BBNNRQKR
BBRQKRNN
RNKNBQRB
NRKNQBBR
RKNBBNQR
BBNNRQKR
RKQNBNRB
RKRNBBQN
RKQBNNBR
BBNNRQKR
BBRQKRNN
RNKNBQRB
RKNBRNBQ
RKNBQNBR
BBNNRQKR
NBRQBNKR
BRNKNBQR
RKNBNQBR
BBNNRQKR
BBRQKRNN
RKBBNQNR
NQBBRKNR
RBB...

result: