码迷,mamicode.com
首页 >  
搜索关键字:city    ( 3144个结果
Mayor's posters(线段树 + 离散化)
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all places at their whim. The city coun...
分类:其他好文   时间:2014-08-14 16:46:38    阅读次数:291
编译Bug i386/ armv7 / armv7s
address = "\U5927\U6210\U8857\U4f53\U80b2\U5b66\U9662\U9662\U5185\U8f6e\U6ed1\U573a"; addressexplain = ""; city = "\U9ed1\U9f99\U6c5f \U54c8...
分类:其他好文   时间:2014-08-14 14:02:58    阅读次数:166
HDU 3001 Travelling (三进制状态压缩 DP)
题意:有 n 个city,可以选择任一城市作为起点,每个城市不能访问超过2次, 城市之间有权值,问访问全部n个城市需要的最小权值。 思路:因为每个城市可以访问最多两次,所以用三进制表示访问的状态。 详细见代码注释!!!! #include #include #include #include #include #include #includ...
分类:其他好文   时间:2014-08-14 01:38:07    阅读次数:244
POJ 2312Battle City(BFS-priority_queue 或者是建图spfa)
1 /* 2 bfs搜索!要注意的是点与点的权值是不一样的哦! 3 空地到空地的步数是1, 空地到墙的步数是2(轰一炮+移过去) 4 所以用到优先队列进行对当前节点步数的更新! 5 */ 6 #include 7 #include 8 #include 9 #inc...
分类:其他好文   时间:2014-08-13 22:02:27    阅读次数:218
UVa - 12661 - Funny Car Racing
先上题目:12661 Funny Car RacingThere is a funny car racing in a city with n junctions and m directed roads.The funny part is: each road is open and closed...
分类:其他好文   时间:2014-08-13 21:55:38    阅读次数:340
Sqlserver中实现oralce 数据库的rownumber
引用自:http://cai555.javaeye.com/blog/466033方法1: with temp as ( select row_number() over(order by cityID) as rownum,cityName from city ) select * from te...
分类:数据库   时间:2014-08-13 18:34:16    阅读次数:243
HDU 1078 FatMouse and Cheese(记忆化)
Problem Description FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e...
分类:其他好文   时间:2014-08-13 14:56:46    阅读次数:236
分页SQL代码
SELECT TOP 10 * FROM citys WHERE (city_id NOT IN (SELECT TOP 30 city_id FROM citys where country_id=44 and parent_id=0 ORDER BY city_id)) and country....
分类:数据库   时间:2014-08-13 12:35:16    阅读次数:190
POJ 3277 City Horizon(线段树+扫描线+离散化)
题目地址:POJ 3277 水题。。稍微处理一下然后用求面积并的方法求即可。 代码如下: #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define lson l, mid,...
分类:其他好文   时间:2014-08-12 19:03:54    阅读次数:310
poj 1703 Find them, Catch them
Find them, Catch them Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 31412   Accepted: 9677 Description The police office in Tadu City decides to say ends...
分类:其他好文   时间:2014-08-12 13:38:04    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!