码迷,mamicode.com
首页 >  
搜索关键字:dy    ( 426个结果
wap 机试(lsp) 问题 暴力法
#include #include #include #include #include #include using namespace std; const int dx[] = { -1 , 0 , 0, 1}; const int dy[] = { 0 ,-1 ,1 , 0 }; //4 direction struct Point{ Point(){}; Point(...
分类:其他好文   时间:2014-10-28 18:03:40    阅读次数:206
BZOJ 1295 SCOI2009 最长距离 SPFA+暴力
题目大意:给定一个棋盘,一些格子上有障碍物,可以移除T个障碍物,求移除后所有能互相到达的点对中的最大欧几里得距离 m,n #include #include #include #include #include #define M 40 using namespace std; typedef pair abcd; const int dx[]={0,0,1,-1}; const int dy...
分类:其他好文   时间:2014-10-28 17:51:25    阅读次数:216
matrix矩阵
matrix(a,b,c,d,e,f)x’ | a c e | xy’ = | b d f | y1 | 0 0 1 | 1这就是矩阵的运算了,简化为公式:x’=ax+cy+ey’=bx+dy+fcss3的transform属性很好用,其实可以变换为matrix矩阵工作,只需要给abc...
分类:其他好文   时间:2014-10-27 17:29:12    阅读次数:227
比例尺——分辨率
1 #region 计算比例尺的原理 2 //此段代码仅限投影坐标系 3 float dx, dy; 4 Graphics g = this.CreateGraphics(); 5 try//获取当前...
分类:其他好文   时间:2014-10-22 12:53:55    阅读次数:240
W.xml
函数名:wherex功能:返回窗口内水平光标位置用法:intwherex(void);程序例:#includeintmain(void){clrscr();gotoxy(10,10);cprintf("CurrentlocationisX:%dY:%d\r\n",wherex(),wherey())...
分类:其他好文   时间:2014-10-18 16:40:14    阅读次数:159
RTTI
RTTI(Run-Time Type Identification,通过运行时类型识别)程序能够使用基类的指针或引用来检查这些指针或引用所指的对象的实际派生类型。编辑本段RTTI介绍 RTTI提供了以下两个非常有用的操作符: (1)typeid操作符,返回指针和引用所指的实际类型; (2)dy...
分类:其他好文   时间:2014-10-17 23:19:16    阅读次数:352
POJ 1979 Red and Black(DFS 连通块中元素数量)
题意  求矩阵中包含‘@’的'.'连通块中元素数量  '@'也看做'.'  最基础的dfs了 #include #include using namespace std; const int N = 30; char mat[N][N]; int dx[4] = {0, 0, -1, 1}, dy[4] = { -1, 1, 0, 0}; int ans; void dfs(int r, i...
分类:其他好文   时间:2014-10-13 13:40:09    阅读次数:271
tomcat
Tomcat本身不能直接在计算机上运行,需要依赖于硬件基础之上的操作系统和一个java虚拟机。#####关于tomcatserver.xml文件详解[dy@web-dyserver]#cat/usr/local/apache-tomcat-6.0.41_8081/conf/server.xml<?xmlversion=‘1.0‘encoding=‘utf-8‘?><Serverport="8181"shut..
分类:其他好文   时间:2014-10-13 03:04:39    阅读次数:148
[zt]矩阵求导公式
今天推导公式,发现居然有对矩阵的求导,狂汗--完全不会。不过还好网上有人总结了。吼吼,赶紧搬过来收藏备份。基本公式:Y = A * X --> DY/DX = A'Y = X * A --> DY/DX = AY = A' * X * B --> DY/DX = A * B'Y = A' * X' ...
分类:其他好文   时间:2014-10-08 14:37:05    阅读次数:270
BOM
1 Window对象 1.1 窗口操作:moveBy(dx,dy) moveTo(x,y) resizeTo(x,y) resizeBy(dx,dy) //dx,dy是指相对,x,y是指绝对 1.2 打开新窗口 var abc=window.open("URL","title","heig...
分类:其他好文   时间:2014-10-01 21:45:11    阅读次数:170
426条   上一页 1 ... 37 38 39 40 41 ... 43 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!