|
[分享]界面-一个列表框
用QT吧,想怎么绘就怎么绘,而且是开源的。 |
|
[原创]C语言一题
其实这个题的本意是考眼力: for a machine using two's-complement arithmetic and arithemetic right shifts with 不过@wil的解法也是对滴,在此膜拜一下。 |
|
[原创]C语言一题
显然不能够类型转换,否则不如自定义一个struct,或者拷贝到char[]里面返回[bytenum]好了。 |
|
[原创]提权大杀器源代码分析报告[最新修改]
提权玩过一两次就觉得没意思了。 |
|
[求助]一个Acm题
open System.Text.RegularExpressions //use alternative if use ocaml open System //use alternative if use ocaml let hd = List.head //ignore this if use SML let tl = List.tail //ignore this if use SML let ofstr (str:string)= let heap = Array.create(256) -1 let heapWrite index n = if heap.[index] <> -1 then failwith "incomplete" else heap.[index] <- n let conv (num,path:string)= Int32.Parse(num),path.ToCharArray()|>List.ofArray let heapL n = n * 2 + 1 let heapR n = n * 2 + 2 let rec cInsert num path counter = match path with | [] -> heapWrite counter num | head::tail when head = 'L' -> cInsert num tail (heapL counter) | head::tail when head = 'R' -> cInsert num tail (heapR counter) | _ -> failwith "unknown" str.Split(' ')|>Array.map(fun x->Regex.Match(x,@"\((\d*),(\w*)\)"))|> Array.map(fun x->(x.Groups.[1].Value,x.Groups.[2].Value)) |> Array.map conv |> Array.iter(fun (n,p) -> cInsert n p 0) heap let isComplete (heap:int [])= let rec isCompleteRec n = if n=1 then true else let nP=(n-(2-n%2)) / 2 if heap.[nP] = -1 && heap.[n] <> -1 then false else isCompleteRec (n - 1) isCompleteRec (heap.Length-1) let printHeap heap= heap |> Array.filter(fun x->x <> -1) let heap = ofstr "(11,LL) (7,LLL) (8,R) (5,) (4,L) (13,RL) (2,LLR) (1,RRR) (4,RR)" heap |> isComplete |> printfn "heap is completed?%b" heap |> printHeap |> printfn "data : %A" 我模仿写了一个。 |
|
[求助]一个Acm题
Regex + heap... 膜拜楼上。 some node in the tree is NOT given a value or a node is given a value more than once, then the string ``not complete'' should be printed. 我眼拙,望赐教,没看出来哪里检测more than once的 |
|
[讨论]想做这样的一个项目,企业软件安全方面的,请大家进来讨论
这个年代,管人的不管代码,管代码的管不到人,一个年代最怕的就是潜规则。 |
|
[求助]找linux 方面的工作
80块一个月 - -#. |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值