{"ScriptPreparationCode":"function calculateChange(payment, cost) {\r\n let change = payment - cost;\r\n let money = [50000, 10000, 5000, 1000]; // 5\uB9CC, 1\uB9CC, 5\uCC9C, 1\uCC9C\r\n let moneyResult = [0, 0, 0, 0];\r\n \r\n for(let i= 0; i \u003C money.length; i\u002B\u002B) {\r\n if(change \u003C= 0) break;\r\n \r\n if(change / money[i] \u003E 0){\r\n let temp = Math.floor(change / money[i]);\r\n moneyResult[i] = temp;\r\n change = change % money[i];\r\n }\r\n }\r\n \r\n console.log(\u006050000\uC6D0 \uC9C0\uD3D0: ${moneyResult[0]}\uC7A5\u0060);\r\n console.log(\u006010000\uC6D0 \uC9C0\uD3D0: ${moneyResult[1]}\uC7A5\u0060);\r\n console.log(\u00605000\uC6D0 \uC9C0\uD3D0: ${moneyResult[2]}\uC7A5\u0060);\r\n console.log(\u00601000\uC6D0 \uC9C0\uD3D0: ${moneyResult[3]}\uC7A5\u0060);\r\n}","TestCases":[{"Name":"a","Code":"calculateChange(100000, 33000);","IsDeferred":false},{"Name":"b","Code":"calculateChange(500000, 378000);","IsDeferred":false}]}