摘要: Description: FFT真的容易忘,所以就放到上面来了 cpp include using namespace std; const int mxn=4e6+5; const double PI=acos( 1); int n,m,l,lim=1,r[mxn]; struct cp { do 阅读全文
posted @ 2019-02-25 21:10 cloud_9 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Description: 用一种数据结构,模拟单旋splay的以下操作: 1.插入一个数 2.查询最小值,单旋到根 3.查询最大值,单旋到根 4.查询最小值,单旋到根删除 5.查询最大值,单旋到根删除 Hint: $n,m define ls p::iterator sit; const int m 阅读全文
posted @ 2019-02-25 18:31 cloud_9 阅读(187) 评论(0) 推荐(0) 编辑