码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle pas    ( 2128个结果
【leetcode刷题笔记】Pascal's Triangle II
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:其他好文   时间:2014-07-19 19:05:27    阅读次数:174
poj1673EXOCENTER OF A TRIANGLE
链接据说这题是垂心。。数学太弱没有看出来,写了分朴实无华的代码。。旋转三边得到图中的外顶点,然后连接三角形顶点求交点,交上WA。。觉得没什么错误就去看了下discuss,发现都在说精度问题,果断开始水,最后+了epsAC了。。 1 #include 2 #include 3 #include...
分类:其他好文   时间:2014-07-18 23:18:12    阅读次数:302
LeetCode "Triangle"
This is the same asSPOJ #453. The best way to understand DP1A code:class Solution {public: int minimumTotal(vector > &triangle) { fo...
分类:其他好文   时间:2014-07-18 21:19:47    阅读次数:234
poj1927Area in Triangle
链接物理渣只能搜题解了。。分三种情况1、len>=a+b+c2、len 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 using namespace std;11 #...
分类:其他好文   时间:2014-07-18 14:04:31    阅读次数:162
mysql设置远程访问
Mysql远程访问设置,容许远程连接本地数据库。 1。进入本地Mysql安装目录bin下,登录Mysql, 如图: 2. 切换数据库到内置的名为“mysql”的数据库,可以看到下面的一个名为“user”的表。 3. 执行sql语句:select host,user,pas...
分类:数据库   时间:2014-07-18 13:30:49    阅读次数:314
HDU 4324:Triangle LOVE( 拓扑排序 )
Triangle LOVE Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2271    Accepted Submission(s): 946 Problem Description Recen...
分类:其他好文   时间:2014-07-18 12:18:56    阅读次数:202
[LeetCode] Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-07-17 14:03:41    阅读次数:293
神奇的CSS形状
在StackOverflow上有这么一个问题,有位同学在http://css-tricks.com/examples/ShapesOfCSS/找到一些使用CSS做的形状,其中一位同学对下面的这个形状充满了疑问。形状是:代码是:#triangle-up {width: 0;height: 0;bord...
分类:Web程序   时间:2014-07-16 17:42:09    阅读次数:213
linux下rsync工具使用与配置
这篇文章基本介绍全了:http://www.2cto.com/os/201308/238733.html 几点简单备忘: 1. ubuntu下通过apt-get即可安装; 2. 配置文件/etc/rsync.conf默认不存在,需要手动创建; 3. 可以通过守护进程xinetd来启动rsync,在/etc/default/rsync中配置; 4. 服务器在/etc/rsync.pas...
分类:系统相关   时间:2014-07-16 09:56:33    阅读次数:333
LeetCode——Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [...
分类:其他好文   时间:2014-07-13 16:01:42    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!