码迷,mamicode.com
首页 >  
搜索关键字:max sum of max-k-sub    ( 43452个结果
Oracle EBS-SQL (PO-6):检查订单接收总数.sql
SELECT sum(rcvt.quantity)接收事务处理汇总数--已排除退货--rsh.receipt_num 收据号, --pov.vendor_name 供应商名称, --poh.segment1 采购订单, --pol.line_num 订单行, --PTL.LINE_TYPE 行类.....
分类:数据库   时间:2014-06-10 20:22:36    阅读次数:334
Codeforces Round #249 (Div. 2) A - Queue on Bus Stop
水题#include #include #include using namespace std;int main(){ int n,m; cin >> n >> m; int cnt = 0, sum = 0; for(int i = 0 ; i > a; i...
分类:其他好文   时间:2014-06-10 16:38:18    阅读次数:226
Leetcode: Container With Most Water
The most strait forward approach is calculating all the possible areas and keep the max one as the result. This approach needs O(n*n) time complexity,...
分类:其他好文   时间:2014-06-10 16:11:31    阅读次数:184
Codeforces Testing Round #10 A. Forgotten Episode
水题,注意数据范围#include using namespace std;int main(){ long long n,a; cin >> n; long long sum =(n*(n+1))>>1; for(int i = 0 ; i >a; sum ...
分类:其他好文   时间:2014-06-10 12:47:58    阅读次数:233
Hdu1001
常规算法: 1 #include 2 int main() 3 { 4 // 常规算法 5 int a; 6 while(scanf("%d",&a)!=EOF){ 7 int i=0,sum = 0; 8 for(i;iint main(){...
分类:其他好文   时间:2014-06-10 12:39:37    阅读次数:284
Hdu1093
1 #include 2 int main() 3 { 4 int T,n; 5 int a,sum=0; 6 while(scanf("%d",&T)!=EOF){ 7 while(scanf("%d",&n)!=EOF){ 8 ...
分类:其他好文   时间:2014-06-10 11:56:12    阅读次数:223
Hdu1092
1 #include 2 int main() 3 { 4 int n,sum=0; 5 while(scanf("%d",&n)){ 6 if(n==0) {return 0;} 7 else{ 8 int i,a; 9 ...
分类:其他好文   时间:2014-06-10 11:52:19    阅读次数:312
Hdu1094
1 #include 2 int main() 3 { 4 int i,n,a,sum=0; 5 while(scanf("%d",&n)!=EOF){ 6 for(i=0;i<n;i++){ 7 scanf("%d",&a); 8 ...
分类:其他好文   时间:2014-06-10 11:30:59    阅读次数:200
Hdu1096
1 #include 2 int main() 3 { 4 int T,n; 5 int a,sum=0; 6 while(scanf("%d",&T)!=EOF){ 7 while(scanf("%d",&n)!=EOF){ 8 ...
分类:其他好文   时间:2014-06-10 11:22:38    阅读次数:201
Leetcode OJ: Binary Tree Maximum Path Sum
Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the be...
分类:其他好文   时间:2014-06-10 10:42:58    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!