摘要: Problem StatementYou are given an integer sequence of length $N$: $A=(A_1,A_2,\ldots,A_N)$. You will perform the following consecutive operations just 阅读全文
posted @ 2022-09-27 21:53 灰鲭鲨 阅读(111) 评论(0) 推荐(0)
摘要: NotesFor two integer sequences of the same length $A_1,A_2,\dots,A_N$ and $B_1,B_2,\dots,B_N$, $A$ is said to be lexicographically earlier than $B$ if 阅读全文
posted @ 2022-09-27 21:41 灰鲭鲨 阅读(58) 评论(0) 推荐(0)
摘要: Problem StatementThere are $N$ people, called Person $1$, Person $2$, $\ldots$, Person $N$. The parent of Person $i$ $(2 \le i \le N)$ is Person $P_i$ 阅读全文
posted @ 2022-09-27 21:37 灰鲭鲨 阅读(216) 评论(0) 推荐(0)
摘要: Problem StatementWe have five cards with integers $A$, $B$, $C$, $D$, and $E$ written on them, one on each card. This set of five cards is called a Fu 阅读全文
posted @ 2022-09-27 21:35 灰鲭鲨 阅读(142) 评论(0) 推荐(0)