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