1
+ #!/usr/bin/env python
2
+ # Copyright 2008-2010 Isaac Gouy
3
+ # Copyright (c) 2013, 2014, Regents of the University of California
4
+ # Copyright (c) 2017, 2018, Oracle and/or its affiliates.
5
+ # All rights reserved.
6
+ #
7
+ # Revised BSD license
8
+ #
9
+ # This is a specific instance of the Open Source Initiative (OSI) BSD license
10
+ # template http://www.opensource.org/licenses/bsd-license.php
11
+ #
12
+ # Redistribution and use in source and binary forms, with or without
13
+ # modification, are permitted provided that the following conditions are met:
14
+ #
15
+ # Redistributions of source code must retain the above copyright notice, this
16
+ # list of conditions and the following disclaimer.
17
+ #
18
+ # Redistributions in binary form must reproduce the above copyright notice,
19
+ # this list of conditions and the following disclaimer in the documentation
20
+ # and/or other materials provided with the distribution.
21
+ #
22
+ # Neither the name of "The Computer Language Benchmarks Game" nor the name of
23
+ # "The Computer Language Shootout Benchmarks" nor the name "nanobench" nor the
24
+ # name "bencher" nor the names of its contributors may be used to endorse or
25
+ # promote products derived from this software without specific prior written
26
+ # permission.
27
+ #
28
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
32
+ # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
+ # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34
+ # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35
+ # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36
+ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
+
1
39
# The Computer Language Benchmarks Game
2
40
# http://shootout.alioth.debian.org/
3
41
#
@@ -45,4 +83,4 @@ def main():
45
83
main ()
46
84
duration = "%.3f\n " % (time .time () - start )
47
85
#sys.stderr.write(duration)
48
- print ("binarytrees: " + duration )
86
+ print ("binarytrees: " + duration )
0 commit comments