Guest User

Judge snippet

a guest
Nov 19th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.  
  3.     "Print to console": {
  4.         "scope": "javascript,typescript",
  5.         "prefix": "judge",
  6.         "body": [
  7.             "// Input.",
  8.          "let input = [",
  9.          "    '4 5 20',",
  10.          "    '5',",
  11.          "    '20',",
  12.             "",
  13.          "];",
  14.          "",
  15.          "// Custom implementation of read and print. Do not touch : )",
  16.         "let print = this.print || console.log;",
  17.          "let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);",
  18.          "",
  19.           "// Solution",
  20.           "",
  21.           ""
  22.         ],
  23.         "description": "Appends the Judge code"
  24.     }
  25. }
Add Comment
Please, Sign In to add comment