Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- import java.math.*;
- class Solution {
- public static void main(String args[]) throws IOException {
- String code = "r=readline,l3=r(l2=r(l1=r(e=''))),d=[' _ | ||_|',' | |',' _ _||_ ',' _ _| _|',' |_| |',' _ |_ _|',' _ |_ |_|',' _ | |',' _ |_||_|',' _ |_| _|'];for(i=0;i*3<l1.length;i++)e+=d.indexOf(l1.substr(i*3,3)+l2.substr(i*3,3)+l3.substr(i*3,3));print(e)";
- FileOutputStream outputStream = new FileOutputStream("code.js");
- byte[] strToBytes = code.getBytes();
- outputStream.write(strToBytes);
- outputStream.close();
- ProcessBuilder pb = new ProcessBuilder(
- "/opt/coderunner/nodejs/bin/node",
- "-r",
- "/codemachine/lib/javascript/internal/polyfill.js",
- "code.js");
- pb.inheritIO();
- try {
- Process p = pb.start();
- p.waitFor();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement