摘要: 摆放棋子 给定一个 $n \times m$ 的国际象棋棋盘(即一个 $n \times m$ 的方格矩阵)。 我们知道传统国际象棋中,主教(象)的行走规则是只能斜走,格数不限,但不可转向。 现在,我们对主教进行了修改,不妨称加强后的主教为大主教。 大主教仍然只能斜走,格数不限,但是当其走到棋盘边缘 阅读全文
posted @ 2022-11-13 20:34 onlyblues 阅读(122) 评论(0) 推荐(0) 编辑
摘要: D. Yet Another Problem You are given an array $a$ of $n$ integers $a_1,a_2,a_3, \ldots, a_n$. You have to answer $q$ independent queries, each consist 阅读全文
posted @ 2022-11-13 15:00 onlyblues 阅读(12) 评论(0) 推荐(0) 编辑
Web Analytics