一、transition与visibilitytransition主要包含四个属性值:执行变换的属性:transition-property,变换延续的时间:transition- duration,在延续时间段,变换的速率变化transition-timing-function,变换延迟时间tra...
分类:
其他好文 时间:
2014-08-05 15:19:49
阅读次数:
178
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1227
#include
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 200 + 1; //the number of restaurants
const i...
分类:
其他好文 时间:
2014-08-04 21:42:58
阅读次数:
252
PHP运行模式:1)cgi通用网关接口(CommonGatewayInterface))2)fast-cgi常驻(long-live)型的CGI3)cli命令行运行(CommandLineInterface)4)web模块模式(apache等web服务器运行的模块模式)HTTPServer有三种架构比较流行:(1)Apache+mod_php5(2)lighttp+spawn-fcgi(3)..
分类:
Web程序 时间:
2014-08-01 20:05:32
阅读次数:
381
作为程序员,写代码是需要一种崇高无上的精神来支撑的,写出优秀的代码,更需要你有深厚的底蕴和良好的编码习惯。在介绍写优秀代码的10个技巧之前,我们先来探讨一下什么样的代码才是优秀的代码。
稳定可靠(Robustness)
可维护且简洁(Maintainable and Simple Code)
高效(Fast)
简短(Small)
共享性(Reusable)...
分类:
其他好文 时间:
2014-08-01 16:19:41
阅读次数:
239
在做rpg类游戏的过程中,经常遇到要判断周围怪物相对自身的方位
1.判断目标在自己的前后方位可以使用下面的方法:
Vector3.Dot(transform.forward, target.position)
返回值为正时,目标在自己的前方,反之在自己的后方
2.判断目标在机子的左右方位可以使用下面的方法:
Vector3.Cross(tra...
分类:
其他好文 时间:
2014-08-01 16:10:11
阅读次数:
224
双调欧几里得
DP
Tour
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3581
Accepted: 1596
Description
John Doe, a skilled pilot, enjoys tra...
分类:
其他好文 时间:
2014-08-01 02:26:50
阅读次数:
256
jQuery animate() 方法用于创建自定义动画。语法:$(selector).animate({params},speed,callback);必需的 params 参数定义形成动画的 CSS 属性。可选的 speed 参数规定效果的时长。它可以取以下值:"slow"、"fast" 或毫秒...
分类:
Web程序 时间:
2014-07-31 20:00:47
阅读次数:
282
The purpose of this problem is to verify whether the method you are using to read input data is sufficiently fast to handle problems branded with the ...
分类:
其他好文 时间:
2014-07-31 19:39:57
阅读次数:
190
问题:判断链表是否有环。分析:利用快慢指针slow,fast slow指针每次走一步,fast指针每次走两步,倘若存在环,则slow和fast必定在某一时刻相遇。 由于fast指针走的比slow快所以循环的时候只需要判断fast和fast->next不为空,判断fast->next是因为...
分类:
其他好文 时间:
2014-07-31 12:25:26
阅读次数:
236
UVA 11992 - Fast Matrix Operations
题目链接
题意:给定一个矩阵,3种操作,在一个矩阵中添加值a,设置值a,查询和
思路:由于最多20列,所以完全可以当作20个线段树来做,然后线段树是区间修改区间查询,利用延迟操作,开两个延迟值一个存放set操作,一个存放add操作
代码:
#include
#include
#include
...
分类:
其他好文 时间:
2014-07-30 05:36:03
阅读次数:
320