aboutsummaryrefslogtreecommitdiffstats
path: root/sample/trick2018/03-tompng/entry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/trick2018/03-tompng/entry.rb')
-rw-r--r--sample/trick2018/03-tompng/entry.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/trick2018/03-tompng/entry.rb b/sample/trick2018/03-tompng/entry.rb
index 2d7b209..26416c7 100644
--- a/sample/trick2018/03-tompng/entry.rb
+++ b/sample/trick2018/03-tompng/entry.rb
@@ -1,7 +1,7 @@
X=[];class String def-@;replace ?-+self end;def-a;X.reject!{|x|x.
__id__==__id__};a.replace(self+?-+a) end end;at_exit{eval C=(Zlib
-.inflate Integer((X*?-).tr(?-,'').tr('q-z','0-9'),26).digits(256)
-.pack'C*')};def method_missing n;(X<<n.to_s)[-1]end;require'zlib'
+.inflate((X*?-).tr(?-,'').tr('q-z','0-9').to_i(26).digits(0x100).
+pack'C*'))};def method_missing n;(X<<n.to_s)[-1]end;require'zlib'
fzygtoxyzgntmdmuwvfoffbpmvzojpkhczvjvjdbtscnldwbdoprackddovivvmkz
ponzmosvtjciwkgaslscxxxwudeesmmqpfhislxuxnnypulxstzgobyaekqqhbjcg
mvko------------ddkeys----eivhnccaqyiw---bzyccmt-----------ymtnge