Problem description
A convex polygon with n edges can be divided into several triangles by some non-intersect diagonals. We denote d(n) is the number of the different ways to divide the convex ...
分类:
其他好文 时间:
2015-08-08 23:00:19
阅读次数:
179
// uva 11401 Triangle Counting//// 题目大意://// 求n范围内,任意选三个不同的数,能组成三角形的个数//// 解题方法://// 我们设三角巷的最长的长度是c(x),另外两边为y,z// 则由z + ...
分类:
其他好文 时间:
2015-08-05 14:47:04
阅读次数:
97
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],
[...
分类:
其他好文 时间:
2015-08-01 14:18:56
阅读次数:
141
题目如下:
Given numRows, generate the first numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
实现代码如下:
public c...
分类:
其他好文 时间:
2015-07-31 13:05:56
阅读次数:
94
Coded triangle numbers
Problem 42
The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so the first ten triangle numbers are:1, 3, 6, 10, 15, 21, 28, 36, 45, 55, …By converting...
分类:
其他好文 时间:
2015-07-30 17:00:20
阅读次数:
117
华电北风吹
天津大学认知计算与应用重点实验室
完成日期:2015/7/30Integer right triangles
Problem 39
If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p...
分类:
其他好文 时间:
2015-07-30 13:31:14
阅读次数:
178
A Triangle and a CircleTime Limit: 5000MSMemory Limit: 131072KTotal Submissions: 3001Accepted: 679Special JudgeDescriptionGiven one triangle and one c...
分类:
其他好文 时间:
2015-07-29 18:54:19
阅读次数:
135
我们的网页因为 CSS 而呈现千变万化的风格。这一看似简单的样式语言在使用中非常灵活,只要你发挥创意就能实现很多比人想象不到的效果。特别是随着 CSS3 的广泛使用,更多新奇的 CSS 作品涌现出来。今天给大家带来 CSS 三角形绘制方法代码如下:#triangle-up {width: 0;hei...
分类:
Web程序 时间:
2015-07-29 11:52:37
阅读次数:
156
三角相对简答题。第一个问题是太简单。我不沾了,我一定会写。其实没什么的第二个问题,与这个问题计算路径有点像一个三角形,假定输入是n,然后从第一行计数到第一n行,保存在数据线上的时间到,由于只有相关的事情跟上一行,为了防止覆盖,计数从前进或后退。直接附着到代码:class Solution {publ...
分类:
其他好文 时间:
2015-07-27 18:11:11
阅读次数:
119