摘要: #include #include #include #include #include #include using namespace std; typedef long long LL; const LL mod=1e9+7; int read() { int x=0,f=1;char ch=getchar(); while(ch=0;i--)up[i]=max(up[i... 阅读全文
posted @ 2018-08-21 20:30 AKCqhzdy 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 被tkj大爷艹爆了5555整套模拟赛都是神仙思路题 那么这题题解 还有一个神仙做法,zory巨神在考场上找规律AC,自己都不会证。。我证明了一下(然而这货还是不认可自己的做法) 按照分割点的思路,我们for循环一次,每次找到比当前点小且最远的点,ans+=j-i+1。毫无疑问,当前点的位移到该点之后 阅读全文
posted @ 2018-08-21 20:28 AKCqhzdy 阅读(127) 评论(0) 推荐(0) 编辑