特殊的数字
【AC代码】:
#include
#include
#include
using namespace std;
int main()
{
//freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
int i = 0;
for (i = 100; i <= 999; i++)
{
in...
分类:
其他好文 时间:
2015-03-10 23:14:12
阅读次数:
263
Mysql Blob通过压缩来提升性能对于blob字段,由于当前版本较低,5.0目前文件格式默认为compact,还不支持compress格式的压缩.我觉得可以采用如下方式来节省空间.1.通过应用服务器端的压缩,比如zlib算法,进行压缩然后存入数据库。当然应用需要先读数据,压缩,然后再写新的表,然...
分类:
数据库 时间:
2015-03-10 17:09:08
阅读次数:
280
请求头字段: Accept: text/html, image/* 客户机支持的数据类型 Accept-Charset: ISO-8859-1 客户机采用的编码 Accept-Encoding: gzip,compress 客户机支持的数据压缩格式 Accept-Language: en-us,zh-cn 客户机的...
分类:
Web程序 时间:
2015-03-10 15:38:01
阅读次数:
201
Linux新手请看鸟哥的私房菜http://vbird.dic.ksu.edu.tw/linux_basic/linux_basic.php搭建hustojhttps://github.com/zhblue/hustojcodeblockctrl shift c 多行注释ctrl shift x 取...
分类:
系统相关 时间:
2015-03-10 01:25:37
阅读次数:
510
【思路】:排序。可以用 sort 或者 qsort ,或者常见的冒泡。
【AC代码】:
常规:
#include
#include
using namespace std;
#define MAX 200+10
int main()
{
int i = 0, n = 0;
int num[MAX];
cin >> n;
for (i = 0; i < n; i++)
cin...
分类:
编程语言 时间:
2015-03-10 00:13:44
阅读次数:
174
闰年判断
【AC代码】:
#include
#include
using namespace std;
int main()
{
int y = 0;
cin >> y;
if (((0==y%4)&&(0!=y%100))||(0==y%400))
cout << "yes";
else
cout << "no";
}
01子串
【AC代码】:方法很多,最简单的。...
分类:
其他好文 时间:
2015-03-10 00:13:09
阅读次数:
246
1.6.1 什么是 Indexing 1.6.2 Uploading Data with Index Handlers 1.6.3 Uploading Data with Solr Cell using Apache Tika 1.6.4 Uploading Structured Data...
分类:
其他好文 时间:
2015-03-09 14:22:26
阅读次数:
119
package mainimport ( "bytes" "compress/zlib" "fmt" "io" "os")//进行zlib压缩func DoZlibCompress(src []byte) []byte { var in bytes.Buffer ...
分类:
其他好文 时间:
2015-03-09 12:41:06
阅读次数:
155
LINQ,语言集成查询(LanguageIntegrated Query)是一组用于c#和Visual Basic语言的扩展。它允许编写C#或者Visual Basic代码以查询数据库相同的方式操作内存数据。
从技术角度而言,LINQ定义了大约40个查询操作符,如select、from、in、where以及order by(C#中)。使用这些操作符可以编写查询语句。不过,这些查询还可以基于...
分类:
其他好文 时间:
2015-03-09 00:34:12
阅读次数:
185
/** * 获取编辑器工具栏自定义参数 * @param type 类型 simple=极简版 basic=基本版 full=完整版 */function get_ckeditor_toolbar(type) { if(!arguments[0]) type = 'simple'; /...
分类:
其他好文 时间:
2015-03-08 01:21:37
阅读次数:
163