码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle pas    ( 2128个结果
[poj 1163]The Triangle
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
数字三角形 · Triangle
[抄题]: [思维问题]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): [画图]: [一刷]: [二刷]: [三刷]: [四刷]: [五刷]: [五分钟肉眼debug的结果]: [总结]: [复杂度]:Time complexi ...
分类:其他好文   时间:2018-02-06 11:03:28    阅读次数:172
java算法之打印杨辉三角
效果图如下:首先我们看图片上下是对称的,我们先来打印上半部分,1.用一个for循环来做外层循环控制打印的列数for(inti=0;i<10;i++){//打印10列}2.同样用2个for循环来打印内层的空格和*for(intj=0;j<10-j;j++){//打印空格,不换行System.out.print("")}当打印了空格不换行,再打印*就只能往后面放for(intk=0;k&l
分类:编程语言   时间:2018-02-06 01:17:14    阅读次数:221
用matplotlib绘制每次交易的盈亏三角形
用matplotlib绘制每次交易的盈亏三角形 结果: 代码: def plot_trade_triangle(self): plot each trade as a trade triangle, and annotate pnl trade = self.trade equity = self. ...
分类:其他好文   时间:2018-02-05 00:29:53    阅读次数:541
python基础
user_name = "张三"pass_word = int("123456")for name in range(3): username = input("用户姓名:") for pas in range(3): password = int(input("密码:")) if user_nam ...
分类:编程语言   时间:2018-02-03 15:49:47    阅读次数:146
UVAL3700
Interesting Yang Hui Triangle 题目大意:杨辉三角第n + 1行不能整除p(p是质数)的数的个数 题解: lucas定理C(n,m) = πC(ni,mi) (mod p) 蓝书犯了两个错误 第一,题意弄错了,应该是“不能”,蓝书上写的能 第二,组合数国外常用记法弄错了。 ...
分类:其他好文   时间:2018-02-02 11:32:21    阅读次数:122
机器学习算法一:感知器学习
问题描述: 给定线性可分数据集:T={(x1,y1),(x2,y2),...,(xN,yN)},存在超平面S:$w\cdot x+b=0$ $ \left\{\begin{matrix} w\cdot x+b>0,y=+1\\ w\cdot x+b<0,y=-1 \end{matrix}\right ...
分类:编程语言   时间:2018-01-31 18:32:25    阅读次数:164
centos7下安装mysql
【前提】 使用centos7已经大于使用centos6.x了,但是因为centos7中利用systemctl进行进程管理 所以其中有些用法需要特别记录一下 【安装mysql】 MySQL -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PAS ...
分类:数据库   时间:2018-01-30 17:06:09    阅读次数:295
118. Pascal's Triangle
翻译:给定行数,生成Pascal三角的第一行?(应该是所有行,不止第一行) Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return [ [1], [1, ...
分类:其他好文   时间:2018-01-30 16:42:04    阅读次数:126
3D Computer Grapihcs Using OpenGL - 04 First Triangle
本节将绘制一个三角形 先看最终代码: MyGlWindow.cpp: 启用通道 每个顶点都有多种attributes,例如位置,颜色等。 为了让把数据从内存发送到显卡中,我们需要告诉OpenGL去开启某个attribute。 17 行使用glEnableVertexAttribArray()函数来启 ...
分类:Windows程序   时间:2018-01-22 21:16:57    阅读次数:195
2128条   上一页 1 ... 45 46 47 48 49 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!