The circle line of the Berland subway has n stations. We know the distances between all pairs of neighboring stations:
d1 is
the distance between the 1-st and the 2-nd
station;
d2 is
the d...
分类:
其他好文 时间:
2014-07-22 23:05:14
阅读次数:
302
(13)where字句操作符
= 等于
!= 不等于
> 大于
>= 大于等于
BETWEEN 在指定的两个值之间
例如:
找出学号是0007到0009之间的学生记录(不包括0009)?
SELECT* FROM student_info WHERE stu_id B...
分类:
数据库 时间:
2014-05-13 13:27:33
阅读次数:
368
给了你n个村庄把,然后m条路径,q个询问,问你两个点之间的最短距离
分析:由于按照题意来说本图是没有环的,所以求a,b的最近公共祖先 到他们的各自的距离之和就是 那个他们的最短路啦,用的是tarjan来做的,我的方法定义了一个dis数组来随时记录路径的长度,其它大神各有自己的神奇之法
#include
#include
#include
#include
#include
#inclu...
分类:
其他好文 时间:
2014-05-13 07:48:39
阅读次数:
303
Assembly instructions
汇编初步学习
汇编0基础的戳上面,刷一遍,包治百病
%eax寄存器的值与C语言的return的值相对应
(%esp)地址处储存的是函数的返回地址 return address
%esp 栈顶寄存器 保存栈顶指针。
%ebp = boundary between p...
分类:
其他好文 时间:
2014-05-13 06:28:37
阅读次数:
416
Vector3.Lerp 插值static
functionLerp(from:Vector3,to:Vector3,t: float) :Vector3Description描述Linearly
interpolates between two vectors.两个向量之间的线性插值。Interp...
分类:
其他好文 时间:
2014-05-12 17:12:14
阅读次数:
366
There are a lot of controversy about the definition of probability, so we just start with the uncontroversial parts. In general we can say that the probability is a value between 0 and 1 that
is int...
分类:
其他好文 时间:
2014-05-07 03:12:35
阅读次数:
224
http://disanji.net/2011/02/23/android-difference-between-surfaceview-view/
分类:
移动开发 时间:
2014-05-07 00:06:02
阅读次数:
373
Beaming NDEF Messages to Other Devices
Android Beam allows simple peer-to-peer data exchange between two Android-powered devices. The application that wants to beam data to another device must be in ...
分类:
移动开发 时间:
2014-05-06 23:21:48
阅读次数:
620
Description There are N cities in a country, and
there is one and only one simple path between each pair of cities. A merchant
has chosen some paths a...
分类:
其他好文 时间:
2014-04-30 17:09:30
阅读次数:
570
2014-04-27
19:09题目:线程和进程有什么区别?解法:理论题,操作系统教材上应该有很详细的解释。我回忆了一下,写了如下几点。代码: 1 // 16.1 What is
the difference between process and thread? 2 Answer: 3 P...
分类:
编程语言 时间:
2014-04-27 21:53:11
阅读次数:
668