Let's play a game
Time Limit: 2 Seconds Memory Limit: 65536 KB
Elves from the Lothvain forest have created a very interesting game. The rules are very simple:
There are two players.
...
分类:
其他好文 时间:
2014-08-15 17:56:19
阅读次数:
251
点击打开链接题目链接
Parity game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6249
Accepted: 2413
Description
Now and then you play the following game with...
分类:
其他好文 时间:
2014-08-15 14:39:08
阅读次数:
221
Play on WordsSome of the secret doors contain avery interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because th...
分类:
其他好文 时间:
2014-08-15 14:34:48
阅读次数:
216
The die is castInterGames is a high-tech startup company that specializes in developing technology that allows users to play games over the Internet.....
分类:
其他好文 时间:
2014-08-15 12:16:38
阅读次数:
214
中国足球的水平虽然不高,但实际上,在每个城市会有一批足球爱好者,他们踢球、看球、懂球。有这样的2个足球爱好者,一个是左脚选手,另一个是右脚选手。 public class PlayWithLeft { public void Play() { Console.WriteLine("我是左脚选手");...
分类:
其他好文 时间:
2014-08-14 19:41:59
阅读次数:
197
1、Async library ? ? ?SIP-14 Futures and Promises ? ? ?http://docs.scala-lang.org/sips/completed/futures-promises.html ? ? ?http://en.wikipedia.org/wiki/Futures_and_promises 2、Akka ? ? ...
分类:
其他好文 时间:
2014-08-14 11:06:58
阅读次数:
200
REPL
在Scala中的书籍中会提及REPL,REPL(Read-Eval-Print
Loop);这被称为“读取-求值-打印”循环。
不带参数的Scala方法通常不使用圆括号,例如,StringOps类的API显示它有一个distinct方法,不带(),其作用是获取字符串中不重复的字符。调用如下: print("hello".distinct);
Scaladoc
...
分类:
其他好文 时间:
2014-08-13 22:33:57
阅读次数:
281
比赛的时候想到这题的大概做法,但由于卡别的水题。。。就赛后做了。。。题意:给一个二叉树,每个结点有一个w[i],有3种操作,0 x表示左旋x,1 x表示右旋x,3 x表示询问x结点的价值,其中,价值为x子树结点的累加价值的累乘,其中,结点的累加价值为结点子树的Σw[i]。即询问是,∏Σw。好像题意被...
分类:
其他好文 时间:
2014-08-13 22:00:27
阅读次数:
302
spark版本:spark-1.0.2-bin-hadoop2.tgz下载链接:http://www.apache.org/dist/spark/spark-1.0.2/Scala版本:scala-2.10.4.tgz下载链接:http://www.scala-lang.org/files/arch...
分类:
其他好文 时间:
2014-08-13 17:48:06
阅读次数:
156
设计应用的一个方面是规划HTTP请求的URL规范,超链接,HTTP表单以及可能的公用API接口。在Play这是通过路由配置,然后在控制器中实现相应的接口。Play应用中的路由配置可以Controller类构成了MVC框架中的控制层,如下图所示:在Play应用中Controller为定义了HTTP接口的Scala类,而你的路由配置决定了给定的HTTP请求调用哪个Controller中定义的方法,这些...
分类:
Web程序 时间:
2014-08-13 10:33:35
阅读次数:
217