
高效算法
高效算法
kelianlee
这个作者很懒,什么都没留下…
展开
-
Assemble UVA - 12124(二分)
#include <iostream> #include <map> #include <vector> #include <string> #include <algorithm> using namespace std; const int MAXN=1005; struct node { int p,q; nod...原创 2019-02-17 20:17:32 · 150 阅读 · 0 评论 -
Monthly Expense POJ - 3273 最大值最小化 类似二分
#include <iostream> #include <cstdio> using namespace std; const int maxn=111111; int a[maxn]; int n,m; bool judge(int mid) { int st=0; int cont=0; for(int i=0;i<n;i++) ...原创 2018-09-13 19:37:43 · 161 阅读 · 0 评论 -
最长上升子序列
#include <iostream> #include <algorithm> #include <cstring> #include <vector> using namespace std; int main() { int n; while(~scanf("%d",&n)) { vector...原创 2019-08-24 18:25:50 · 108 阅读 · 0 评论