本文以全国30米分辨率ASTER DEM为例,介绍如何制作高质量,小数据量的山体阴影。...
分类:
其他好文 时间:
2015-04-16 17:47:31
阅读次数:
209
Rightmost Digit
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 37888 Accepted Submission(s): 14268
Problem Description
Given a posi...
分类:
Web程序 时间:
2015-04-16 17:45:20
阅读次数:
148
本系列的第一篇文章介绍了自动布局的基本原理,第二篇文章通过一个简单的例子演示了如何使用Xcode的Interface Builder(简称IB)以可视化方式添加约束。本篇为该系列的第三篇文章,主要介绍如何通过代码来添加布局约束。...
分类:
移动开发 时间:
2015-04-16 17:47:10
阅读次数:
219
一、描述
系统描述:win7旗舰版64位系统+VMware Workstation10+CentOS6.5(win7系统上安装了VMware Workstation10虚拟化软件,在该虚拟化软件上安装了CentOS6.5),现在我想要在win7系统和CentOS系统之间传递数据,那么我只要在虚拟机上安装VMware tools工具并启动共享目录即可。
二、安装步骤
1、VMware tool...
Problem DescriptionOn the beaming day of 60th anniversary of NJUST, as a military college which was Second Artillery Academy of Harbin Military Engineering Institute before, queue phalanx is a special...
分类:
其他好文 时间:
2015-04-16 17:47:17
阅读次数:
181
题意:有一条河,河中有n个石头,给出了河的宽度和石头的位置,一个人要渡河,给出了这个人最远跳多远。问最少跳几下跳到对岸,或者如果跳不到那么就输出可以离对岸最近的距离。
题解:bfs,直接暴力把所有可能跳的情况都过一遍就可以找到解了。
#include
#include
#include
#include
using namespace std;
const int N = 1005;
...
分类:
其他好文 时间:
2015-04-16 17:46:35
阅读次数:
108
MQT跟踪算法学习...
分类:
编程语言 时间:
2015-04-16 17:44:20
阅读次数:
302
E-Form++是一套值得推荐的高品质开源C++矢量图形库,C++编程之所以异常困难,主要就是没有很专业的C++基础架构库有关。E-Form++的出现一定程度上填补了这个空白。是开发工控、监控、建模与仿真应用的必备之选。...
分类:
其他好文 时间:
2015-04-16 17:45:28
阅读次数:
116
ZooKeeper的安装模式分为三种,分别为:单机模式(stand-alone)、集群模式(replicated mode)和集群伪分布模式。ZooKeeper
单机模式的安装相对比较简单,如果第一次接触ZooKeeper的话,建议安装ZooKeeper单机模式或者集群伪分布模式。
安装ZooKeeper的前提是必须安装JDK,版本6以上,具体安装见 http://blog.csdn.net...
分类:
其他好文 时间:
2015-04-16 17:46:35
阅读次数:
110
一、数学运算类
abs(x)
求绝对值
1、参数可以是整型,也可以是复数
2、若参数是复数,则返回复数的模
complex([real[, imag]])
创建一个复数
divmod(a, b)
分别取商和余数
注意:整型、浮点型都可以
float([x])
将一个字符串或数转换为浮点数。如果无参数将返回0....
分类:
编程语言 时间:
2015-04-16 17:44:45
阅读次数:
144
假设树的直径的两个端点为p0,p1。如果对于一次询问(v,k)存在点q满足要求,那么q必然在v到p0或v到p1的路径上。
剩下的就是在树上寻找p了。倍增就好了。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define LL long long
#defi...
分类:
其他好文 时间:
2015-04-16 17:43:34
阅读次数:
131
Big Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5606 Accepted Submission(s): 3903
Problem Description
As we know, Big Num...
分类:
其他好文 时间:
2015-04-16 17:46:09
阅读次数:
100
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the next smallest number in the BST.Note: next() and has...
分类:
其他好文 时间:
2015-04-16 17:45:41
阅读次数:
151
Dataguru培训 优惠码BY81,报名立减50%固定学费~~...
分类:
其他好文 时间:
2015-04-16 17:44:08
阅读次数:
122
import java.nio.ByteOrder;
public class BytesTransUtils {
private String TAG = "BytesTransUtils";
private static BytesTransUtils instance = null;
private BytesTransUtils() {
// Lo...
分类:
移动开发 时间:
2015-04-16 17:45:31
阅读次数:
217
减去一天
[dc@dc010.tj.momo.com init_env]$ date -d "20150416 -1 days" "+%Y%m%d"
20150415
减去三天
[dc@dc010.tj.momo.com init_env]$ date -d "20150416 -3 days" "+%Y%m%d"
20150413
加上三天
[dc@dc010.tj.momo....
分类:
系统相关 时间:
2015-04-16 17:43:58
阅读次数:
153
给出一个16个点所构成的图形,分别由0,1组成,每次操作可以任选其中相连的两个点(必须一个为0,一个为1),进行0,1,交换
问3步内是否可以把图形变成:0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1状态
若不行,输出more
状压存储图形状态。ida*搜索 或者 BFS都行
IDA*搜索
#include "stdio.h"
#include "str...
分类:
其他好文 时间:
2015-04-16 17:43:58
阅读次数:
130