{"ScriptPreparationCode":"function calculateChange(payment, cost) {\r\n // \uCF54\uB4DC\uB97C \uC791\uC131\uD574 \uC8FC\uC138\uC694.\r\n let change = payment - cost; // \uAC70\uC2A4\uB984\uB3C8 \uCD1D\uC561\r\n\r\n function billCounting(amount) {\r\n const count = Math.floor(change / amount);\r\n change = change - amount * count;\r\n return count;\r\n }\r\n\r\n const fiftyCount = billCounting(50000);\r\n const tenCount = billCounting(10000);\r\n const fiveCount = billCounting(5000);\r\n const oneCount = billCounting(1000);\r\n\r\n console.log(\u006050000\uC6D0 \uC9C0\uD3D0: ${fiftyCount}\uC7A5\u0060);\r\n console.log(\u006010000\uC6D0 \uC9C0\uD3D0: ${tenCount}\uC7A5\u0060);\r\n console.log(\u00605000\uC6D0 \uC9C0\uD3D0: ${fiveCount}\uC7A5\u0060);\r\n console.log(\u00601000\uC6D0 \uC9C0\uD3D0: ${oneCount}\uC7A5\u0060);\r\n}","TestCases":[{"Name":"s","Code":"calculateChange(100000, 33000);","IsDeferred":false},{"Name":"f","Code":"calculateChange(500000, 378000);","IsDeferred":false}]}