码迷,mamicode.com
首页 >  
搜索关键字:road constructions    ( 669个结果
php实现设计模式之 桥接模式
car = $car; } public function run(){ $this->car->run(); echo '高速公路上行驶'; }}class street extends road{ public $car; public function __construct($car...
分类:Web程序   时间:2014-11-05 12:33:18    阅读次数:223
Hot Days Codeforces Round #132 (Div. 2) D(贪心)
Description The official capital and the cultural capital of Berland are connected by a single road running through n regions. Each region has a unique climate, so the i-th (1?≤?i?≤?n) region has...
分类:其他好文   时间:2014-11-04 17:33:03    阅读次数:169
HDU 4081 Qin Shi Huang's National Road System 次小生成树变种
Qin Shi Huang's National Road SystemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) 【Problem Description】During the Wa...
分类:其他好文   时间:2014-11-04 17:02:01    阅读次数:268
Java高级——交通灯管理系统
本方法模拟了现实生活中的交通信号灯的情况1.先构建Road类,此类可以创建12个方向的路代码如下: 1 package com.springtie.traffic; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 import ....
分类:编程语言   时间:2014-10-28 23:47:20    阅读次数:298
HDU 1596 find the safest road (最短路)
find the safest roadTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6973Accepted Submission(s): 2...
分类:其他好文   时间:2014-10-26 11:39:18    阅读次数:198
挖坑贴——2014年结束前要做的题目们
2014/10/26:BZOJ2752 [HAOI2012]高速公路(road) --线段树,操作太烦了的说。。。BZOJ1020 [SHOI2008]安全的航线flight --二逼计算几何T TBZOJ1013 [JSOI2008]球形空间产生器sphere --貌似是高斯消元?BZOJ1033...
分类:其他好文   时间:2014-10-26 10:13:14    阅读次数:173
POJ 3177 Redundant Paths POJ 3352 Road Construction(双连通)
POJ 3177 Redundant Paths 题目链接 题意:给定一个连通无向图,问加几条边能使得图变成一个双连通图 思路:先求双连通,缩点后,计算入度为1的个数,然后(个数 + 1) / 2 就是答案(这题由于是只有一个连通块所以可以这么搞,如果有多个,就不能这样搞了) 代码: #include #include #include using namesp...
分类:其他好文   时间:2014-10-24 10:58:00    阅读次数:108
英语短句
1.We are what we repeatedly do. Excellence, then, is not an act, but a habit.————我们重复做什么,就会成为什么样的人。优秀不是一个行为,而是一个习惯!2.On the road, is often the most no...
分类:其他好文   时间:2014-10-22 10:44:57    阅读次数:204
UVA1455 - Kingdom(并查集 + 线段树)
UVA1455 - Kingdom(并查集 + 线段树) 题目链接 题目大意:一个平面内,给你n个整数点,两种类型的操作:road x y 把city x 和city y连接起来,line fnum (浮点数小数点一定是0.5) 查询y = fnum这条直线穿过了多少个州和city。州指的是连通的城市。 解题思路:用并查集记录城市之间是否连通,还有每个州的y的上下界。建立坐标y的...
分类:其他好文   时间:2014-10-21 12:18:47    阅读次数:176
HDU-1025 Constructing Roads In JGShining's Kingdom O(nlogn)的最长上升子序列
模板题,唯一问题是当长度为1是,road是单数,不然road是复数roads。 #include #include #include #include #include #include #include #include using namespace std; const int maxn=1021000; struct node { int r; int b...
分类:其他好文   时间:2014-10-19 17:07:26    阅读次数:206
669条   上一页 1 ... 58 59 60 61 62 ... 67 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!