lib/zlib_input.rb in judge_system-1.5.2 vs lib/zlib_input.rb in judge_system-1.6.0
- old
+ new
@@ -1,9 +1,9 @@
require 'zlib'
require 'base64'
module ZlibInput
def zlib input
- data = Zlib::Deflate.deflate(input)
+ data = Zlib::Deflate.deflate(input, Zlib::BEST_COMPRESSION)
Base64.encode64(data)
end
module_function :zlib
end
\ No newline at end of file