当前位置:首页 > IT技术 > 其他好文 > 正文
🌟 知识贝壳App

知识深海,精准拾贝

随时随地查阅各类知识,汉语文化、百科科普、历史人物、语言翻译、专业词典、医学健康、科技文献,海量资源,尽在掌握

知识贝壳APP下载二维码
扫码下载APP

二分求最长单调递增子序列并输出最长的序列(模板)
2014-10-23 19:00:34

1 #include<iostream> 2 #include<cstring> 3 #include<cstdio> 4 #include<algorithm> 5 #define N 100005 6 using namespace std; 7 int num[N]; 8 int a[N]; 9 int pre[N];10 int pos[N];11 12 void print(int x){13 if(x==0) return;14 print(pre[x]);15 cout<<num[x]<&l ......

本文摘自 :https://www.cnblogs.com/

开通会员,享受整站包年服务