$ cat 1.rb
#!/usr/bin/env ruby
chksum = 0
(0..
10000000).
each { |i
| chksum
+= Time.
at(unixTime
+ i
).
year }
puts "Total: #{total}"
puts "Checksum: #{chksum}"
$ ./1.rb
Total: 11.06285
$ java -cp joda-time-2.0.jar:. Main 3
Total time: 143
JCBjYXQgMS5yYgojIS91c3IvYmluL2VudiBydWJ5Cgp1bml4VGltZSA9IFRpbWUubm93LnRvX2kKY2hrc3VtID0gMApzdGFydCA9IFRpbWUubm93CgooMC4uMTAwMDAwMDApLmVhY2ggeyB8aXwgY2hrc3VtICs9IFRpbWUuYXQodW5peFRpbWUgKyBpKS55ZWFyIH0KCnRvdGFsID0gVGltZS5ub3cgLSBzdGFydApwdXRzICJUb3RhbDogI3t0b3RhbH0iCnB1dHMgIkNoZWNrc3VtOiAje2Noa3N1bX0iCiQgLi8xLnJiClRvdGFsOiAxMS4wNjI4NQpDaGVja3N1bTogMjAxNDIxMzk0NDgKJCBqYXZhIC1jcCBqb2RhLXRpbWUtMi4wLmphcjouIE1haW4gMwpUb3RhbCB0aW1lOiAxNDMKQ2hlY2tzdW06IDIwMTQyMDY1NjAw
Main.java:1: error: class, interface, or enum expected
$ cat 1.rb
^
Main.java:2: error: illegal character: \35
#!/usr/bin/env ruby
^
2 errors