码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
【转】POJ-2362-Square:简单 DFS+剪枝
思路:首先将输入的各边长累加求和 即四边形周长sum, 后除4 即边长side,这样 通过DFS 搜索这些sticks能否组合成4根长度均为side 进而确定yes no。在此 就涉及到搜索顺序了-最优性剪枝: 不难理解 先搜索的小棒子 越长,组合构成side的方式就越少,搜索到结果的时间就越短。S...
分类:其他好文   时间:2015-09-14 20:51:56    阅读次数:145
hdu 5432 Pyramid Split(二分搜索)
Problem DescriptionXiao Ming is a citizen who's good at playing,he has lot's of gold cones which have square undersides,let's call them pyramids.Anyon...
分类:其他好文   时间:2015-09-12 22:22:49    阅读次数:370
hdu 4400 Mines(离散化+bfs+枚举)
Problem DescriptionTerrorists put some mines in a crowded square recently. The police evacuate all people in time before any mine explodes. Now the po...
分类:其他好文   时间:2015-09-12 15:59:13    阅读次数:192
[LeetCode#279] Perfect Squares
Problem:Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ...) which sum ton.For example, givenn=12...
分类:其他好文   时间:2015-09-12 12:05:47    阅读次数:120
[LeetCode] Perfect Squares 完全平方数
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.For example, given n = 12, ...
分类:其他好文   时间:2015-09-11 14:18:08    阅读次数:427
Perfect Squares
Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ...) which sum ton.For example, givenn=12, return...
分类:其他好文   时间:2015-09-10 07:16:03    阅读次数:170
[LeetCode]Spiral Matrix II
Spiral Matrix IIGiven an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the...
分类:其他好文   时间:2015-09-10 00:17:25    阅读次数:157
[LeetCode#69] Sqrt(x)
Problem:Implementint sqrt(int x).Compute and return the square root ofx.Conclusion for Binary Search Problem:Binary search is such an elegant way of s...
分类:其他好文   时间:2015-09-09 11:21:36    阅读次数:138
【基础】常用的机器学习&数据挖掘知识点
Basis(基础):MSE(Mean Square Error 均方误差),LMS(LeastMean Square 最小均方),LSM(Least Square Methods 最小二乘法),MLE(MaximumLikelihood Estimation最大似然估计),QP(Quadratic ...
分类:其他好文   时间:2015-09-08 15:30:02    阅读次数:249
HTML笔记(二) 列表
1. 无序ul标签: 一个无序列表: 咖啡 茶 牛奶 效果: type属性值:值描述disc默认值。实心圆。circle空心圆。square实心方块。 ...
分类:Web程序   时间:2015-09-07 00:42:07    阅读次数:218
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!