随笔分类 -  约瑟夫环

摘要:题意: 求原序列。 题目链接:https://nanti.jisuanke.com/t/41352 分析: (1)双端队列逆向模拟,复杂度 \(O(N*M)\)。 代码: #include<bits/stdc++.h> using namespace std; const int N=4e7+10; 阅读全文
posted @ 2020-07-06 23:07 xzx9 阅读(155) 评论(0) 推荐(0)