先上题目:12661 Funny Car RacingThere is a funny car racing in a city with n junctions and m directed roads.The funny part is: each road is open and closed...
分类:
其他好文 时间:
2014-08-13 21:55:38
阅读次数:
340
;;?learning?The?Little?Schemer
(def?car?first)
(def?cdr?rest)
(def?cons?clojure.core/cons)
(def?eq??=)
(def?list??clojure.core/list?)
(defn?atom??[x]
??(not?(list??x)))
(defn...
分类:
其他好文 时间:
2014-08-13 10:44:55
阅读次数:
303
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs...
分类:
其他好文 时间:
2014-08-13 00:32:34
阅读次数:
272
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of
gas to travel from station i to...
分类:
其他好文 时间:
2014-08-10 15:53:50
阅读次数:
222
Yii的Active Recorder包装了很多。特别是把SQL中 把where,order,limit,IN/not IN,like等常用短句都包含进CDbCriteria这个类中去,这样整个代码会比较规范,一目了然。CDbCriteria代表一个标准的查询, 如条件,order by和limit...
分类:
数据库 时间:
2014-08-07 22:59:24
阅读次数:
243
效果代码title="请输入正确的十六位数字" onkeyup="javascript: return this.value = this.value.toUpperCase();" placeholder="请输入正确的十六位数字"html代码input type="text" name="car...
分类:
其他好文 时间:
2014-08-07 21:39:20
阅读次数:
339
虽然网上已经有LICEcap、GifCam等gif录制工具,但我仍然觉得对于我个人使用还是不够方面,所以自己又写了一个,功能相对简洁一些。 Gif Recorder 支持全屏录制和区域录制,可自定义录制帧率。由于录制过程和存储分开进行,这样就可以达到很高的帧率。录制的动画中包括光标和鼠标点击记...
分类:
其他好文 时间:
2014-08-07 18:01:10
阅读次数:
215
所谓PhraseQuery,就是通过短语来检索,比如我想查“big car”这个短语,那么如果待匹配的document的指定项里包含了"big car"这个短语,这个document就算匹配成功。可如果待匹配的句子里包含的是“big black car”,那么就无法匹配成功了,如果也想让这个匹配,....
分类:
其他好文 时间:
2014-08-06 14:25:51
阅读次数:
248
#lang scheme
( define nil '() )
( define ( root tree )( car tree ) )
( define ( left-tree tree )( cadr tree ) )
( define ( right-tree tree )( caddr tree ) )
( define ( height tree )
( con...
分类:
其他好文 时间:
2014-08-05 22:45:53
阅读次数:
244
打开 MathAPI.h,将第一个 @param 标签的参数名由firstNumber 修改为 thirdNumber,然后编译。有一个警告发生,甚至提出了修改建议。它不会影响任何事情,但有助于检查文档中的错误。特殊注释Xcode 还支持几种特殊注释,对于你或者使用你代码的人非常有用。打开 Car.m,在 driveCarWithCompletion: 方法中,在调用completion 块之前添...
分类:
其他好文 时间:
2014-08-05 19:24:40
阅读次数:
220