E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Squares
project欧拉第六题
The sum of the
squares
of the first ten natural numbers is, 12 + 22 + ... + 102 = 385 The square of
gongzhq
·
2010-01-06 14:00
python
pku2002
Squares
(折半查找)
枚举正方形的一条边,查找满足条件的另外两个顶点是否存在,使用折半查找 #include#includeusingnamespacestd;structPOINT{intx;inty;}ps[1001];intn;boolcomp(POINTp1,POINTp2){if(p1.x!=p2.x)returnp1.xp.x)high=mid-1;else{if(ps[mid].yp.y)high=mid
vecri
·
2009-11-30 14:00
search
PKU 3076 Sudoku Dancing Links (DLX) 果然很生猛……
65536KTotalSubmissions: 638Accepted: 304DescriptionASudokugridisa16x16gridofcellsgroupedinsixteen4x4
squares
51isoft's ACM Journey
·
2009-07-28 02:00
pku 2002
pku20022009年7月18日星期六题目链接:PKU 2002
Squares
分类:哈希题目分析与算法原型 其实该题和1971很像(还有3432题除了输入的点的范围其他的基本和这题一模一样
蜗牛の狂奔笔记
·
2009-07-18 23:00
最近做题计划
POJ1200CrazySearch(Rabin-Karp)POJ1635Subwaytreesystems(树同构)POJ1971ParallelogramCounting(统计平行四边形)POJ2002
Squares
蜗牛の狂奔笔记
·
2009-07-15 15:00
USACO 1.2.4 Palindromic
Squares
USACO1.2.4PalindromicSquares把题目意思翻译成代码就行了。 1 /* 2 ID:31440461 3 PROG:palsquare 4 LANG:C++ 5 */ 6 #include 7 using namespace std; 8 int B; 9 const10 int MAX=300;11 char CH[20]={'0','1','2','3','4',
生无所息
·
2009-07-12 13:00
USACO 3.2 Magic
Squares
USACO3.2MagicSquares BFS搜索题。代码写的比较乱,用一个set来存储已经访问过的结点。analysis中的标程有不少可以学习的地方,如几个操作的变换,用转换数组来写,代码清晰明了,encode方法就省去了set。我通过保存整个树来输出解,标程通过反向操作,来输出解,做法很巧妙。#include #include #include #include using namespac
止于自娱
·
2009-07-06 20:00
joj 1867
squares
深搜狂剪枝,狂超时
joj1867
squares
深搜狂剪枝,狂超时错误代码,过不了的数据14:15101716121102017194595 可能解:(20155),(19174),(1712101),(161095)下面的代码
I believe
·
2009-07-03 23:00
5/28 继续hash
,则m-1也可以,细节稍有不同 1145TreeSumming重写了此题,不建树,直接递归,0ms了cin.putback真好用google到一个ozy写的代码...超短..有兴趣可以研究下 2002
Squares
3432CountSquares
twilightgod
·
2009-05-28 21:00
c
tree
Google
Section 3.2 - Magic
Squares
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int init_state, target_state; 8 9 void get_init_and_target_state()10 {11 init_state = 12345678;12 for (int i = 0, x, t = 10
superman
·
2009-05-18 00:00
All Latin
Squares
(USACO)
一个搜索的题目,不过肯定是要剪枝的最简单的两个剪枝我想到了第一个:首先,第一行已经确定了,那么我们可以把第一列也确定,就按照升序,2,3,4,5……,这样的话,没生成这么一个square,我们就可以随便的去交换除了第一行后面的几行。他们的一个全排列就对应着一种组合,所以最后的答案乘以N-1的阶乘就可以第二个:这个其实是看来的,就是每次只要所搜完N-1行就可以了。因为剩下的一行必然存在一个解。其实这
无界
·
2009-05-02 15:00
hdu 1398 Square Coins
-24 14:13:00 Accepted 1398 0MS 260K 523 B C++ no way #includeusing namespace std;int main(){ int
squares
Dreams
·
2009-04-24 14:00
Section 1.2 - Palindromic
Squares
1 #include 2 3 using namespace std; 4 5 //convert a number to string in base b 6 string num2string(int n, int b) 7 { 8 string s; 9 while (n)10 {11 s += "0123456789ABCDEFGHIJ"[n
superman
·
2009-03-16 14:00
090305 Exercise 1.3 returns the sum of the
squares
of the two larger numbers
090305Exercise1.3returnsthesumofthesquaresofthetwolargernumbersDefineaprocedurethattakesthreenumbersasargumentsandreturnsthesumofthesquaresofthetwolargernumbers.(define(comparexy)(-xy))(define(sumsqua
stargazers
·
2009-03-05 19:00
HDU 1264 Counting
Squares
CountingSquaresTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):105 AcceptedSubmission(s):59ProblemDescriptionYourinputisaseriesofrectangles,oneperline.
tao_tao_bu_jue
·
2009-01-17 13:00
PKU 3432 Count
Squares
CountSquaresTimeLimit:3000MSMemoryLimit:65536KTotalSubmissions:1331Accepted:552DescriptionGivenasetofpointswithintegercoordinatesxi,yi,i=1...N,yourprogrammustfindallthesquareshavingeachoffourverticesi
tao_tao_bu_jue
·
2008-12-09 14:00
File
Integer
ini
input
each
output
Which Numbers are the Sum of Two
Squares
?
Themaingoaloftoday'slectureistoprovethefollowingtheorem.Theorem1.1Anumberisasumoftwosquaresifandonlyifallprimefactorsofoftheformhaveevenexponentintheprimefactorizationof.Beforetacklingaproof,weconside
ihuashao
·
2008-11-24 19:00
C++
c
C#
Which Numbers are the Sum of Two
Squares
?
Themaingoaloftoday'slectureistoprovethefollowingtheorem.Theorem1.1 Anumber isasumoftwosquaresifandonlyifallprimefactorsof oftheformhaveevenexponentintheprimefactorizationof .Beforetacklingaproof,wecon
cjc
·
2008-11-24 19:00
number
Which Numbers are the Sum of Two
Squares
?
Themaingoaloftoday'slectureistoprovethefollowingtheorem.Theorem1.1 Anumber isasumoftwosquaresifandonlyifallprimefactorsof oftheformhaveevenexponentintheprimefactorizationof .Beforetacklingaproof,wecon
cjc
·
2008-11-24 19:00
number
Which Numbers are the Sum of Two
Squares
?
Themaingoaloftoday'slectureistoprovethefollowingtheorem.Theorem1.1 Anumber isasumoftwosquaresifandonlyifallprimefactorsof oftheformhaveevenexponentintheprimefactorizationof .Beforetacklingaproof,wecon
eimhee
·
2008-11-24 19:00
number
Every positive integer is a sum of four integer
squares
From(http://www.alpertron.com.ar/4
SQUARES
.HTM)EverypositiveintegerisasumoffourintegersquaresbyMichaelBarrIntroductionThetheoremofthetitlehasbeenknownforcenturies
ihuashao
·
2008-11-01 23:00
C++
c
C#
F#
UP
USACO_1_2_Palindromic
Squares
/**//*ID:sdjllyh1PROG:palsquareLANG:JAVAcompletedate:2008/9/25author:LiuYongHuiFromGuiZhouUniversityOfChinamorearticle:www.cnblogs.com/sdjls*/importjava.io.*;importjava.util.*;publicclasspalsquare{pri
巷中人
·
2008-09-25 14:00
java
使用eviews做线性回归分析
Glossary: ls(least
squares
)最小二乘法 R-sequared样本决定系数(R2):值为0-1,越接近1表示拟合越好,>0.8认为可以接受,但是R2随因变量的增多而增大
eyejava
·
2007-12-29 11:00
C++
c
F#
C#
读书
递进网格算法绘制等高线
/* generates contours using marching
squares
*//* region size */#define X_MAX 1.0 #define Y_MAX 1.0 #
phinecos
·
2007-09-27 13:00
c
算法
buffer
网格
sicp习题2.33-2.39尝试解答
模块化设计带来复杂性的降低,同时可能引入性能上的损失,比如书中对sum-odd-
squares
过程的两种写法,原来的写法枚举列表元素的过程散落在累积、过滤、映射的过程中,主要一次循环就够了,而通过三个高阶过程来操作反
庄周梦蝶
·
2007-06-27 15:00
OpenCV下车牌定位算法实现代码(一)
我们可以使用OpenCV中的实例:C:/ProgramFiles/OpenCV/samples/c.
squares
.c
yangdelong
·
2007-05-11 11:00
算法
image
function
filter
processing
math.h
ACM UVa 算法题 #201 -
Squares
解法
题目的内容在这里:#201-
Squares
解法我所能想到的有两种,先说慢一些的:1.较慢的算法,复杂度O(N^4)我一开始想到的算法如下:对于每个点,可以从该点出发,把该点看成矩形的左上角,检查是否存在大小从
lovnet
·
2007-01-26 00:00
数据结构
算法
GoogleMap 是如何实现的?
As the user drags the map, the grid
squares
are downloaded from the server an
cookoo
·
2006-11-01 02:00
JavaScript
Ajax
Web
Google
Yahoo
IBM在印度的笔试题(供大家参考)(4)
Equal
squares
of the same size are cut and is formed as open box.
talin2010
·
2006-09-05 17:00
C++
c
C#
IBM
OpenCV下车牌定位算法实现代码 (二)
前面介绍了用OpenCV的
squares
实例定位车牌的算法,效果不是很理想。车牌定位的方法有很多种,这里我们从汽车图像的纹理特征入手,找出车牌不同于背景的特征是车牌定位的关键。
heihei723
·
2006-05-14 13:00
算法
上一页
15
16
17
18
19
20
21
22
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他