repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* transcode.c (trans_open_i): check the result of rb_transcoding_open.
[ruby-svn.git]
/
benchmark
/
bm_app_tak.rb
blob
efe5380f4e979b2d34d44e7bee1a23824c197431
1
2
def tak x, y, z
3
unless y < x
4
z
5
else
6
tak( tak(x-1, y, z),
7
tak(y-1, z, x),
8
tak(z-1, x, y))
9
end
10
end
11
12
tak(18, 9, 0)
13