码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle    ( 1342个结果
uva 488 - Triangle Wave
1 /* 2 * Author: Quickgrid ( Asif Ahmed ) 3 * Site: https://quickgrid.wordpress.com 4 * Problem: UVA 488 ( Triangle Wave ) 5 */ 6 #include 7 8 ...
分类:其他好文   时间:2016-01-01 01:53:35    阅读次数:192
UVA 11401 - Triangle CountingTriangle Counting 数学
You are given n rods of length 1,2, . . . , n. You have to pick any 3 of them and build a triangle. Howmany distinct triangles can you make? Note that...
分类:其他好文   时间:2015-12-28 20:24:53    阅读次数:138
Triangle
?package cn.edu.xidian.sselab.array;import java.util.ArrayList;import java.util.List;/*** * @author zhiyong wang* title: Triangle* content:* Given a.....
分类:其他好文   时间:2015-12-25 01:14:19    阅读次数:288
Poj 1163 The Triangle 之解题报告
Time Limit:1000MSMemory Limit:10000KTotal Submissions:42232Accepted:25527Description73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 sh...
分类:其他好文   时间:2015-12-24 09:16:03    阅读次数:212
Pascal's Triangle II
package cn.edu.xidian.sselab.array;import java.util.ArrayList;import java.util.List;?/*** * @author zhiyong wang* title: Pascal's Triangle II* content...
分类:其他好文   时间:2015-12-21 21:43:15    阅读次数:117
Pascal's Triangle
package cn.edu.xidian.sselab.array;import java.util.ArrayList;import java.util.List;/*** * @author zhiyong wang* title:Pascal's Triangle* content:* Gi...
分类:其他好文   时间:2015-12-21 01:53:23    阅读次数:127
LeetCode118: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] ] Subscribe to see ...
分类:其他好文   时间:2015-12-18 10:40:02    阅读次数:146
(eden)Pascal triangle
题目名称Pascal triangle题目描述By using two-dimensional array, write C program to display a table that represents a Pascal triangle of any size. In Pascal tri...
分类:其他好文   时间:2015-12-11 20:35:27    阅读次数:177
(记忆化搜索 )The Triangle--hdu --1163
http://poj.org/problem?id=1163Description73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that...
分类:其他好文   时间:2015-12-11 12:53:12    阅读次数:217
Code for the Homework1 改进
相对第一次作业,使用了虚基类SHAPE和容器vector sv实现了POINT、LINE、TRIANGLE等形状的多态性,使用迭代器进行查找操作,不过还是有个bug,我发现将SHAPE里面的函数定义为虚函数,实现不了多态性,只有定义为纯虚函数时才能实现多态性,但是由于此时SHAPE为虚基类,不能定义...
分类:其他好文   时间:2015-12-11 01:29:11    阅读次数:224
1342条   上一页 1 ... 66 67 68 69 70 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!