码迷,mamicode.com
首页 >  
搜索关键字:lena    ( 119个结果
大数求和
#include #include #include using namespace std; int main() { string A, B; cin>>A>>B; vector vecSum; int lenA = A.length(); int lenB = B.length(); int temp; int carry =0; int indexA = len...
分类:其他好文   时间:2015-05-09 19:06:48    阅读次数:100
[leetcode] Bitwise AND of Numbers Range
Bitwise AND of Numbers RangeGiven a range [m, n] where 0 >= 1) lena++; while(b >>= 1) lenb++; if(lena == lenb) { for(int i = m...
分类:其他好文   时间:2015-05-05 21:28:06    阅读次数:110
Lena原型
莱娜图是刊于1972年11月号花花公子杂志上的一张祼体插图照片的一部分。该图在数字图像处理学习与研究中颇为知名,常被用作数字图像处理各种实验的例图。   图中人为瑞典模特儿莱娜·索德伯格,1997年获邀出席图像科学学会的周年大会。   现在被广泛使用的英文化名字"Lenna"最初是由花花公子杂志发表此照片时命名的,以方便英语读者近似正确地读出瑞典语中"Lena"的发音。...
分类:其他好文   时间:2015-05-05 14:34:15    阅读次数:274
图像缩放_OpenCv
图像缩放是一种比较简单的图像处理操作,这里给出opencv中的代码,opencv的版本C语言接口int resize_c(){ const char *pstrImageName = "lena.jpg"; const char *pstrSaveImageName = "lena缩放图...
分类:其他好文   时间:2015-04-17 21:44:02    阅读次数:153
[目前未找到题目]扩展KMP模板
procedure build_next;begin lena:=length(a);lenb:=length(b); next[0]:=lenb;next[1]:=lenb-1; for i:=1 to lenb-1 do if b[i]b[i+1] then begin...
分类:其他好文   时间:2015-03-31 20:05:09    阅读次数:124
合并两个数组
#include using namespace std;int sortedInsert(int A[],int lenA,int B[],int lenB){ if(B == NULL) return lenA; int len = lenA + lenB; in...
分类:编程语言   时间:2015-03-13 00:19:58    阅读次数:287
PAT:1016. 部分A+B (15) AC
当做字符串处理#include#includeint main(){ char A[120],B[120],ca,cb; int iA=0,iB=0; scanf("%s %c %s %c",A,&ca,B,&cb); int lenA=strlen(A),lenB=strlen(B); ...
分类:其他好文   时间:2015-02-14 17:24:43    阅读次数:284
Leetcode_Add Binary
class Solution { public: string addBinary(string a, string b) { string s; int lenA=a.size(); int lenB=b.size(); if(lenA==0) return b; if(lenB==0) return a; if(lenA>lenB) ...
分类:其他好文   时间:2015-02-09 23:12:28    阅读次数:167
hdu 1159 Common Subsequence (lcs)
/* 裸lcs(最大公共子序列) */ # include # include # include # include using namespace std; int c[1010][1010]; int main() { int i,j,lena,lenb; char a[1010],b[1010]; while(~scanf("%s%s",a,b)) ...
分类:其他好文   时间:2015-02-02 14:13:47    阅读次数:98
[算法]大数问题(高精度运算)
【大数相加】 [cpp] view plaincopy #include   #include      char a[10001],b[10001],sum[10002];      int BigIntegerAdd(){       //两个数的长度       int lena = strlen(a);       int...
分类:编程语言   时间:2015-01-28 11:16:38    阅读次数:265
119条   上一页 1 ... 7 8 9 10 11 12 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!