Skip to content

Instantly share code, notes, and snippets.

@littlekbt
Created November 18, 2016 10:27
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/e865ed6441c7a177ecd769880efc58c3 to your computer and use it in GitHub Desktop.
Save littlekbt/e865ed6441c7a177ecd769880efc58c3 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*2*2*2+2-1,2 *2*2*2 *2*3-(2*2+1)
],[2*2*2*2* 2*2*2 +1,2*2*2*
2*2*2+1]] .flatte n.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')} *""]
,[[["1010010000 1110
1","11000010000001 ","11000001
100110"].map{|ele|ele. to_i(1+1).chr
(Encoding::UTF_8)}].join( )]].join()))*"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment