本文转载:http://www.cnblogs.com/gis-crazy/archive/2013/03/17/2964132.html查看公司项目代码时,存在这样一个问题:winform界面上有很多信息填写,提交后台服务器更新,但数据的合法验证及值的转换却不太敢恭维,一堆的if判断和转换,便想着...
本文转载:http://www.cnblogs.com/gis-crazy/archive/2013/03/17/2964132.html查看公司项目代码时,存在这样一个问题:winform界面上有很多信息填写,提交后台服务器更新,但数据的合法验证及值的转换却不太敢恭维,一堆的if判断和转换,便想着...
poj1200:http://poj.org/problem?id=1200题意:给你一个有m种字符串,求长度为n的连续子串由多少种。题解:网上的代码都是hash,但是本人觉得hash有问题,就是n,m稍微大点,hash的值都会爆出int,无法开数组来记录该串是否被记录。可能数据弱,结果hash竟然...
分类:
其他好文 时间:
2014-08-10 23:58:00
阅读次数:
559
自从做了多校,整个人都不好了,老是被高中生就算了,题老是都不懂=-=原谅我是个菜鸟,原谅我智力不行。唯一的水题。Problem Description Though ZCC has many Fans, ZCC himself is a crazy Fan of a coder, called .....
分类:
其他好文 时间:
2014-08-09 21:06:09
阅读次数:
259
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4439题意:n个点的有向无环图,边有长度,从一个点到另一点消耗背包重量与边长的乘积。每个点卖物品,价值v,重量w,数量无限,给定起点,和背包容量,可以在任意点停止,问最大化所获得价...
分类:
其他好文 时间:
2014-08-06 22:31:32
阅读次数:
290
本文转载自Crazy CoderSELECT * FROM 表 WHERE CONVERT(Nvarchar, dateandtime, 111) = CONVERT(Nvarchar, GETDATE(), 111) ORDER BY dateandtime DESC本月记录SELECT * FR...
分类:
数据库 时间:
2014-08-06 17:28:51
阅读次数:
356
Problem DescriptionAlice and Bob are playing together. Alice is crazy about art and she has visited many museums around the world. She has a good memo...
Problem DescriptionThere is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy things. Although th...
分类:
其他好文 时间:
2014-08-04 17:32:07
阅读次数:
290
Problem Description
There is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy things. Although the king used to be wise and beloved by his peop...
分类:
其他好文 时间:
2014-08-01 20:00:22
阅读次数:
287
1 package com.aihunqin.crazy; 2 3 import android.app.Activity; 4 import android.os.Bundle; 5 import android.view.View; 6 import android.view.V...
分类:
其他好文 时间:
2014-08-01 18:30:32
阅读次数:
380