码迷,mamicode.com
首页 >  
搜索关键字:mount point    ( 11132个结果
Leetcode:Container With Most Water
戳我去解题Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoint...
分类:其他好文   时间:2014-07-22 23:09:34    阅读次数:337
virtualbox 4.3.10 ubuntu 12.04 mount share folder bug
virtualbox 4.3.10 不能mount共享文件夹,这是一个bug,参考如下链接https://www.virtualbox.org/ticket/12879执行以下命令即可:sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAd...
分类:其他好文   时间:2014-07-22 23:07:55    阅读次数:334
poj 3525 Most Distant Point from the Sea 半平面交 + 二分
题目来源:http://poj.org/problem?id=3525分析:题意:给定一个凸多边形,求多边形中距离边界最远的点到边界的距离。思路 : 每次将凸多边形每条边往里平移d,判断是否存在核;二分d即可。多边形边上的点(x , y)往里平移d 后的 坐标: s , e 为向量的 起点和终点, ...
分类:其他好文   时间:2014-05-01 16:27:16    阅读次数:335
VC 绘图技巧--自定义形状图形
自定义形状图形,定义几个点围城的图形,然后进行描边和填充:[cpp]view plaincopyif(m_memDC.m_hDC!=NULL){CPointpoint[4];point[0].x=nLeft+(int)(0.1*m_nWidth);point[0].y=m_nYmargin;poin...
分类:其他好文   时间:2014-05-01 11:47:28    阅读次数:329
梯度下降法
梯度下降法是求解无约束最优化问题的一种常用方法。实现简单,代码如下。 1 # -*- coding: utf8 -*- 2 3 delta = 0.00001 4 5 # f = x^2 + y^2 6 my_function = lambda point : point[0] ** 2 + p.....
分类:其他好文   时间:2014-05-01 03:14:54    阅读次数:267
半平面交 模板 poj 3335 poj 3130 poj 1474 判断半平面交是否为空集
半平面交模板const double pi= acos(-1.0);#define arc(x) (x / 180 * pi)const double EPS = 1e-8;const int Max_N = 105;struct Point{ double x,y; Point(){}...
分类:其他好文   时间:2014-04-30 17:00:01    阅读次数:621
poj 1279 求半平面交的 面积
poj 1279 求半平面交的 面积题目来源:http://poj.org/problem?id=1279分析: 求半平面交的 面积代码如下:const double EPS = 1e-8;const int Max_N = 1505;struct Point{ double x,y; ...
分类:其他好文   时间:2014-04-29 16:35:46    阅读次数:499
ahjesus fstab修改错误了如何修复
fstab修改错误了如何修复当你不小心把磁盘表输入错误以后,系统总是让你按ctrl+D重新启动或者输入密码进入shell,你输入密码登陆后,编辑文件是只读的,执行下面的命令后就可以编辑了。mount -o remount,rw /vi /etc/fstab删除错误的磁盘信息,重启就好了。
分类:其他好文   时间:2014-04-29 15:10:14    阅读次数:349
SICP 习题 (1.35)解题总结
SICP 习题 1.35要求我们证明黄金分割率φ 是变换函数 x => 1+ 1/x 的不动点,然后利用这一事实通过过程fixed-point 计算出φ的值。首先是有关函数的不动点,这个概念需要理解清楚,后面好几道题都是围绕函数不动点展开的。作者在这里设计这些习题的原因也是希望读者可以关注函数不动点。其实有关不动点这个东西我在做习题“1.8”的时候就觉得好奇了。为什么“(x+x/y)/2”会不断逼...
分类:其他好文   时间:2014-04-29 13:23:22    阅读次数:352
Leetcode:Container with most water 最大蓄水量
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin...
分类:其他好文   时间:2014-04-29 13:15:21    阅读次数:415
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!