题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3769
Diablo III
Time Limit: 2 Seconds Memory Limit: 65536 KB
Diablo III is an action role-playing video game. A fe...
分类:
其他好文 时间:
2014-05-18 18:40:35
阅读次数:
345
Redis 介绍
redis 这个想必大家都了解,关于redis的安装参考这里,redis使用文档参见这里。
Redis C客户端的使用方法
Redis的c客户端 Hiredis使用比较广泛,下面主要介绍下它。
1,Hiredis的安装,配置
Hiredis客户端 在redis解压后的deps/hiredis下有相应的文件。如果你的安装包没有相应的文件可以到这里下载。
cd...
分类:
编程语言 时间:
2014-05-18 18:38:34
阅读次数:
418
【题目】
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with constant memory.
For example,
Given input array A ...
分类:
其他好文 时间:
2014-05-18 18:25:19
阅读次数:
272
在C++中,有三种类型的循环语句:for, while, 和do...while, 但是在一般应用中作循环时, 我们可能用for和while要多一些,do...while相对不受重视。
但是,最近在读我们项目的代码时,却发现了do...while的一些十分聪明的用法,不是用来做循环,而是用作其他来提高代码的健壮性。
1. do...while(0)消除goto语句。
通常,如果在...
分类:
其他好文 时间:
2014-05-18 15:01:00
阅读次数:
259
Warning[★警告★]:
(1) authorization code sensitive parts of antivirus software, you can let go.
Do not worry deleted! Such as: 360
(2) requires a license copyrighted software, pirated reserved!...
分类:
移动开发 时间:
2014-05-18 13:59:25
阅读次数:
380
A:A. Choosing Teams
.题目就不介绍了,直接统计即可。
AC代码:
#include
#include
#include
using namespace std;
int cnt[6];
int main()
{
int n,k,i,x;
while(cin>>n>>k)
{
memset(cnt,0,sizeof(cnt));...
分类:
其他好文 时间:
2014-05-18 08:41:02
阅读次数:
233
对于算法,自己掌握的还是不多。而且我发现对于一个算法的理解很重要,或许你会发现你貌似会用某总算法可是,他一旦变形,自己就无从下手。
还有就是对于算法,最好每次都自己敲,这样不仅能增加对于算法的熟度,还能增加自己的理解。每次敲,都有不同的体会吧。
假如自己平时不自己实现算法。会发现比赛是自己有思路却不敢去敲。
对于算法学习,已经有一段时间了吧,但是好像提高并不明显,自己并没有一直坚持。、
...
分类:
其他好文 时间:
2014-05-18 07:39:29
阅读次数:
201
Tour
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3408
Accepted: 1513
Description
John Doe, a skilled pilot, enjoys traveling. While on vacation, he rents...
分类:
其他好文 时间:
2014-05-18 07:16:45
阅读次数:
385
如果你的DispatcherServlet拦截的是*.do这样的URL,就不存在访问不到静态资源的问题如果你的DispatcherServlet拦截了"/"所有的请求,那同时对*.js,*.jpg的访问也就被拦截了。我们在进行springMVC开发时,必定会在jsp页面引入js、img和css等文件。大多数人会将这些分类存放在WebRoot文件下新建的文件夹下面。同时,会在web.xml文件中配置...
分类:
编程语言 时间:
2014-05-18 06:57:20
阅读次数:
338
#include
#include
#include //system(); 这个指令需要用到此头文件
#include //toupper要用到
void main()
{
char letter;
do{
printf("A Display directory listling\n");
printf("B Display disk information\n");
...
分类:
其他好文 时间:
2014-05-18 06:46:07
阅读次数:
292