一、word-wrap使用: 语法: 取值说明: 1、normal为默认值,当其值为normal控制连续文本换行(允许内容顶开容器的边界,换句话说内容可以撑破容器); 2、break-word将内容在边界内换行(不截断英文单词换行,截断英文单词换行需要使用word-break:all属性),我们先来 ...
分类:
Web程序 时间:
2016-11-08 13:32:40
阅读次数:
236
http://acm.xidian.edu.cn/problem.php?id=1166 判断环是否相等,直接strstr。 ...
分类:
其他好文 时间:
2016-11-08 07:47:48
阅读次数:
132
题目链接:51nod 1181 质数中的质数(质数筛法) 1 #include<cstdio> 2 #include<cmath> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 typedef long long ...
分类:
其他好文 时间:
2016-11-08 07:38:49
阅读次数:
229
Detachment Problem Description In a highly developed alien society, the habitats are almost infinite dimensional space.In the history of this planet,t ...
分类:
其他好文 时间:
2016-11-08 00:58:04
阅读次数:
291
一、概述 我们在最开始介绍TCP头结构的时候,里面有个URG的标志位,还有一个Urgent Pointer的16bits字段。当URG标志位有效的时候,Urgent Poinert用来指示紧急数据的相对于TCP头中系列号Seq的位置,系列号和紧急指针值的和我们称呼为退出点(exit point)。应... ...
分类:
其他好文 时间:
2016-11-07 14:17:35
阅读次数:
161
题意:给你两个日期,问这两个日期差了多少毫秒 思路:见代码。。 注意:我计算的秒,如果两个时间不相等,需要在末尾多输出“000”,如果相等直接输出0 ...
分类:
其他好文 时间:
2016-11-07 09:43:28
阅读次数:
170
https://leetcode.com/problems/h-index/ https://leetcode.com/mockinterview/session/result/xjcpjlh/ 看了hint,不然的话,可能用的是排序的方法,O(NlgN),现在的方法用了extra space,但是 ...
分类:
其他好文 时间:
2016-11-07 01:50:00
阅读次数:
183
http://acm.hdu.edu.cn/showproblem.php?pid=5974 遇到数学题真的跪。。 题目要求 X + Y = a lcm(X, Y) = b 设c = gcd(x, y); 那么可以表达出x和y了,就是x = i * c; y = j * c; 其中i和j是互质的。 ...
分类:
其他好文 时间:
2016-11-07 01:11:56
阅读次数:
201
Ants Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 15617 Accepted: 6753 Description An army of ants walk on a horizontal pole of length l ...
分类:
其他好文 时间:
2016-11-07 01:01:09
阅读次数:
200
ccpc合肥站的重现...一看就觉得是dp 然后强行搞出来一个转移方程 即 根据第i-1列的需求和i-1 i-2列的枚举摆放 可以得出i列摆放的种类..加了n多if语句...最后感觉怎么都能过了..然而不是t就是wa..最后看别人的题解 我的dp转移是9*O(n)的 常数要t.. 别人的题解居然都是 ...
分类:
其他好文 时间:
2016-11-06 22:42:07
阅读次数:
188