http://caibaojian.com/css-border-triangle.html .text{ height: 0; width: 0; /* 这里设置overflow, font-size, line-height,是因为, * 虽然宽高度为0, 但在IE6下会具有默认的字体大小和行高...
分类:
Web程序 时间:
2015-05-15 10:22:01
阅读次数:
119
CSS 三角形绘制方法,这里面的transparent比较重要,有和没有影响很大; 原理:这个div是由4个三角形组成,每个三角对应一个border,隐藏其它3个border,就可以得到一个三角形。 复制代码 代码如下: #triangle-up { width: 0; height: 0; bor...
分类:
Web程序 时间:
2015-05-13 21:28:26
阅读次数:
129
转载:http://bbs.itiankong.com/thread-89555-1-1.htmlPLY 是一种电脑档案格式,全名为 多边形档案(Polygon File Format) 或 史丹佛三角形档案(Stanford Triangle Format)。在档案内容的储存上 PLY 有两种版本...
分类:
其他好文 时间:
2015-05-13 18:58:58
阅读次数:
129
Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) ex...
分类:
其他好文 时间:
2015-05-12 15:45:55
阅读次数:
143
对数字输出格式的简单处理
#include
int main()
{
int n,a,f,i,j,t,b;
scanf("%d",&n);
while(n--){
scanf("%d%d",&a,&f);
if(a==0&&f==0)break;
for(i=0;i<f;i++){
for(j=1;j...
分类:
其他好文 时间:
2015-05-10 01:06:06
阅读次数:
135
题目:Description73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum...
分类:
其他好文 时间:
2015-05-09 13:01:44
阅读次数:
95
1 public static void main(String[] args) { 2 int triangle[][] = new int[10][];// 创建二维数组 3 // 遍历二维数组的第一层 4 for (int i = 0; i <...
分类:
编程语言 时间:
2015-05-09 10:09:44
阅读次数:
126
ZOJ Problem Set - 3598Spherical TriangleTime Limit:2 Seconds Memory Limit:65536 KBAs everybody knows, the sum of the interior angles of a triangle on ...
分类:
其他好文 时间:
2015-05-07 21:50:15
阅读次数:
139
Pascal's Triangle
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]
]
解题思...
分类:
其他好文 时间:
2015-05-07 16:50:12
阅读次数:
90
分析,与118题很相似,118题需要求出整个的金字塔list结合,本题只需要给出某一层的结果publicclassSolution{publicList<Integer>getRow(introwIndex){List<List<Integer>>x=newArrayList<List<Integer>>();if(rowIndex<0){List<Integer&g..
分类:
其他好文 时间:
2015-05-05 19:54:31
阅读次数:
132