码迷,mamicode.com
首页 >  
搜索关键字:points    ( 1654个结果
[转] ASP.NET MVC 中你必须知道的 13 个扩展点
ScottGu在其最新的博文中推荐了Simone Chiaretta的文章13 ASP.NET MVC extensibility points you have to know,该文章为我们简单介绍了 ASP.NET MVC 中的 13 个扩展点。Keyvan Nayyeri(与Simone合著了...
分类:Web程序   时间:2014-11-14 10:32:14    阅读次数:267
POJ 1329 Circle Through Three Points(求三角形的外接圆)
Circle Through Three Points 题目大意: 给你三个不共线的三个点的坐标,求出过这三个点的圆的方程。写出方程的两种形式。 解题思路: 其实题目要求写出的方程的形式中包含圆心坐标跟半径,所以说关键问题其实就是求出过三点圆的圆心跟半径就OK了。 其实就是个求三角形外接圆的题目,最后加上一些蛋疼的输出控制就可以了。...
分类:其他好文   时间:2014-11-10 19:57:14    阅读次数:233
LeetCode:Max Points on a Line
题目描述: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 解题思路:暴力求解。以每个点为中心,然后遍历剩余的点。对每个点,初始化一个map,以pair为key(dx,dy为两点之间x坐标与y坐标的差除以他们的最大公约数之后得到...
分类:其他好文   时间:2014-11-10 12:07:20    阅读次数:152
UVA - 10574 Counting Rectangles
DescriptionProblem HCounting RectanglesInput: Standard InputOutput:Standard Output Time Limit: 3SecondsGiven n points on the XY plane, count how many ...
分类:其他好文   时间:2014-11-08 16:32:29    阅读次数:173
Max Points on a Line(6)
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.如何判断点在同一条直线上呢?可以这么办。设定一个初始起点,计算剩余点到起始点直线的斜率,如果存在斜率相...
分类:其他好文   时间:2014-11-07 20:32:32    阅读次数:206
Codeforces #245(div2)
A:A. Points and Segments (easy)题目看了n久,開始认为尼玛这是div2的题目么,题目还标明了easy。。意思是给你一n个点,m个区间,在n个点上放蓝球或者红球,然后让你找一种选择方案使得m个区间内的蓝球和红球数量之差不超过1.開始想过用dfs,只是这仅仅是div2的A题...
分类:其他好文   时间:2014-11-06 17:05:32    阅读次数:268
strong & weak
Here is a quick summary: A strong reference will keep the object it points to from being deallocated. Aweak reference will not. Thus instance variable...
分类:其他好文   时间:2014-11-05 18:58:44    阅读次数:137
使用NFS安装oracle软件
昨天,使用openfiler创建nas存储系统,并安装oracle软件,前面一切顺利,到创建数据库时报ora错误,原来使用nfs安装oracle数据库时,mount选项有特殊要求,整理总结如下,以备查: RAC   In the table below Binaries is the shared mount points where the Oracle H...
分类:数据库   时间:2014-11-05 09:19:03    阅读次数:311
POJ 3090 Visible Lattice Points ( 法雷数列 + 欧拉函数 )
#include #include using namespace std;#define CLR( a, b ) memset( a, b, sizeof(a) )#define MAXN 1010int phi[ MAXN ], farey[ MAXN ], n, t;void get_eul....
分类:其他好文   时间:2014-11-04 18:49:58    阅读次数:203
BZOJ 2330 SCOI 2011 糖果 差分约束系统
题目大意:幼儿园老师给小盆友们发糖果。有5种要求,问老师最少需要准备多少糖果。如不能满足,输出-1。 思路:裸地差分约束系统,但是正向加边会T,需要反向加边。 CODE: #include #include #include #include #include #define MAX 400010 using namespace std; int points...
分类:其他好文   时间:2014-11-03 17:54:30    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!