Skip to content

Instantly share code, notes, and snippets.

@littlekbt
Created December 27, 2016 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save littlekbt/81462828b3e6db3179d2c5e8285fa575 to your computer and use it in GitHub Desktop.
Save littlekbt/81462828b3e6db3179d2c5e8285fa575 to your computer and use it in GitHub Desktop.
eval(%w(puts ([[[[1,1+1,(1+1+1),2*2*2/1+1,
2*(1+1)],[1,1 +1,(1+1+1),2*2*2/1+1,3+2],
[1,1+1,1+1+1,2 *3+1,1],[[1,1+1,2*2,1+1,
2*2*2]]].map{|a rr|arr.join.to_i}.map{
|e|e.chr('UTF-8') }*""],[[[2*2*2*2
*2*2*2+2,3*3*2*2* 2*2+2*2*2*2*
2+3*2+1],[2*2*2*2 *2*2*2+2
,3*3*2*2*2*2+2* 2*2*2*2],[2*2*2*
2*(1+1)*2*2+2 -1,2*2*2 *2*2*3-(2
*2+1)]].fla tten .pack(
"C*").e ncode(' UTF-8
','Sh ift_JIS ')]
,[[ [1+1+1, 0,1,1+1,1 +
1+ 1],[ 1+1+ 1,0,2,1
+1 ,1+1 +1],[1+ 1+1,0
, 1,1+ 1+1+1+ 1,2],
[ 1+1 +1,0 ,1,1
+1+ 1+1 +1,1
+1+ 1+1+ 1
+1]] .map (
&:j oin).ma p{|e|e .t
o_i(8) .ch
r('UTF-8')} *""]
,[[["1100000110 1111",
"11000001011000","1 1000010000
001","1100000110011 0"] .map{|e|e.to_
i(2).chr('UTF-8')}].join( )]].join()))*"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment