摘要: C. Swap Game Alice and Bob are playing a game on an array $a$ of $n$ positive integers. Alice and Bob make alternating moves with Alice going first. I 阅读全文
posted @ 2022-11-12 18:09 onlyblues 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 构造数组 请你构造一个长度为 $n$ 的正整数数组 $a_1,a_2, \ldots ,a_n$。 我们会给出一个长度为 $n−1$ 的由 $<$、$>$、$=$ 组成的字符串 $s_1s_2 \ldots s_{n−1}$ 用于约束你的构造: 如果 $s_i$ 为 $<$,则表示你构造的数组需满足 阅读全文
posted @ 2022-11-12 15:22 onlyblues 阅读(20) 评论(0) 推荐(0) 编辑
Web Analytics