码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle    ( 1342个结果
125.Pascal's Triangle II
题目: Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. 给定非负索引k,其中k≤33,返回Pascal三角形的第k个索引行。 Note that the row ...
分类:其他好文   时间:2018-07-20 22:31:37    阅读次数:175
POJ1163(简单的DP)
题目链接:http://poj.org/problem?id=1163 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 ...
分类:其他好文   时间:2018-07-16 23:46:57    阅读次数:328
LeetCode 118 Pascal's Triangle
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers ...
分类:其他好文   时间:2018-07-16 11:15:58    阅读次数:126
LeetCode 119 Pascal's Triangle II
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian ...
分类:其他好文   时间:2018-07-16 11:15:19    阅读次数:147
LeetCode 120 Triangle
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 fo ...
分类:其他好文   时间:2018-07-16 11:14:55    阅读次数:150
HDU - 4324 Triangle LOVE(拓扑排序)
https://vjudge.net/problem/HDU-4324 题意 每组数据一个n表示n个人,接下n*n的矩阵表示这些人之间的关系,输入一定满足若A不喜欢B则B一定喜欢A,且不会出现A和B相互喜欢的情况,问你这些人中是否存在三角恋。 分析 就是求是否存在三元环。判断图是否存在环,可以使用拓 ...
分类:编程语言   时间:2018-07-08 23:14:28    阅读次数:209
luogu P2992 [USACO10OPEN]三角形计数Triangle Counting
https://www.luogu.org/problemnew/solution/P2992 考虑包含原点,不包含原点的三角形有什么特征. 包含原点的三角形:任意找一个顶点和原点连线,一定能把另外两个顶点隔开到两侧. 不包含原点的:三个顶点中只有一个顶点满足:和原点连线后,能把另外两个顶点隔开到两 ...
分类:其他好文   时间:2018-07-08 15:38:01    阅读次数:130
ACM-ICPC-Swiss-Subregional 2017 训练日志
solved 7 (2/59) A Chess B B - Triangle in a Triangle C - Candy division D - Effective network E - Collection F - Mattress Run J - Box Hedge K - ACM ...
分类:其他好文   时间:2018-06-16 13:36:08    阅读次数:293
812. Largest Triangle Area
暴力解法,用了下二维平面中给出三个点坐标计算三角形面积的公式 ...
分类:其他好文   时间:2018-06-14 20:40:42    阅读次数:120
leetcode 119. Pascal's Triangle II
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian ...
分类:其他好文   时间:2018-06-14 01:09:10    阅读次数:203
1342条   上一页 1 ... 23 24 25 26 27 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!