A. Euclid, Sequence and Two Numbers 大致题意 定义一种特殊的序列,满足 $\forall 1 \leq i \leq n - 2, a_{i+2} = a_i \space mod \space a_{i+1}$ 现在给出一个数组,确认其是否满足 思路 注意到:我们只需要检查一下数组是否满足就行 AC code 1 2 3 4 5 6 7 8 9 10 11 1…
A. Euclid, Sequence and Two Numbers 大致题意 定义一种特殊的序列,满足 $\forall 1 \leq i \leq n - 2, a_{i+2} = a_i \space mod \space a_{i+1}$ 现在给出一个数组,确认其是否满足 思路 注意到:我们只需要检查一下数组是否满足就行 AC code 1 2 3 4 5 6 7 8 9 10 11 1…
讨论
登录后参与讨论
还没有评论,来说第一句吧。