Description
  Team Queue 
Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though ...
                            
                            
                                分类:
其他好文   时间:
2014-06-03 04:45:44   
                                阅读次数:
288
                             
                         
                    
                        
                            
                            
                                DistributedCache 是一个提供给Map/Reduce框架的工具,用来缓存文件(text, archives, jars and so on)...
                            
                            
                                分类:
其他好文   时间:
2014-06-03 02:18:37   
                                阅读次数:
332
                             
                         
                    
                        
                            
                            
                                题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=1525
Euclid's Game
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1832    Accepted S...
                            
                            
                                分类:
其他好文   时间:
2014-06-03 01:38:06   
                                阅读次数:
255
                             
                         
                    
                        
                            
                            
                                以前用树状数组做过一次,现在用线段树再刷一次。。。
首先必须先离散化。。。
然后建立2颗线段树,第一颗表示往左走,每个节点的值的分布。
      第二颗表示往右走,每个节点的值的分布。
然后根据左右走的关系,判断出x,y的值。
#pragma comment(linker, "/STACK:1024000000,1024000000")
#include
#include
#inclu...
                            
                            
                                分类:
其他好文   时间:
2014-06-03 01:25:54   
                                阅读次数:
315
                             
                         
                    
                        
                            
                            
                                题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=2102
题目:
A计划
Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 8731    Accepted Submis...
                            
                            
                                分类:
其他好文   时间:
2014-06-02 23:29:29   
                                阅读次数:
207
                             
                         
                    
                        
                            
                            
                                从一开始学离散化就对它没有半毛钱好感,感觉出这种题纯属恶心人。
可以将Top x全部取出来然后离散化,缩点。剩下的就是伸展了,不再赘述。
也有人拿线段树过,一直没有想明白. . .
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#pragma comment...
                            
                            
                                分类:
其他好文   时间:
2014-06-02 23:24:50   
                                阅读次数:
338
                             
                         
                    
                        
                            
                            
                                http://acm.hdu.edu.cn/showproblem.php?pid=1429
第一次接触搜索+状态压缩    看了大神的题解  勉强把题目弄懂了。
用二进制来表示手头的钥匙有哪些,100表示有第三把钥匙,111表示有第三、二、一把,搜索下一点时,如果该点为钥匙点,则可采用|运算来
模拟拾取,显然0001 | 1000 = 1001,同理,当为相应的门时采用&运算来模拟开启,例...
                            
                            
                                分类:
其他好文   时间:
2014-06-01 10:35:21   
                                阅读次数:
256
                             
                         
                    
                        
                            
                            
                                今天在使用百度地图的时候运行发现报错:
明明已经加入了liblocSDK3.so,但总是无法定位。提示错误java.lang.UnsatisfiedLinkError: Couldn't load locSDK3: findLibrary returned null.
网上找了很多的资料找到一个方法:
在libs下新建一个armeabi-v7a,然后将liblocSDK3.so复...
                            
                            
                                分类:
移动开发   时间:
2014-06-01 10:34:07   
                                阅读次数:
249
                             
                         
                    
                        
                            
                            
                                title:
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10,...
                            
                            
                                分类:
其他好文   时间:
2014-06-01 10:31:26   
                                阅读次数:
233
                             
                         
                    
                        
                            
                            
                                在大部份的網路應用裡,TCP 似乎比 UDP 來的多許多,程式人員通常也是對撰寫 TCP 
程式比較熟悉,這裡將整理一些 UDP 程式設計的說明,希望對大家有幫助。一開始先介紹三個最重要的類別,如下:DatagramPacket: UDP 
的封包。DatagramSocket: 用來建立 UDP so...
                            
                            
                                分类:
其他好文   时间:
2014-05-31 18:40:47   
                                阅读次数:
210