oracle使用LEFT JOIN关联产生的问题在查询结果中使用CASE WHEN 
无法判断查询方式一: 1 SELECT 2 CASE WHEN (SELECT CAST(SUM(CASE 3 WHEN 
(ALLOCABLE_PRIME_CURRENCY_VALUE IS NULL AND ST....
                            
                            
                                分类:
数据库   时间:
2014-05-18 20:08:35   
                                阅读次数:
1129
                             
                    
                        
                            
                            
                                分析:暴力要超时,所以把每个数字转换为长度为32的0-1字符串,用字典树。因为其公共前缀的特性,空间上可以承受。因为是二叉树,用node[SIZE][2]存放。不知道new速度是否会慢很多,所以没用指针。...
                            
                            
                                分类:
其他好文   时间:
2014-05-18 18:37:37   
                                阅读次数:
218
                             
                    
                        
                            
                            
                                求树的最大路径和(Binary Tree Maximum Path Sum)...
                            
                            
                                分类:
其他好文   时间:
2014-05-18 18:25:41   
                                阅读次数:
235
                             
                    
                        
                            
                            
                                4Sum
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target....
                            
                            
                                分类:
其他好文   时间:
2014-05-18 13:49:09   
                                阅读次数:
306
                             
                    
                        
                            
                            
                                Xor Sum
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 132768/132768 K (Java/Others)
Total Submission(s): 4445    Accepted Submission(s): 652
Problem Description
Zeus 和 Prometheus 做了一个游戏,...
                            
                            
                                分类:
其他好文   时间:
2014-05-18 05:21:59   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                1、
??
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below...
                            
                            
                                分类:
其他好文   时间:
2014-05-18 03:25:06   
                                阅读次数:
301
                             
                    
                        
                            
                            
                                Given a triangle, find the minimum path sum 
from top to bottom. Each step you may move to adjacent numbers on the row 
below.For example, given the fol...
                            
                            
                                分类:
其他好文   时间:
2014-05-18 02:11:19   
                                阅读次数:
302
                             
                    
                        
                            
                            
                                hash做法:#include#includeconst int Max = 
100010;int home[Max],away[Max],hash[Max];int main(){ int n,sum,total; int i,j; 
while(scanf("%d",&n)!=E...
                            
                            
                                分类:
其他好文   时间:
2014-05-17 21:44:37   
                                阅读次数:
504
                             
                    
                        
                            
                            
                                原题链接:http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1425 
DP题。 f[i][j]表示当前数字为i,分解式中最大质数为j的方案数,那么,状态转移方程为: f[i][j] = sum(f[i-j][k]) 其中...
                            
                            
                                分类:
其他好文   时间:
2014-05-17 20:41:17   
                                阅读次数:
296
                             
                    
                        
                            
                            
                                1 //Accepted 250MS 2480K 2 #include 3 #include 4 
const int MAXN = 50005; 5 struct node 6 { 7 int l,r; 8 int add,sum; 9 
}f[3*MAXN];10 int n;...
                            
                            
                                分类:
其他好文   时间:
2014-05-17 20:36:37   
                                阅读次数:
316