原本打算用 Cpp,Ada,Python 各重写一份,觉得这种行为比较2.
因为还是 Scheme 的表达最优雅.
#lang scheme
( define nil '() )
( define ( root tree )( car tree ) )
( define ( left-tree tree )( cadr tree ) )
( define ( right...
分类:
其他好文 时间:
2014-08-17 01:06:41
阅读次数:
266
题目描述 Description 又到暑假了,住在城市A的Car想和朋友一起去城市B旅游。她知道每个城市都有四个飞机场,分别位于一个矩形的四个顶点上,同一个城市中两 个机场之间有一条笔直的高速铁路,第I个城市中高速铁路了的单位里程价格为Ti,任意两个不同城市的机场之间均有航线,所有航线单位里程的价....
分类:
其他好文 时间:
2014-08-14 16:33:48
阅读次数:
171
先上题目: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
效果代码title="请输入正确的十六位数字" onkeyup="javascript: return this.value = this.value.toUpperCase();" placeholder="请输入正确的十六位数字"html代码input type="text" name="car...
分类:
其他好文 时间:
2014-08-07 21:39:20
阅读次数:
339
所谓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