{"ScriptPreparationCode":"let QUANTITY = 1_000_000\r\n\r\nlet puppy_default = {\r\n name: undefined,\r\n type: \u0027labrador\u0027,\r\n color: \u0027chocolate\u0027,\r\n age: 1,\r\n weight: 40,\r\n x: 0,\r\n y: 0,\r\n vx: 1,\r\n vy: 0,\r\n}\r\n\r\nlet puppy_new = {name: \u0027rover\u0027, vx: 1}\r\n\r\nlet inherit_pool = []\r\nlet copy_pool = []\r\n\r\nfunction inherit_init() {\r\n for (let i = 0; i \u003C QUANTITY; i\u002B\u002B) {\r\n inherit_pool.push({__proto__: puppy_default, ...puppy_new})\r\n }\r\n}\r\n\r\nfunction copy_init() {\r\n for (let i = 0; i \u003C QUANTITY; i\u002B\u002B) {\r\n copy_pool.push({...puppy_default, ...puppy_new})\r\n }\r\n}\r\n\r\nfunction inherit_move() {\r\n let random = Math.ceil(Math.random() * 10)\r\n for (let i = 0; i \u003C inherit_pool.length; i\u002B\u002B) {\r\n if (inherit_pool[i].vx) inherit_pool[i].x \u002B= inherit_pool[i].vx * random\r\n if (inherit_pool[i].vy) inherit_pool[i].y \u002B= inherit_pool[i].vy * random\r\n }\r\n}\r\n\r\nfunction copy_move() {\r\n let random = Math.ceil(Math.random() * 10)\r\n for (let i = 0; i \u003C copy_pool.length; i\u002B\u002B) {\r\n if (copy_pool[i].vx) copy_pool[i].x \u002B= copy_pool[i].vx * random\r\n if (copy_pool[i].vy) copy_pool[i].y \u002B= copy_pool[i].vy * random\r\n }\r\n}","TestCases":[{"Name":"inherit","Code":"inherit_init()\r\ninherit_move()","IsDeferred":false},{"Name":"copy","Code":"copy_init()\r\ncopy_move()","IsDeferred":false}]}