- 博客(6)
- 收藏
- 关注
原创 python实现蓄水池抽样问题
import random filename='d:/test.txt'//要抽样的文件f=open(filename,'r')sampleNum=1000//样本个数samples=[]//样本列表currentLineNum=sampleNumfor i in range(sampleNum): samples.append(f.readline())while
2015-06-27 16:54:54
1527
原创 poj 1050 to the max
To the MaxTime Limit: 1000MSMemory Limit: 10000K DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is a
2015-05-19 19:35:06
325
原创 c# 实现二进制加法
//两个任意位数的二进制整数加起来的问题,两个整数分别存储在两个数组中 static public int[] add_2(ref int[] a, ref int[] b) { int reLength = Math.Max(a.Length, b.Length); int[] re=new int[reLength+1];//返回
2015-01-22 19:10:32
4217
原创 c#实现插入排序
static public void insertionSort(int[] a) { int temp; for(int i=1;i temp = a[i]; int j=i-1; while(j>=0&&a[j]>temp){
2015-01-22 16:18:00
361
原创 用java实现了归一化积相关的计算
用java实现了归一化积相关的计算,主要源码如下:public void guiyihua(Pic s_p,Pic t_p){ //s_p为源图像,t_p为实时图像 int s_height=s_p.getHeigth(); int s_width=s_p.getWidth(); int t_height=t_p.getH
2015-01-22 10:28:58
1968
转载 theme.info文件注释
name = A fantasy name//模板名称是必须的,这是用户可读的名字,与主题的Drupal内部名字可以分开单独进行设置。这在这里,字符的限制则很少。description = Tableless multi-column theme designed for blogs.//推荐,主题的简短描述screenshot = screenshot.png//截图键时可选的,它告诉
2014-11-18 18:03:14
605
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人