1 #include 2 3 using namespace std; 4 5 int w, h; 6 int MAP[41][41]; 7 int sx, sy, ex, ey; 8 int res; 9 int dx[4] = { 10 1, -1, 0, 0...
分类:
其他好文 时间:
2014-11-06 00:43:45
阅读次数:
215
DescriptionA supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an...
分类:
其他好文 时间:
2014-11-05 16:20:41
阅读次数:
186
#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
题目大意:给定一个棋盘,一些格子上有障碍物,可以移除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
题意: H*W(W,H#include #include #include using namespace std;const int MAXN = 111;int n, m, dx, cnt;double A[MAXN][MAXN], ans[MAXN];inline void build (.....
分类:
其他好文 时间:
2014-10-25 18:46:43
阅读次数:
142
def get_CDF(numList): print "total number of numList %d"%len(numList) numArray = np.asarray(numList) dx = .01 bins_array = np.arange(-0.5,1.5,dx) his....
分类:
编程语言 时间:
2014-10-23 15:47:03
阅读次数:
341
1 #region 计算比例尺的原理 2 //此段代码仅限投影坐标系 3 float dx, dy; 4 Graphics g = this.CreateGraphics(); 5 try//获取当前...
分类:
其他好文 时间:
2014-10-22 12:53:55
阅读次数:
240
There is a tools called "dx", this tool can transfer Java Binary Code into Android Dalvik Binary code.In Android, Java Binary Code cannot be recognize...
分类:
移动开发 时间:
2014-10-22 12:48:36
阅读次数:
133
1 //桌面 透明 三角形 分层窗口 DX 2 //IDirect3DSurface9 GetDC UpdateLayeredWindow 3 4 #include 5 #include 6 #include 7 #pragma warning( disable : 499...
分类:
其他好文 时间:
2014-10-20 23:06:03
阅读次数:
448
public class DensityUtil { /** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public static int dip2px(Context context, float dpValue) { ...
分类:
移动开发 时间:
2014-10-18 19:39:46
阅读次数:
711