题目:一个ACM的判题的小程序,两组字符全相同,为正确,比标准多输出空格,为格式错误,其他为错误。
分析:字符串。从前向后扫描,如果两字符不同,若A串当前字符不是空格,则错误;
若是空格,则一定不会是正确,滤过空格,看剩余部分,如果剩下字符相同则格式错误;
否则,一定错误;
说明:注意结束位置的空格。想起几年前开发自己OJ的日子了...
分类:
其他好文 时间:
2014-10-13 00:56:38
阅读次数:
266
#include struct dirent { long d_ino;//inode number索引节点号 off_t d_off;//offset to this dirent 在目录文件中的偏移 unsigned short d_reclen;//length of this d_na...
分类:
其他好文 时间:
2014-10-13 00:45:08
阅读次数:
239
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息: System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, Sys...
分类:
数据库 时间:
2014-10-13 00:12:28
阅读次数:
231
一 使用xml注入 xml中进行配置
重点说明:bean name 具有唯一性
xml
version="1.0"encoding="UTF-8"?>
beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...
分类:
编程语言 时间:
2014-10-12 23:03:08
阅读次数:
358
=====================services.xml This service is to get the running Axis version ...
分类:
编程语言 时间:
2014-10-12 20:16:58
阅读次数:
206
Python version 2.7 required, which was not found in the registry 参考:http://www.cnblogs.com/min0208/archive/2012/05/24/2515584.html AttributeError: 'mo...
分类:
编程语言 时间:
2014-10-12 19:38:38
阅读次数:
227
1.查看python库的版本号>>> import pkg_resources>>> pkg_resources.get_distribution('protobuf').version'2.4.1'http://blog.csdn.net/cry217/article/details/72990....
分类:
系统相关 时间:
2014-10-12 18:43:18
阅读次数:
214
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers....
分类:
其他好文 时间:
2014-10-12 18:25:38
阅读次数:
195
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-10-12 17:54:08
阅读次数:
177
1.?编译Nginx添加http_stub_status_module 编译Nginx的时候添加参数:--with-http_stub_status_module cd nginx-{version}/
./configure --prefix=/opt/nginx --with-http_stub_status_module
--with-http_ss...
分类:
其他好文 时间:
2014-10-12 16:55:38
阅读次数:
287