{"ScriptPreparationCode":null,"TestCases":[{"Name":"wiki","Code":"var container = \u0022MRKU576275\u0022;\r\nvar con = container.toUpperCase();\r\nfor (i = 0; i \u003C 10; i\u002B\u002B) {\r\n\tvar n = con.substr(i, 1);\r\n\tif (i \u003C 4) {\r\n\t\tn = \u00220123456789A?BCDEFGHIJK?LMNOPQRSTU?VWXYZ\u0022.indexOf(con.substr(i, 1));\r\n\t};\r\n\tn *= Math.pow(2, i);\r\n\tsum \u002B= n;\r\n};\r\nsum %= 11;\r\nsum %= 10;\r\nreturn sum","IsDeferred":false},{"Name":"me","Code":"var container = \u0022MRKU576275\u0022;\r\nvar con = container.toUpperCase();\r\nvar p = [1,2,4,8,16,32,64,128,256,512];\r\nvar s = 0;\r\nfor (var n=0;n\u003C10;n\u002B\u002B) {\r\n\tif (n\u003C4) {\r\n\t\tvar c = con.charCodeAt(n)-55;\r\n\t\ts\u002B=(Math.floor(c/10.2)\u002Bc)*p[n];\r\n\t} else {\r\n\t\ts\u002B=Number(con.charAt(n))*p[n];\r\n\t};\r\n};\r\nvar sum = s % 11 % 10;\r\nreturn sum","IsDeferred":false}]}