简单DP,N×M的网格其中有一条边坏掉了,问从起点到终点的放法数有两种方法,一种是DP很好理解 1 //#define LOCAL 2 #include 3 #include 4 5 int dp[42][42]; 6 bool flag[42][42]; 7 8 int main(void...
                            
                            
                                分类:
Web程序   时间:
2014-08-23 20:23:11   
                                阅读次数:
147
                             
                    
                        
                            
                            
                                Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
                            
                            
                                分类:
其他好文   时间:
2014-08-22 21:04:59   
                                阅读次数:
168
                             
                    
                        
                            
                            
                                Description
Suppose that the fourth generation mobile phone base stations in the Tampere area operate as follows. The area is divided into squares. The squares form an S * S matrix with the rows ...
                            
                            
                                分类:
其他好文   时间:
2014-08-22 12:56:59   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                链接:http://poj.org/problem?id=1265AreaTime Limit:1000MSMemory Limit:10000KTotal Submissions:4969Accepted:2231DescriptionBeing well known for its highly...
                            
                            
                                分类:
其他好文   时间:
2014-08-22 00:11:45   
                                阅读次数:
340
                             
                    
                        
                            
                            
                                Description
Triangles are polygons with three sides and strictly positive area. Lattice triangles are the triangles all whose vertexes have integer coordinates. In this problem you have to find the...
                            
                            
                                分类:
其他好文   时间:
2014-08-21 22:56:15   
                                阅读次数:
443
                             
                    
                        
                            
                            
                                Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.思路:参见《浅谈用极大化思想解决最大子矩形问题》。这道题我不会,还...
                            
                            
                                分类:
其他好文   时间:
2014-08-21 22:45:04   
                                阅读次数:
178
                             
                    
                        
                            
                            
                                1.定义成了const之后的类
#include 
class area
{
public:
	int x;
	int y;
	mutable int z;  //不受const约束的类成员
	area() :x(10), y(10), z(2)
	{
		
	}
	void printxy()const  //不可以访问类中局部变量
	{
		z = z + 1;
		std:...
                            
                            
                                分类:
编程语言   时间:
2014-08-21 21:12:15   
                                阅读次数:
334
                             
                    
                        
                            
                            
                                Tell me the areaTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1801Accepted Submission(s): 542Pro...
                            
                            
                                分类:
其他好文   时间:
2014-08-21 18:31:54   
                                阅读次数:
150
                             
                    
                        
                            
                            
                                这里展示js合并table的单元格,代码亲测可行后台采用springmvc搭建Record实体类publicclassRecord{
publicStringisp;
publicStringlarge_area;
publicStringprovince;
publicStringname;
publicStringage;
......//省略get和set方法
}action方法@RequestMapping(value="/handle..
                            
                            
                                分类:
Web程序   时间:
2014-08-21 15:10:45   
                                阅读次数:
353
                             
                    
                        
                            
                            
                                My kid's school cleared a large field on their property recently to convert it into a playing area. The field is polygonal. The school administration ...
                            
                            
                                分类:
其他好文   时间:
2014-08-20 10:25:06   
                                阅读次数:
211