空白最多的最大子矩阵:
#include
#include
#include
using namespace std;
const int maxn = 1005;
int mat[maxn][maxn],up[maxn][maxn],left[maxn][maxn],right[maxn][maxn];
int main()
{
int t;
scanf("%d",&t);
...
分类:
其他好文 时间:
2014-09-04 17:02:59
阅读次数:
209
#虚拟网络拓扑的json数据 def topodata #@vnic = Vnic.all #flash.now[:notice] = 'Message sent!' #flash.now[:alert] = 'Message sent!' simple_json = { nodes:...
分类:
Web程序 时间:
2014-09-04 16:42:29
阅读次数:
299
package com.sysc.simple;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;public class...
分类:
编程语言 时间:
2014-09-04 14:33:09
阅读次数:
222
概念简单工厂模式 【静态工厂方法模式】(Static Factory Method) 是类的创建模式工厂模式的几种形态: 1、简单工厂模式(Simple Factory) |又叫做 静态工厂方法模式(Static Factory Method) 2、工厂方法模式(Factory Me...
分类:
Web程序 时间:
2014-09-04 09:41:37
阅读次数:
198
1. ConceptsThe idea behind dynamic programming is quite simple. In general, to solve a given problem, we need to solve different parts of the problem ...
分类:
其他好文 时间:
2014-09-04 01:23:47
阅读次数:
208
有时候像这种题,没有明显的思路,感觉像规律题。那么先暴力打表,再找规律就很快了。
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798
先上我的暴力打表,这种肯定是TLE的,只用它发现规律就好了。
#include
#include
#include
#define INF 0x3f3f3f3f
#def...
分类:
其他好文 时间:
2014-09-03 22:48:57
阅读次数:
287
学习flask,安装virtualenv环境,这些带都ok,但是一安装包总是出错无法安装,http://e.pypi.python.org/这个就是官网了,清华大学提供的建议非清华大学校内的使用这个镜像: http://e.pypi.python.org/simple(这也是一个http://pyp...
分类:
编程语言 时间:
2014-09-03 22:27:47
阅读次数:
325
select?*?from?(select?row_number()over(order?by?Server_no?desc)?as?rownum,Server_no,Game_Name,Server_name?from?T_GameServer_List?where?IS_DELETE?=?‘N‘?and?Game_name?like?‘%q%‘)a...
分类:
数据库 时间:
2014-09-03 21:23:27
阅读次数:
215
json: javascript simple object notation。json就是js的对象,但是它省去了xml中的标签,而是通过{}来完成对象的说明。定义对象var person = { name : "luogankun", //通过属性名:属性值来表示,不同的属性通过,来间隔 ...
分类:
编程语言 时间:
2014-09-03 19:40:47
阅读次数:
208
Boring Game
Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 544 Accepted Submission(s): 91
Problem Description
Zero likes to pla...
分类:
其他好文 时间:
2014-09-03 18:10:47
阅读次数:
278