Created
December 1, 2011 15:11
-
-
Save niku/1417465 to your computer and use it in GitHub Desktop.
check ruby version for codevs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| File.open('result.txt', 'w') do |f| | |
| f << RUBY_DESCRIPTION | |
| while line = STDIN.gets | |
| f << line | |
| STDOUT.print '0' | |
| STDOUT.flush | |
| end | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]40 | |
| 7 7 | |
| 1111111 | |
| 1000001 | |
| 1s00001 | |
| 1s000g1 | |
| 1s00001 | |
| 1000001 | |
| 1111111 | |
| 25 | |
| END | |
| 10 100 0 1 | |
| 1 4 12 44 40 | |
| END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]40 | |
| 7 7 | |
| 1111111 | |
| 1000001 | |
| 1s00001 | |
| 1s000g1 | |
| 1s00001 | |
| 1000001 | |
| 1111111 | |
| 25 | |
| END | |
| 10 100 0 1 | |
| 1 4 12 44 40 | |
| END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment