码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
LeetCode:Maximus Square(DP)
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 following matr...
分类:其他好文   时间:2015-08-11 18:23:52    阅读次数:95
LeetCode(221) Maximal Square
题目: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 following matrix:1 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0Ret...
分类:其他好文   时间:2015-08-10 22:07:02    阅读次数:128
Codeforces Round #Pi (Div. 2) D. One-Dimensional Battle Ships
Alice and Bob love playing one-dimensional battle ships. They play on the field in the form of a line consisting of n square cells (that is, on a 1?×?n table). At the beginning of the game Alice ...
分类:其他好文   时间:2015-08-10 20:05:45    阅读次数:148
HDU 1045 Fire Net(缩点求最大匹配)
Problem Description:Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each repres...
分类:Web程序   时间:2015-08-10 19:32:21    阅读次数:191
C++_inline内联函数
inline内联函数可以实现在调用函数的地方拷贝代码副本,从而避免了函数调用跳转等存在的时间上耗时稍长的问题。 (inline 要写在函数 定义 与 声明 之前,如 inline double square(double);      inline double square(double x){return x*x;}) 内联函数的使用前提: 1.代码段比较小 2.且函数调用频...
分类:编程语言   时间:2015-08-10 12:13:12    阅读次数:183
C语言_宏函数存在的问题
C语言中的宏函数可以简化我们的操作。 但是存在一定的问题,宏函数是不能使用++a/a++,--a/a--这种形式的。这样会导致BUG(所得到的结果与预想结果不一致)。 原因就是宏函数是进行的文本拷贝,而不是传递的参数。 示例代码如下: #include using namespace std; #define SQUARE(X) ((X)*(X))...
分类:编程语言   时间:2015-08-10 12:10:11    阅读次数:121
汇编实现square函数
square函数主要计算一个数的平方 code: .section?.data .section?.text .global?_start fmt: ????.ascii?"%d\n\0" _start: ????pushq?$2 ????call?square ????addq?$8,?%rsp?????...
分类:其他好文   时间:2015-08-10 09:31:47    阅读次数:167
欧拉工程第57题:Square root convergents
题目链接 Java程序 package projecteuler51to60; import java.math.BigInteger; import java.util.Iterator; import java.util.Set; import java.util.TreeSet; class ...
分类:其他好文   时间:2015-08-09 22:11:04    阅读次数:154
codeforece 18c
Description Once Bob took a paper stripe of n squares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negative. He became interested in how many ways exi...
分类:其他好文   时间:2015-08-09 20:49:19    阅读次数:262
Program E-- CodeForces 18C
DescriptionOnce Bob took a paper stripe of n squares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negat...
分类:其他好文   时间:2015-08-09 20:39:17    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!