Harry is a Junior middle student. He is very interested in the story told by his mathematics teacher about the Yang Hui triangle in the class yesterday. After class he wrote the following numbers to s...
分类:
其他好文 时间:
2014-08-29 14:42:38
阅读次数:
275
Let's consider a triangle of numbers in which a number appears in the first line, two numbers appear in the second line, three in the third line, etc....
分类:
其他好文 时间:
2014-08-28 13:03:29
阅读次数:
218
题意:问1~n这n个数中,选三个各不相同的数构成三角形,有多少种方案上图找规律:不妨设yx-y,即两边之差小于第三边图中列举了,x等于7和x等于8的情况那么y从2开始枚举,最右边是z的方案数我们把对应x的方案数叫做c(x),所求即是c(x)前若干项和。c(7)是从1加到n再从n加到1,是两个等差数列...
分类:
其他好文 时间:
2014-08-27 18:30:58
阅读次数:
249
Incircle and CircumcircleTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeA triangle is one the basic shapes in geometry. It's a polygon with...
分类:
其他好文 时间:
2014-08-26 19:03:46
阅读次数:
201
LeetCode: pascal's TriangleGiven numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return[ [1], [1,1], ...
分类:
其他好文 时间:
2014-08-26 00:14:35
阅读次数:
283
LeetCode: TriangleGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For exa...
分类:
其他好文 时间:
2014-08-25 22:48:14
阅读次数:
306
Triangle
Total Accepted: 16109 Total
Submissions: 60327My Submissions
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row...
分类:
其他好文 时间:
2014-08-23 16:54:11
阅读次数:
253
链接:http://poj.org/problem?id=2954TriangleTime Limit:1000MSMemory Limit:65536KTotal Submissions:5043Accepted:2164DescriptionAlattice pointis an ordered...
分类:
其他好文 时间:
2014-08-22 17:44:29
阅读次数:
214