码迷,mamicode.com
首页 >  
搜索关键字:first    ( 14115个结果
比赛之树状数组题
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 #define F first 7 #define S second 8 #define MP(a,b) make_pair( make_pair(a,...
分类:其他好文   时间:2014-08-09 18:32:18    阅读次数:277
[mock]8月8日
第一题是整数的方阵,求其中的子方阵,和最大。返回最大和以及子方阵宽度。因为做了topcoder的题,所以比较顺手,O(n^3)的复杂度。pair maxiSum(vector > &a) { //first is n second is sum int N = a.size(); in...
分类:其他好文   时间:2014-08-09 00:00:26    阅读次数:352
apache源码编译时报错ssl_engine_init.c:546: error: 'STACK' undeclared (first use in this function)
操作系统:centos6.4X86_64apache版本:httpd-2.2.6openssl版本:openssl-1.0.1e源码编译apache时报如下错误:ssl_engine_init.c:Infunction‘ssl_init_ctx_protocol‘: ssl_engine_init.c:390:warning:assignmentdiscardsqualifiersfrompointertargettype ssl_engine_init.c:396..
分类:其他好文   时间:2014-08-08 18:25:36    阅读次数:841
UvaOJ10369 - Arctic Network
1 /* 2 The first line of each test case contains 1 8 #include 9 #include10 #include11 #include12 using namespace std;13 14 double x[800], y[800]...
分类:Web程序   时间:2014-08-08 17:22:36    阅读次数:292
HDU4927:Series 1(JAVA大数)
Problem Description Let A be an integral series {A1, A2, . . . , An}. The zero-order series of A is A itself. The first-order series of A is {B1, B2, . . . , Bn-1},where Bi = Ai+1 - Ai. Th...
分类:编程语言   时间:2014-08-08 16:12:48    阅读次数:200
LeetCode\EPI "Best Time to Buy and Sell Stock"
Also the very first problem on EPI.class Solution {public: int maxProfit(vector &prices) { size_t len = prices.size(); if (len = pric...
分类:其他好文   时间:2014-08-08 15:53:26    阅读次数:170
c++ 基础一
// my first program in C++ #include using namespace std; int main() { cout << “Hello World!”; return 0; }
分类:编程语言   时间:2014-08-08 15:10:06    阅读次数:212
LeetCode "Word Break"
My first solution was DFS - TLE. Apparently, DFS with TLE usually means DP.1D DP + Rolling Array:class Solution {public: bool wordBreak(string s, u...
分类:其他好文   时间:2014-08-08 08:27:25    阅读次数:280
[leetcode]Jump Game
Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents yo...
分类:其他好文   时间:2014-08-08 01:52:15    阅读次数:194
[leetcode]Jump Game II
Jump Game IIGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents...
分类:其他好文   时间:2014-08-08 01:51:45    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!