码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle pas    ( 2128个结果
POJ 1927 Area in Triangle(计算几何)
Area in Triangle 博客原文地址: 题目大意:...
分类:其他好文   时间:2014-11-02 15:04:45    阅读次数:167
如何跟踪datasnap 服务端日志
1、在服务器端主窗体上显示服务器的执行情况,主窗体默认单元文件是Unit1.pas 2、一个TMEMO到窗体上, 3、在数据模块单元,ServerMethod1上放一个SQLMonitonr控件,ServerMethod1.pas的uses 里加上unit1,因为要访问MEMO。 日志可以输出到文本...
分类:其他好文   时间:2014-11-02 13:49:40    阅读次数:842
[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-11-02 12:11:32    阅读次数:138
[Leetcode] Pascal's Triangle
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:其他好文   时间:2014-11-02 07:04:34    阅读次数:190
双参数Bellman-ford带队列优化类似于背包问题的递推
为方便起见,将Bellman-ford队列优化称为SPFA,= =抓住 ZMF (ZMF.pas/c/cpp)题目描述话说这又是一个伸手不见五指的夜晚,为了机房的电子竞技事业永远孜孜不倦的 ZMF 小朋友躲在一个阴暗的角落(毫无疑问又搞起了)。当然,另一个神龙见首不见尾的黑影也偷偷地出现在了后门……...
分类:其他好文   时间:2014-11-01 01:02:37    阅读次数:305
ZOJ 3647 Gao the Grid(居然是暴力)
A n * m grid as follow: Count the number of triangles, three of whose vertice must be grid-points. Note that the three vertice of the triangle must not be in a line(the right picture is not a...
分类:其他好文   时间:2014-10-31 22:20:02    阅读次数:264
NOIPTGT2 vijosP1002 过河
过河(river.pas/c/cpp)【问题描述】在河上有一座独木桥,一只青蛙想沿着独木桥从河的一侧跳到另一侧。在桥上有一些石子,青蛙很讨厌踩在这些石子上。由于桥的长度和青蛙一次跳过的距离都是正整数,我们可以把独木桥上青蛙可能到达的点看成数轴上的一串整点:0,1,……,L(其中L是桥的长度)。坐标为...
分类:其他好文   时间:2014-10-31 13:40:56    阅读次数:178
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-10-31 08:47:11    阅读次数:158
CodeForces 407A Triangle
首先要求在平面内找到一个直角三角形,两个边长分别为a,b,并且三条边都不得与二维坐标轴的 平行,且点都在整数点上,首先这个三角形若是存在的话,那么它肯定可以在这个平面上平移的,那么我们把它给移到一二象限,然后一个点固定在(0,0)点,这样另外两个点看一下 a,b,的范围,那么另外两个点无非在 一二两个象限内以(0,0)为端点的 边长为1000的正方形内,在这两个正方形内 枚举出所有符合的点,分在两...
分类:其他好文   时间:2014-10-30 17:10:56    阅读次数:205
The Triangle
The Triangle 时间限制:1000 ms  |  内存限制:65535 KB 难度:4 描述 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a program that calculates the highest sum of ...
分类:其他好文   时间:2014-10-29 21:37:14    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!