Skip to content

Instantly share code, notes, and snippets.

@niku
Created December 1, 2011 15:11
Show Gist options
  • Save niku/1417465 to your computer and use it in GitHub Desktop.
Save niku/1417465 to your computer and use it in GitHub Desktop.
check ruby version for codevs
File.open('result.txt', 'w') do |f|
f << RUBY_DESCRIPTION
while line = STDIN.gets
f << line
STDOUT.print '0'
STDOUT.flush
end
end
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
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