A. Triangle(阅读题 + next_premutation) Johnny has a younger sister Anne, who is very clever and smart. As she came home from the kindergarten, she told h ...
分类:
其他好文 时间:
2017-04-17 21:53:39
阅读次数:
504
题目来自于Leetcode https://leetcode.com/problems/pascals-triangle/ Given numRows, generate the first numRows of Pascal's triangle. For example, given numRo ...
分类:
其他好文 时间:
2017-04-12 19:32:57
阅读次数:
133
//Triangle[i][j]=Triangle[i-1][j-1]+Triangle[i-1][j];//杨辉三角/*1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 */public class YangHui{ publ ...
分类:
其他好文 时间:
2017-04-12 11:19:06
阅读次数:
144
用css做出来一个三角形 <!--不设置宽高 转换行内块 边线设置成宽度--> <div class="triangle"> 三角形复习<span></span></div> /* 相对定位*/ .triangle { position: relative; } /* 绝对定位*/ .triangl ...
分类:
Web程序 时间:
2017-04-09 11:34:23
阅读次数:
214
列表:A B C 代表三角形三条边 输出: select CASE when (A + B) <= C then 'Not A Triangle' when A = B and B = C then 'Equilateral' when (A = B) or (B = C) or (A = C) t ...
分类:
数据库 时间:
2017-04-08 00:59:34
阅读次数:
294
1 ku.less 2 a.css 3 主 less ...
分类:
其他好文 时间:
2017-04-05 01:04:15
阅读次数:
205
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]] 思路: ...
分类:
其他好文 时间:
2017-04-05 00:51:11
阅读次数:
142
大致题意: 给出六条边,判断是否能组成四面体 分析: 四面体由四个三角形组成,所以每一条边肯定要符合三角形的任意两边大于第三边的性质。一开始以为这样判断就可以了,然而这题并没有这么简单。 如右图,有四个三角形,六条边,但是并不是四面体 如下图,先选择五条边(绿色的五条边),然后展开成一个平面,三角形 ...
分类:
其他好文 时间:
2017-04-03 22:58:15
阅读次数:
232
//定义一个三角的函数 实现不同方向的三角加兼容ie6//第一个参数传入方向//第二个参数传入大小//第三个参数传入颜色//注意:传入参数中间必须逗号分隔@mixin triangle($x, $y:10px, $z:white ){ @if $x == "top"{ border-width: $ ...
分类:
Web程序 时间:
2017-04-03 19:02:53
阅读次数:
176
The Triangle The Triangle Time Limit: 1000 MS Memory Limit: 10000 KB 64-bit integer IO format: %I64d , %I64u Java class name: Main Time Limit: 1000 MS ...
分类:
其他好文 时间:
2017-04-01 18:24:28
阅读次数:
189