码迷,mamicode.com
首页 >  
搜索关键字:city    ( 3144个结果
不是SELECTed表达式
sql语句如下:select distinct(p.project_name) name,p.pkid pkid, p.report_year year, q.cor_name cor_name,getcityname(q.belongs_city) belongs_city, p.apply_su...
分类:其他好文   时间:2015-06-28 22:51:00    阅读次数:202
CodeForces 1A Theatre Square
A. Theatre SquareTheatre Square in the capital city of Berland has a rectangular shape with the sizen?×?mmeters. On the occasion of the city's anniver...
分类:其他好文   时间:2015-06-27 11:22:09    阅读次数:179
关于在smarty中实现省市区三级联动
刚开始接触php,,其实对于一些比较深入的东西还不是很了解,就像是这次的省市区联动,都是用三张表为基础编码的,原谅我的无知,谢谢。接下来就是编码部分了: $rs["pid"],"pname" => $rs["pname"]);}$sql2 = "select cid,cname from city ...
分类:其他好文   时间:2015-06-26 12:30:12    阅读次数:243
HDU 1505 City Game-dp-(最大子矩阵模型)
题意:求最大的子矩阵 分析:直接用最大字矩阵的公式做超时了。换个思路,这题跟上一题1506有关系,先以每层为底算出每个元素能到达的最大的高度,然后就跟1506一样了。这里求高度和求面积两处地方用到了dp暂存数据。求高度用二重循环,然后每层为底求面积要二重循环加上外层就是三重循环,但是由于用了dp保存中间结果,所以这个三重循环不会超时。dp[j]表示当前层第j列能到达的最大的高度,状态转移:1.a...
分类:其他好文   时间:2015-06-23 10:17:21    阅读次数:113
UVa 855 - Lunch in Grid City
题目:字一个由垂直的街道构成的城市里,居住着很多朋友(房子都在交叉路口);             现在他们想办一个聚会,问在那个地方办可以使得所有人走的路径和最小。 分析:中位数。本题中的距离为哈密尔特距离dist(,)= |x1-x2|+|y1-y2|。             设地点定在,则有sumdist = sum(|x-xi|+|y-yi|)= sum(|x-xi|)+sum(y...
分类:其他好文   时间:2015-06-22 15:01:39    阅读次数:161
URAL 1139. City Blocks (数论)
1139. City Blocks Time limit: 1.0 second Memory limit: 64 MB The blocks in the city of Fishburg are of square form. N avenues running south to north and M streets running east to west bound ...
分类:其他好文   时间:2015-06-19 15:22:29    阅读次数:142
spring4-2-bean配置-3-bean之间的关系
bean之间的继承关系这里说的关系,是配置上的关系.一个原始的配置:street1 和 street2 之间,class,和city相同.那么我们可以让street2在配置上继承street1的配置:所以: Spring 允许继承 bean 的配置, 被继承的 bean 称为父 bean. 继承这....
分类:编程语言   时间:2015-06-17 17:55:06    阅读次数:136
POJ1363--Rails(栈)
RailsTime Limit:1000MSMemory Limit:10000KTotal Submissions:27593Accepted:10745DescriptionThere is a famous railway station in PopPush City. Country th...
分类:其他好文   时间:2015-06-17 00:39:10    阅读次数:96
Json的解析
json文本如下:{ "name": "百度", "url": "http://www.baidu.com", "address": { "street": "中关村", "city": "北京", "country": "中国" }, "links": [ { "name...
分类:Web程序   时间:2015-06-16 09:21:01    阅读次数:168
【POJ1637】Sightseeing tour
DescriptionThe city executive board in Lund wants to construct a sightseeing tour by bus in Lund, so that tourists can see every corner of the beautif...
分类:其他好文   时间:2015-06-15 22:07:52    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!