摘要: 比赛链接 I. Counter 按时间排序即可,注意可以不清零。 F. Equivalent Rewriting 对于每个位置,把所有有这个位置的操作编号连向这个位置最终的值,做个拓扑排序,看看字典序最大的即可。复杂度 \(\Theta(n+m)\)。 C. Primitive Root 枚举和 \ 阅读全文
posted @ 2024-09-30 22:13 FantasyNumber 阅读(53) 评论(0) 推荐(0)