个人学习整理,如有不足之处,请不吝指教。转载请注明:@CSU-Max
今天写了一个小的 JavaWeb 项目传到 SAE 上,访问的时候出错。本地测试是正常的,而且以前做微信平台开发的时候上传的项目就可以正常访问。于是花了两个小时的时间终于找出了错误的原因。
错误信息如下:
Error 404 – Not Found.No context on this server...
分类:
编程语言 时间:
2014-08-24 18:05:42
阅读次数:
235
My intuition is flood-fill the BFS solution, which is O(n^4); and then I figured out a DP solution which is O(n^4)..So I googled some hints: it can be...
分类:
其他好文 时间:
2014-08-24 09:08:32
阅读次数:
194
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist...
分类:
其他好文 时间:
2014-08-22 21:04:59
阅读次数:
168
BOOL BitBlt(
HDC hdcDest, // handle to destination device context
int nXDest, // x-coordinate of destination rectangle's upper-left
// corner
int nYDest, // y-coordinate of des...
分类:
其他好文 时间:
2014-08-21 22:52:35
阅读次数:
316
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.思路:参见《浅谈用极大化思想解决最大子矩形问题》。这道题我不会,还...
分类:
其他好文 时间:
2014-08-21 22:45:04
阅读次数:
178
昨天为学弟学妹们出省赛选拔赛题,特意找了一个搜不到题解的题。可是没想到把自己也难住了。。。 原题链接:CSU 1177 总之就是现在还没A出来。。。核心思路应该是没问题的,就是题中提到过一句,每行输入不超过80字符,如果我使用gets来读入的话,如果存在相邻的两行都是80字符的话,g...
分类:
其他好文 时间:
2014-08-21 12:58:14
阅读次数:
467
key words:私有变量,类静态变量,生成器,导入Python模块,r查看模块可以使用的函数,查看帮助信息,启动外部程序,集合,堆,时间模块,random模块,shelve模块,文件读取等>>> class Rectangle:... def __init__(self):... self.__...
分类:
编程语言 时间:
2014-08-19 23:49:35
阅读次数:
342
非常难的问题,数组线性时间。属于我之前说的解法的借助辅助空间。给定两个柱子,他们之间的面积由什么确定呢?没错,他们之间的距离和他们之间最矮的那个柱子的高度。我们并不知道这个柱子在什么位置,所以仅仅能遍历,这个复杂度就上去了。那有没有一个方法避免找中间小柱子呢?先想什么情况下不用找。除非你知道枚举出两...
分类:
其他好文 时间:
2014-08-19 16:16:44
阅读次数:
176
http://blog.csdn.net/qs_csu/article/details/7995966对于明确指出了目标组件名称的Intent,我们称之为“显式Intent”。对于没有明确指出目标组件名称的Intent,则称之为“隐式 Intent”。对于隐式意图,Android是怎样寻找到这个最合...
分类:
其他好文 时间:
2014-08-18 18:02:12
阅读次数:
233
Games with Rectangle
Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
In this task Anna and Maria play the following game. Initia...
分类:
其他好文 时间:
2014-08-17 11:50:42
阅读次数:
329