[抄题]: 给定一个整数数组,在该数组中,寻找三个数,分别代表三角形三条边的长度,问,可以寻找到多少组这样的三个数来组成三角形? [暴力解法]: 时间分析: 空间分析: [思维问题]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): ...
分类:
其他好文 时间:
2018-03-03 17:04:09
阅读次数:
95
任务一、递归初体验: 1.打印hello 2.递归实现循环 源代码: public class TasteRecursion { public static void display() //循环打印hello,Beauty { System.out.println("hello,Beauty!") ...
分类:
编程语言 时间:
2018-02-25 12:59:50
阅读次数:
121
1.设置网格顶点局部标架 定义顶点 Vi 的局部标架 Fi = (ei1, ei2, ni),如图 三维空间中的任意向量 A 可用局部标架表示为 A = λ1e1 + λ2e2 + λ3n; 2.求取矩阵 T 两两局部标架之间有旋转矩阵 T(因为是局部标架而非局部坐标系,所以没有平移,不适用合同变换 ...
分类:
其他好文 时间:
2018-02-24 14:53:22
阅读次数:
204
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4324 题目: Problem Description Recently, scientists find that there is love between any of two people. Fo ...
分类:
编程语言 时间:
2018-02-22 11:37:54
阅读次数:
222
【链接】 "我是链接,点我呀:)" 【题意】 在这里输入题意 【题解】 最后的直角三角形可以通过平移,将直角顶点移动到坐标原点。 然后我们只要枚举另外两个点其中一个点的坐标就好了。 x坐标的范围是[1..a) 因为再长的话,这条边肯定就超过边长a了。 然后用一些相似三角形的规律就能知道另外一个点的坐 ...
分类:
其他好文 时间:
2018-02-14 12:26:28
阅读次数:
213
传送门 Time limit : 4sec / Memory limit : 256MB Score : 1600 points Problem Statement There are N(N+1)?2 dots arranged to form an equilateral triangle wh ...
分类:
其他好文 时间:
2018-02-13 16:45:36
阅读次数:
206
1.题目描述 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 ...
分类:
其他好文 时间:
2018-02-11 19:52:46
阅读次数:
149
Description 73 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 of numbers passed on ...
分类:
其他好文 时间:
2018-02-08 00:27:54
阅读次数:
192
[抄题]: [思维问题]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): [画图]: [一刷]: [二刷]: [三刷]: [四刷]: [五刷]: [五分钟肉眼debug的结果]: [总结]: [复杂度]:Time complexi ...
分类:
其他好文 时间:
2018-02-06 11:03:28
阅读次数:
172