- 博客(5)
- 收藏
- 关注
转载 洛谷P1357 花园 网络题解的加速优化的解释
洛谷题目链接网络题解代码和注释#include#include#includeusing namespace std;const int mi[]{1,2,4,8,16,32};const int MO=1000000007;#define ll long longll n,m,k,ans,f[32],a[32][32],aa[32][32],tmp[32],
2017-03-05 15:44:47 627
转载 最长递增子序列 O(NlogN)算法
最长递增子序列 O(NlogN)算法 felix021 @ 2009-5-13 04:15 , IT » 程序设计 , 评论(37) , 引用(0) , 阅读(54942) , Via 本站原创 大 | 中 | 小 今天回顾WOJ1398,发现了这个当时没有理解透彻的算法。看了好久好久,现在终于想明白了。试着把它写下来,让自己更明白。最长递增子序列,Lo
2016-10-24 13:34:23 260
转载 UVa136(Ugly Numbers)优先队列
#include#include#include#include //目前不清楚vector<>的作用using namespace std;typedef long long LL;const int coeff[3]={2,3,5};const int n=1500;set s;int main(){ priority_queue,greater > pq; pq.
2016-10-20 17:03:16 235
转载 UVa540
#include#include#includeusing namespace std;const int maxn=1005;int main(){ freopen("UVa540.in","r",stdin); freopen("UVa540.out","w",stdout); int kase=0;int n; while(scanf("%d",&n)==1&&n!=
2016-10-20 16:02:33 260
转载 UVa12096 The SetStack Computer
#include#include#include#include#include#include#include //set_union,set_intersection会用到 using namespace std;#define ALL(x) x.begin(),x.end()#define INS(x) inserter(x,x.begin())
2016-10-17 13:41:00 216
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人