{"ScriptPreparationCode":null,"TestCases":[{"Name":"Vec2_int","Code":"class Vec2_int {\r\n x = 0;\r\n y = 0;\r\n\r\n randomize() {\r\n this.x = Math.random();\r\n this.y = Math.random();\r\n }\r\n\r\n length2() {\r\n return this.x * this.x \u002B this.y * this.y;\r\n }\r\n\r\n length() {\r\n return Math.sqrt(this.length2());\r\n }\r\n}\r\n\r\nlet num = 10000\r\nlet sum = 0\r\nfor (let i=0; i\u003Cnum; i\u002B\u002B) {\r\n let v = new Vec2_int();\r\n v.randomize();\r\n sum \u002B= v.length();\r\n}\r\n\r\nsum /= num;\r\nconsole.log(sum);\r\n","IsDeferred":false},{"Name":"Vec2_float","Code":"class Vec2_float {\r\n x = 0.5;\r\n y = 0.5;\r\n\r\n randomize() {\r\n this.x = Math.random();\r\n this.y = Math.random();\r\n }\r\n\r\n length2() {\r\n return this.x * this.x \u002B this.y * this.y;\r\n }\r\n\r\n length() {\r\n return Math.sqrt(this.length2());\r\n }\r\n}\r\n\r\nlet num = 10000\r\nlet sum = 0\r\nfor (let i=0; i\u003Cnum; i\u002B\u002B) {\r\n let v = new Vec2_float();\r\n v.randomize();\r\n sum \u002B= v.length();\r\n}\r\n\r\nsum /= num;\r\nconsole.log(sum);\r\n","IsDeferred":false}]}