http://codeforces.com/contest/552/problem/E
E. Vanya and Brackets
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Vanya is doing his mat...
Scala的求值策略有2种:
call by value
call by name
如何区分?
例子:
def bar(x:Int,y: => Int) =
def loop(): Int=loop
bar(,loop)//依然能返回结果
//x参数是call by value,先求得loop值之后才能进行之...