摘要: RMQ问题的在线ST算法VIJOS 1514#include #include #include using namespace std;int n,m,a,b,dp[201000][30],s[201000];void init_RMQ(){ for(int i=1;i#i... 阅读全文
posted @ 2016-11-15 15:43 Leo.Tan 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 描述自己网上找…代码#include #include #include using namespace std;long long l,d[50010];int m,n,pre[50010],bak[50010];bool vis[50010];int main(){ fr... 阅读全文
posted @ 2016-11-15 11:14 Leo.Tan 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题面自己网上去搜吧…代码#include #include #include #define INF 10000000#define maxn 40using namespace std;int t,n,temp,a,zhang[maxn],ans=INF;void dfs(int... 阅读全文
posted @ 2016-11-15 07:08 Leo.Tan 阅读(106) 评论(0) 推荐(0) 编辑