摘要: // 前缀和dp优化1#include<bits/stdc++.h> using namespace std; int main() { for(int u=1,i=1;i<=n;i++) { while(s[i]-s[u]>le) u++; p[i]=u; } for(int i=1;i<=n&& 阅读全文
posted @ 2019-06-18 23:24 ALEZ 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 顺 阶乘乘上当前没用过的 逆 除以+1 为当前的数 +% 可约等于哈希 记录状态 阅读全文
posted @ 2019-06-18 19:01 ALEZ 阅读(86) 评论(0) 推荐(0) 编辑