看到很多开发者习惯性的会打开Game视窗的Stats去查看渲染统计的信息,但只会看一下Draw Calls数值,其他的信息也并没有什么体会,其实里面的每一项都很重要,并值得学习和了解。FPS:fps其实就是 frames per second,也就是每一秒游戏执行的帧数,这个数值越小,说明游...
分类:
其他好文 时间:
2015-04-21 12:48:31
阅读次数:
113
先上实例: ????????System.out.println(Math.pow(1d,?0)?+?"?If?the?second?argument?is?positive?or?negative?zero,?then?the?result?is?1.0.");
????????System.out.println(...
分类:
编程语言 时间:
2015-04-20 19:27:33
阅读次数:
240
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3323
题面:
Somali Pirates
Time Limit: 1 Second Memory Limit: 32768 KB
It is said that the famous Somali Pir...
分类:
其他好文 时间:
2015-04-20 18:39:45
阅读次数:
106
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3322
题面:
Who is Older?
Time Limit: 1 Second Memory Limit: 32768 KB
Javaman and cpcs are arguing who is older. Wri...
分类:
其他好文 时间:
2015-04-20 18:37:52
阅读次数:
131
1.速率速率是指计算机网络中的主机在数字信道上,单位时间内从一端传送到另一端的数据量,即数据传输率,也称数据率或比特率。比特(bit)是数据量的最小单位,s(秒)是时间的最小单位。所以速率单位为bit/s或bps(bit per second),类似的有kb/s(k=10^3)、Mb/s(M=10^...
分类:
其他好文 时间:
2015-04-20 12:56:12
阅读次数:
112
对于一张如下的testtable表,如果要查询date离现在相差的30年的日期
则应该使用如下的sql语句:
select * from testtable
where
timestampdiff(year,date,now())
这种方法,即使date这个字段是varchar类型也是可以查询成功的。
timestampdiff函数中,第一个字段是单位,可以改成second,d...
分类:
数据库 时间:
2015-04-20 11:21:39
阅读次数:
176
1795. Husband in a Shop
Time limit: 1.0 second
Memory limit: 64 MB
Mark comes home after a day of hard work. His wife, instead of feeding him, sends him to buy some bread. When Mark comes t...
分类:
其他好文 时间:
2015-04-20 09:28:45
阅读次数:
148
The on-board computer on Polycarp's car measured that the car speed at the beginning of some section of the path equals v1 meters
per second, and in the end it is v2 meters
per second. We know tha...
分类:
其他好文 时间:
2015-04-18 20:38:35
阅读次数:
164
Problem A
Not the Best
Input: standard input
Output: standard output
Time Limit: 1 second
Abul is not the best student in his class; neither is he the best player in his team. Not that he is b...
分类:
其他好文 时间:
2015-04-18 16:11:11
阅读次数:
172
first:推荐看Terry的设计模式的blog,真的很精彩,通俗易懂。second:首先拿出当时我老师教我设计模式时给的资料里面的一段话:比较形象的,通俗讲解设计模式的一段话:“在朋友聚会上碰到了一个美女Sarah,从香港来的,可我不会说粤语,她不会说普通话,只好求助于我的朋友kent了,他作为我...
分类:
其他好文 时间:
2015-04-18 15:54:04
阅读次数:
164