创建带有postgis功能的数据库的方法1.安装时勾选默认创建的gis库2.新建一个数据库 执行createextensionpostgis创建一个带有地理类型列的表1.先创建一个不包含地理列的表CREATE TABLE public."STATION_ADDRESS"( "ID" charact....
分类:
数据库 时间:
2015-04-14 11:07:36
阅读次数:
336
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to e...
分类:
其他好文 时间:
2015-04-14 08:33:05
阅读次数:
125
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel
from station i to ...
分类:
其他好文 时间:
2015-04-13 09:34:53
阅读次数:
145
题目:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costsco...
分类:
其他好文 时间:
2015-04-12 06:33:18
阅读次数:
169
題目:在0~1422公里的鐵路上有n個補給站,火車每次補給后可行駛200公里,問火車能否走個來回。
分析:排序。直接排序然後計算差值即可。
說明:第一個訂單,╮(╯▽╰)╭。
#include
#include
#include
#include
#include
#include
using namespace std;
int station[1500];
int ma...
分类:
其他好文 时间:
2015-04-08 09:13:37
阅读次数:
103
我们都知道开发iPhone等ios平台的移动应用时需要使用Mac本,但是Mac本都比较昂贵,所以我们可以采用Windows7上利用VMWare安装Mac操作系统的方法来模拟ios开发环境,达到降低成本的目的。 1.相关配置 操作系统:windows7旗舰版 Work station:VMWare10...
分类:
移动开发 时间:
2015-04-06 11:25:02
阅读次数:
171
Problem Description
As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the railway.
Input
The input contains sever...
分类:
其他好文 时间:
2015-04-03 17:22:48
阅读次数:
145
有两个向量,一个向量存着gas,gas[i]代表在i点能够获得的gas,另外一个向量存着cost代表从i到i+1(注意循环)需要消耗的gas,希望找个一个地点i,从这个地点i开始能够跑完整个向量,如果不能跑完则返回-1。思路:设定两个指针start和end,start指向向量尾部,end指向向量头部...
分类:
其他好文 时间:
2015-04-03 17:00:01
阅读次数:
163
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 12844
Accepted: 6579
Description
When a radio station is broadcasting over a very large area, repeaters are used to retr...
分类:
其他好文 时间:
2015-04-01 23:52:40
阅读次数:
166
先根据不同的起点跑最短路,记录距离,从而建立二分图求最小匹配。一开始我求最短路的时候我把港口直接加到图中,然后发现进了港口就不能出来了,所以连接港口的边就要从双向边改成单向边…………这也搞得我n和m分不清了……还不如排除掉港口算最短路后再统计各艘船到各个港口的最短距离……然后我还傻叉地用了Dijks...
分类:
其他好文 时间:
2015-03-31 22:00:30
阅读次数:
97