ãã¼ããã©ãã ruby -rbase64 -e'puts Base64.decode64 %q(dGFrYW5vMzJAZ21haWwuY29t)' â [Ruby][Hack] Yet Another Brainfuckeræ¨æ¥ã®å¤*1ï¼Brainfuckã§ã¡ããã¨éãã§ããã¨ãã«ï¼å¤ãªå®è£ ãæãã¤ããï¼ Webãã¾ããã£ã¦ã¿ã¦ãï¼ãã®ã¿ã¤ãã®å®è£ ã¯ã¾ã ãªããããªã®ã§ï¼å ¬éãã¨ãã¾ãï¼ #!/usr/bin/env ruby # yab.rb iseg = ARGF.read iseg = iseg. gsub(']', 'end;'). gsub('[', 'while dseg[dx] != 0;'). gsub('+', 'dseg[dx] += 1;'). gsub('-', 'dseg[dx] -= 1;'). gsub('.', 'print dseg[dx].chr;')
{{#tags}}- {{label}}
{{/tags}}