fork download
  1.  
  2. code = "----.";
  3. code = code.replace(/\]/g, "}");
  4. code = code.replace(/\[/g, "while(t[p]){");
  5. code = code.replace(/\+/g, "t[p]++;");
  6. code = code.replace(/-/g, "t[p]--;");
  7. code = code.replace(/>/g, "p=(p+1)%3000;");
  8. code = code.replace(/</g, "p=(p-1)%3000;");
  9. code = code.replace(/\./g, "o.push(t[p]);");
  10. code = code = "var p=0;var t=[];var o=[];for(var i=0;i<3000;++i){t.push(0);}" + code + "print(o);print(o.map(String.fromCharCode).join(\"\"));";
  11.  
  12. eval(code);print("11" + String.fromCharCode(100) +"11")
Success #stdin #stdout 0.54s 386560KB
stdin
Standard input is empty
stdout
-4

11d11