码迷,mamicode.com
首页 >  
搜索关键字:基本bash脚本练习 max min    ( 41645个结果
LINQ to SQL语句(3)之Count/Sum/Min/Max/Avg
1.简单形式:得到数据库中客户 的数量:var q = db.Customers.Count();2.带条件形 式:得到数据库中未断货产品的数量:var q = db.Products.Count(p => !p.Discontinued);LongCount说明 :返回集合中的元素个数,返回LON...
分类:数据库   时间:2014-06-28 21:30:36    阅读次数:274
Leetcode Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.此题是求直线上点最多的点数,根据两点构成一条直线,在同一条直线上,任意两点之间的斜率都相同,故需要对每个点...
分类:其他好文   时间:2014-06-28 20:59:44    阅读次数:132
线程-方法
1、sleep()使当前线程(即调用该方法的线程)暂停执行一段时间,让其他线程有机会继续执行,但它并不释放对象锁。也就是说如果有synchronized同步快,其他线程仍然不能访问共享数据。注意该方法要捕捉异常。例如有两个线程同时执行(没有synchronized)一个线程优先级为MAX_PRIOR...
分类:编程语言   时间:2014-06-21 08:30:15    阅读次数:285
HDU 1010
经典搜索 1 #include 2 #include 3 using namespace std; 4 5 const int MAX=10; 6 7 int step[MAX][MAX]; 8 char maze[MAX][MAX]; 9 int n,m,t;10 struct {11 ...
分类:其他好文   时间:2014-06-21 07:12:00    阅读次数:218
HDU 1242
简单题 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int MAX=205; 7 const int inf=1000000; 8 int tim[MAX][MAX]; 9 char maze[MAX][...
分类:其他好文   时间:2014-06-21 00:34:49    阅读次数:226
类的构造及初始化效率对比
基础数据结构: struct A { int a; int b; int c; int d; int e; int f; int g; };初始化次数:const int MAX_L...
分类:其他好文   时间:2014-06-21 00:17:14    阅读次数:166
jQuery新版本中jquery.map是什么文件(回答)
source map文件是js文件压缩后,文件的变量名替换对应、变量所在位置等元信息数据文件,一般这种文件和min.js主文件放在同一个目录下。 比如压缩后原变量是map,压缩后通过变量替换规则可能会被替换成a,这时source map文件会记录下这个mapping的信息,这样的好处就是说,在调试的...
分类:Web程序   时间:2014-06-21 00:16:42    阅读次数:268
HDU 1241
1 #include 2 #include 3 using namespace std; 4 5 const int MAX=105; 6 7 bool vis[MAX][MAX]; 8 char maze[MAX][MAX]; 9 int n,m;10 int dir[8][2]={0,...
分类:其他好文   时间:2014-06-21 00:14:01    阅读次数:275
[游戏学习29] Win32 图像处理1
>_____<:头文件参见:http://www.cnblogs.com/zjutlitao/p/3733164.html 1 #include "stdafx.h" 2 #include "resourse.h" 3 4 #define MAX_LOADSTRING 100 5 6...
分类:Windows程序   时间:2014-06-20 23:43:37    阅读次数:327
HDU 1240
1 #include 2 #include 3 using namespace std; 4 5 const int MAX=13; 6 7 char maze[MAX][MAX][MAX]; 8 9 struct {10 int i,j,k;11 }beg,des,que[11...
分类:其他好文   时间:2014-06-20 14:04:37    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!