http://poj.org/problem?id=2386http://acm.hdu.edu.cn/showproblem.php?pid=1241求有多少个连通子图。复杂度都是O(n*m)。 1 #include 2 3 char filed[110][110]; 4 int n,m; 5.....
                            
                            
                                分类:
其他好文   时间:
2015-05-20 22:00:29   
                                阅读次数:
119
                             
                         
                    
                        
                            
                            
                                Oil Deposits
Time Limit: 3000MS
 
Memory Limit: Unknown
 
64bit IO Format: %lld & %llu
Submit
Status 
Description
The GeoSurvComp geologic survey company is responsibl...
                            
                            
                                分类:
其他好文   时间:
2015-05-09 10:21:15   
                                阅读次数:
94
                             
                         
                    
                        
                            
                            
                                Even with falling oil prices and strong U.S. growth, the head of the International Monetary Fund said the global economy only expanded around 3.4 perc...
                            
                            
                                分类:
其他好文   时间:
2015-04-15 00:48:50   
                                阅读次数:
185
                             
                         
                    
                        
                            
                            
                                水题,求连通分量的个数,深搜一遍即可,之所以这么水还写下来,是因为样例一组有误的数据弄得我调试了一个多小时,白白浪费了很多精力和时间。最后一组数据的两个5后面多了一个空格:我用 getchar 来接收字符,所以因为它这个无故多出来的空格使得后面的字符全乱了,调试输出时才有了千奇百怪的结果,不得不.....
                            
                            
                                分类:
其他好文   时间:
2015-04-05 18:41:58   
                                阅读次数:
130
                             
                         
                    
                        
                            
                            
                                http://acm.hdu.edu.cn/showproblem.php?pid=1241 Oil DepositsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Subm....
                            
                            
                                分类:
其他好文   时间:
2015-04-02 22:24:31   
                                阅读次数:
210
                             
                         
                    
                        
                            
                            
                                1、使用sort()对数组进行排序sort()函数可以对字母进行排序,如:$products=array('Tires','Oil','Spark Plugs');sort($products);现在,该数组所包含元素的顺序是:Oil、Spark Plugs、Tires。还可以按数字顺序进行排序。如...
                            
                            
                                分类:
编程语言   时间:
2015-04-02 16:21:41   
                                阅读次数:
124
                             
                         
                    
                        
                            
                            
                                class Barrel{	public void getOilFromBarrel()	{ System.out.println("get oil from Barrel ok");	}}class Funnel implements Bottle{	private Barrel aBarrel....
                            
                            
                                分类:
编程语言   时间:
2015-03-30 20:41:15   
                                阅读次数:
164
                             
                         
                    
                        
                            
                            
                                #include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#define LL long long
#define FOR(i, x, y) for(int i=x;i<=y;i++)
using namespace std;
const int MAXN = 600 + 10...
                            
                            
                                分类:
其他好文   时间:
2015-03-30 16:22:38   
                                阅读次数:
128
                             
                         
                    
                        
                            
                            
                                Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15291Accepted Submission(s): 8787Problem Descripti...
                            
                            
                                分类:
其他好文   时间:
2015-03-29 23:32:49   
                                阅读次数:
168