题目:一个ACM的判题的小程序,两组字符全相同,为正确,比标准多输出空格,为格式错误,其他为错误。
分析:字符串。从前向后扫描,如果两字符不同,若A串当前字符不是空格,则错误;
若是空格,则一定不会是正确,滤过空格,看剩余部分,如果剩下字符相同则格式错误;
否则,一定错误;
说明:注意结束位置的空格。想起几年前开发自己OJ的日子了...
分类:
其他好文 时间:
2014-10-13 00:56:38
阅读次数:
266
大意就是求 log10(n!) = log10(1 * 2 * 3 * .......*n) = log10(1) + log10(2)...
分类:
其他好文 时间:
2014-10-12 13:46:48
阅读次数:
257
[问题2014A01] 解答一(第一列拆分法,由张钧瑞同学提供)(1)当 \(a=0\) 时,这是高代书复习题一第 33 题,可用升阶法和 Vander Monde 行列式来求解,其结果为\[|A|=\prod_{1\leq i<j\leq n}(x_j-x_i)\Big(\sum_{i=1}^nx...
分类:
其他好文 时间:
2014-10-12 11:16:07
阅读次数:
200
Just a few weeks ago, I had a discussion with one of my colleagues about how to manage the transaction in our innovation project, and I found it a big bang knowledge when dig into details. So I want to go through these details and give an internal knowledg...
分类:
编程语言 时间:
2014-10-12 03:04:07
阅读次数:
182
转载:http://www.rover12421.com/2013/12/09/jetbrains-intellij-idea-13-keygen-java-source-code.htmlJetBrains IntelliJ IDEA 13 Keygen :import java.math.Big...
分类:
编程语言 时间:
2014-10-11 19:05:16
阅读次数:
206
官方有例子: http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#big-data-grid 百度百科: http://zhidao.baidu.com/link?url=1GPwBtElw09u0rKerhjRMvgndYIXe7sQ4...
分类:
Web程序 时间:
2014-10-11 17:27:46
阅读次数:
180
/*
?*????The?DEVICE?structure.
?*????Actually,?this?whole?structure?is?a?big?mistake.??It?mixes?I/O
?*????data?with?strictly?"high-level"?data,?and?it?has?to?k...
分类:
Web程序 时间:
2014-10-10 21:23:35
阅读次数:
317
网络通信经常涉及到字节序转化,接下来理解主机序和网络序有什么异同。
①主机字节顺序HBO(Host Byte Order)
采用小头序(little-endian),从低到高的顺序存储。
低位字节排放在内存的低地址端,高位地址排放在高位地址端。
②网络字节顺序NBO(Network Byte Order)
采用大头序(big-endian),从高到低的顺序存储。
高位字...
分类:
编程语言 时间:
2014-10-10 15:13:14
阅读次数:
232
n!的近似值 (stirling approximation)与 大O记法(big -O- notation)...
分类:
移动开发 时间:
2014-10-10 13:00:34
阅读次数:
195
Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters arranged in following way:
qwertyuiop
asdfghjkl;
zxcvbnm,./
Unfortunately Mole is blind, ...
分类:
其他好文 时间:
2014-10-10 02:36:33
阅读次数:
315