摘要: 【题意概述】 给出N个数(10^6),求出最短的包含1~M(M≤2000)的连续子序列 【题解】 Two Pointer~~~ 1 #include<cstdio> 2 #include<algorithm> 3 using namespace std; 4 const int maxn=10000 阅读全文
posted @ 2017-10-30 19:52 Driver_Lao 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 直接写一波Lca就好了 1 #include<cstdio> 2 #include<cmath> 3 #include<algorithm> 4 using namespace std; 5 const int maxn=1010; 6 int n,m,x,y,z,ans=0,tot=0,dis[m 阅读全文
posted @ 2017-10-30 16:20 Driver_Lao 阅读(147) 评论(0) 推荐(0) 编辑