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
第一题是整数的方阵,求其中的子方阵,和最大。返回最大和以及子方阵宽度。因为做了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
操作系统: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
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
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
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
// my first program in C++ #include using namespace std; int main() { cout << “Hello World!”; return 0; }
分类:
编程语言 时间:
2014-08-08 15:10:06
阅读次数:
212
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
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
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