对于一个二次函数$f(x)=Ax^2+Bx+C$,已知$x_0,y_0,x_1,y_1,y_1'$,求极值点$x^*$。已知$$\begin{cases} Ax^2_0+Bx_0+C=y_0 \\ Ax^2_1+Bx_1+C=y_1 \\ 2Ax_1+B=y_1' \\ \end{cases}$$求...
分类:
其他好文 时间:
2014-12-24 11:26:51
阅读次数:
165
问:1. spawn(fun() -> loop() end).2. spawn(loop()).语句1和2到底有什么区别? 2会阻塞,1不会, spawn到底是怎么执行的?? 过程能否说详细点.loop() ->receive ok -> ok, loop(); stop -> stopend.答...
分类:
其他好文 时间:
2014-12-24 11:14:03
阅读次数:
174
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree. For example: Given the below binary tree,1/ \2 3Ret...
分类:
其他好文 时间:
2014-12-24 07:35:49
阅读次数:
227
【题目】
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ 2 3
Re...
分类:
其他好文 时间:
2014-12-23 22:41:29
阅读次数:
257
例子1:head -n 1 a.log | awk '{print $0}'例子3:head -n 1 a.log | awk '{for(i=6;i<56;i++){printf("%s ",$i);}}END{printf("\n")}'这段代码完成的工作是:从一行中过滤出第6到56列的数据,并...
分类:
其他好文 时间:
2014-12-23 20:55:03
阅读次数:
123
依然环套树……不过那个状态转移方程好写多了……无聊写了滚动数组结果……hehe(又是一节课的牺牲)……type arr=record toward,next:longint; end;const maxm=1000000; maxn=600000;var edge:array[0.....
分类:
其他好文 时间:
2014-12-23 20:50:59
阅读次数:
196
Category 分类
可以直接给别的类添加方法而不改变原来的类
只能增加方法 不能增加成员变量(可以访问以前类中的)
建立方法是 xcode新建类->Category
h文件
@surface class (ca)
@endm文件
@implementation class (ca)
{
}
@end
id 万能指针
(oc对象)
比如
class *c = [class ...
分类:
其他好文 时间:
2014-12-23 19:40:16
阅读次数:
136
主要涉及函数
va_list ap 声明一个指针
va_start(ap,arg) 将ap指向到最后一个确定的参数arg
va_arg(ap,size) 将ap储存的地址加size,指向下一个参数
va_end(ap) 将ap赋值为NULL
#include
#include
int sum(in...
分类:
编程语言 时间:
2014-12-23 19:32:18
阅读次数:
212
'刷新浏览器
Public Sub Refresh
Browser("CreationTime:=0").Refresh
Browser("CreationTime:=0").Sync
End Sub
Public Function Include(value)
Dim ExcelPath,TCNum,arrTemp
arrTemp = Split(value,",")
E...
分类:
其他好文 时间:
2014-12-23 19:29:18
阅读次数:
140
#!/bin/baships=192.168.0echo-n"请输入network网段(缺省为$ips):"readnetwork:${network:=$ips}echo"network:$network"d_ip_beg=1d_ip_end=254echo-n"inputthehostip(default$d_ip_beg$d_ip_end):"readip_begip_end:${ip_beg:=$d_ip_beg}:${ip_end:=$d_ip_end}echo"ip_beg:$ip..
分类:
系统相关 时间:
2014-12-23 17:46:22
阅读次数:
269