码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
HDU 搜索练习 Red and Black
Red and Black Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing ...
分类:其他好文   时间:2016-04-17 20:33:16    阅读次数:157
使用多态求矩形的面积和周长以及圆形的面积和周长
//使用多态求矩形的面积和周长以及圆形的面积我周长 Shape shape = new Circle(5); //new Square(5,6); double area = shape.GetArea(); double perimeter = shape.GetPerimeter(); Cons ...
分类:其他好文   时间:2016-04-16 02:01:53    阅读次数:169
机器学习中的正则化
1. 正则化概述(Regularization) 监督学习可以简单的理解为在最小化loss function 的同时,保证模型的复杂度尽可能的低,防止出现过拟合(overfitting)。常用的loss函数有square loss(Regression),Hinge Loss(SVM),exp-lo... ...
分类:其他好文   时间:2016-04-15 21:31:38    阅读次数:275
hdu 1312 Red and Black (bfs)
Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til ...
分类:其他好文   时间:2016-04-15 19:56:05    阅读次数:140
HDU1518 Square 【剪枝】
Square Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8900 Accepted Submission(s): 2893 Proble ...
分类:其他好文   时间:2016-04-13 13:04:12    阅读次数:188
LeetCode -- Maximal Square
Question: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the fol ...
分类:其他好文   时间:2016-04-11 18:45:17    阅读次数:126
数字信号处理中的常用方法
产生方波 cleart=0:0.01:10;subplot(4,1,1)f1=square(t); % 产生周期为2pi的方波信号plot(t,f1)axis([0,10,-1.2,1.2])subplot(4,1,2)f2=square(t,30); % 产生周期为2pi,占空比为30%的方波信号 ...
分类:其他好文   时间:2016-04-11 15:45:56    阅读次数:595
JAVA泛型中的类型擦除及为什么不支持泛型数组
一,数组的协变性(covariant array type)及集合的非协变性 设有Circle类和Square类继承自Shape类。 关于数组的协变性,看代码: 如果给 totalArray(Shape[] arr) 传递一个Circle[] 类型的数组,这是可以的,编译通过,也能正常运行。也就是说 ...
分类:编程语言   时间:2016-04-09 18:38:26    阅读次数:178
高斯消元 UVA 11542 Square
题目传送门 题意:给n个数,选择一些数字乘积为平方数的选择方案数。训练指南题目。 分析:每一个数字分解质因数。比如4, 6, 10, 15,, , , , 令,表示选择第i个数字,那么,如果p是平方数,那么每个质因数上的指数为偶数,x1系数为2已经是偶数不考虑。可以转换为异或为0判断偶数,即奇数置为 ...
分类:其他好文   时间:2016-04-07 22:14:36    阅读次数:325
lintcode-medium-Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. Example Given n = 3, You should return the following ...
分类:其他好文   时间:2016-04-06 13:31:14    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!