码迷,mamicode.com
首页 >  
搜索关键字:compress advanced low    ( 4944个结果
排序与查找
1,快排void QuickSort( int a[] , int low , int high ){ int i = low , j = high ; int temp = a[i] ; while( i void /*MinHeap::*/FilterDown( T heapA...
分类:其他好文   时间:2014-08-11 02:53:41    阅读次数:170
关于图连通性的几道题(水)
POJ 2186 强连通分量缩点 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int en[10010], col[10010], dfn[10010], low[10010], stack[10010], tot[100....
分类:其他好文   时间:2014-08-11 00:08:01    阅读次数:439
rwkj 1505 poj 1258 10.1.5.253 1505
#include // poj 1258 10.1.5.253 1505using namespace std; #define N 105 // 顶点的最大个数 (多写 int a[N][N],low[N],n,ans;int min(int x,int y){ ...
分类:其他好文   时间:2014-08-10 21:20:00    阅读次数:304
zoj 1586
//zoj 1586#include#includeusing namespace std;#define N 1005int a[N][N],low[N],n,ans;int b[N];int min(int x,int y){ return x#includeusing namespace...
分类:其他好文   时间:2014-08-10 21:17:50    阅读次数:348
zoj 1372
#include#includeusing namespace std;#define N 1005int a[N][N],low[N],n,ans;int b[N];int min(int x,int y){ return xci) { a[ai-1][bi-1]=c...
分类:其他好文   时间:2014-08-10 21:15:00    阅读次数:184
无良教程-破解SublimeText3
这教程实际上并不是倡导大伙儿去破解软件然后传播出去以侵犯作者的权益,纯粹是技术分享,如果大伙儿觉得Low了,可立马删除。 sublime text是我非常喜欢的一款编辑器,在ubuntu上,之前用的一直是vim,可是用过vim的都知道,相比sublime,总缺少一种如油般润滑的感觉,并且配置起来也稍...
分类:其他好文   时间:2014-08-10 18:16:20    阅读次数:304
算法练习 - Buy Low, Buy Lower - USACO
这道题目本身很简单,倒推回去,第K个是最优时,K+1时必然包含它.所以就从最后面的股票开始贪心法用最优解生成最优解. 难点1是去重,我直接用了个价格表去过滤,如果多个价格相等的同级最优解,就用他们中可能性最大的那个累加,其余的忽略. 难点2是大数计算.可能性可能有几十位的数字,所以封装了一个大数类.现在还不支持符号,只支持正数.后面需要用到负数的时候再说. 题目: Buy Lo...
分类:其他好文   时间:2014-08-10 12:59:00    阅读次数:436
rwkj 1518
#includeint f(int a[],int low,int high,int x){ int mid; while (lowx) high=mid-1; else if(a[mid]int f(int a[],int low,int high,int x)...
分类:其他好文   时间:2014-08-10 12:39:50    阅读次数:361
NYOJ 1067 Compress String(区间dp)
Compress String 时间限制:2000 ms  |  内存限制:65535 KB 难度:3 描述 One day,a beautiful girl ask LYH to help her complete a complicated task—using a new compression method similar to Run Length Encod...
分类:其他好文   时间:2014-08-09 18:46:18    阅读次数:284
制作一个漂亮的 Android 应用图标
Android应用图标应当是一个 Alpha 通道透明的32位 PNG 图片。由于安卓设备众多,一个应用程序图标需要设计几种不同大小,如:LDPI (Low Density Screen,120 DPI),其图标大小为 36 x 36 px。MDPI (Medium Density Screen, ...
分类:移动开发   时间:2014-08-09 18:38:58    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!