摘要: [题目链接] https://loj.ac/problem/2612 [算法] 递推即可 , 时间复杂度O(N) [代码] 阅读全文
posted @ 2018-08-30 21:24 evenbao 阅读(182) 评论(0) 推荐(0) 编辑
摘要: [题目链接] https://codeforces.com/contest/986/problem/F [算法] 不难发现 , 每个人都在且仅在一个简单环中 , 设这些环长的长度分别为 A1, A2 , A3 ... Alen, 那么有 : 1. A1 + A2 + A3 + .. + Alen = 阅读全文
posted @ 2018-08-30 19:52 evenbao 阅读(272) 评论(0) 推荐(0) 编辑