Jamie's Contact Groups Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 125536/65536 K (Java/Others) 题目链接:http://poj.org/problem?id=2289 Descripti ...
分类:
其他好文 时间:
2018-11-12 22:18:57
阅读次数:
327
hash hashcode java 1.hash 2.hash算法 1.hash Hash,一般翻译做“散列”,也有直接音译为“哈希”的,就是把任意长度的输入(又叫做预映射pre-image)通过散列算法变换成固定长度的输出,该输出就是散列值。这种转换是一种压缩映射,也就是,散列值的空间通常远小于 ...
分类:
编程语言 时间:
2018-11-12 14:59:44
阅读次数:
210
Given s = "internationalization", abbr = "i12iz4n": Return true.abbr 里数字代表相应的字符数,问字符串是否相等虽然是一个easy 的题但却有两个坑:1. abbr 结尾的地方是数字 例如: s= "internationalizat... ...
分类:
其他好文 时间:
2018-11-12 14:58:26
阅读次数:
299
题目1 混合类型数据格式化输入 (1)实验代码 include int main() { int a; double b,c; char d; scanf("%lf %d %c %lf",&b,&a,&d,&c); printf("%c %d %.2lf %.2lf",d,a,b,c); retur ...
分类:
其他好文 时间:
2018-11-12 12:06:44
阅读次数:
194
因为不熟悉 Java 字符串处理的一些function, 一开始写了一个特别丑陋的code: 用了Character 类里的function 后的code: 优化到了95% ...
分类:
其他好文 时间:
2018-11-10 12:35:12
阅读次数:
163
直接上代码!!! /*设置第一个首字母的样式*/ p:first-letter{ color: red; font-size: 30px; } /* 在....之前 添加内容 这个属性使用不是很频繁 了解 使用此伪元素选择器一定要结合content属性*/ p:before{ content:'al ...
分类:
其他好文 时间:
2018-11-10 10:52:37
阅读次数:
125
题目链接:http://bailian.openjudge.cn/practice/1451/ 总时间限制: 1000ms 内存限制: 65536kB 描述 Background A while ago it was quite cumbersome to create a message for ...
分类:
其他好文 时间:
2018-11-10 00:12:01
阅读次数:
188
当行内元素(此处主要是指inline-block)在一行显示时,存在默认的行间元素间隙,在布局时可能要去除 第一种方法: font-size(在子元素或者父元素上设置都可以,看需求) //适用inline-block元素 第二种方法:letter-space(在父元素上设置) //适用inline- ...
分类:
其他好文 时间:
2018-11-06 23:39:34
阅读次数:
182
打印服务器安装配置后,网络打印机也成功安装好了,如果客户端电脑直接使用这些网络打印机的话可能会因为安装打印机时的默认设置例如默认纸张为Letter,实际上打印机纸盒里的是A4,从而导致无法正常打印;或者无法实现客户端打印的标准化,例如默认都是黑白打印,当然需要的时候可以在客户端打印机选项里选择彩色打印等。
分类:
其他好文 时间:
2018-11-06 16:46:04
阅读次数:
240
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2018-11-05 21:28:13
阅读次数:
142