{"ScriptPreparationCode":null,"TestCases":[{"Name":"func1","Code":"function func1(level = 25) {\r\n const BaseATK = 30\r\n let UpdateATK\r\n if (level \u003E= 0 \u0026\u0026 level \u003C= 2) {\r\n UpdateATK = BaseATK \u002B (level * 5);\r\n } else if (level \u003E= 3 \u0026\u0026 level \u003C= 7) {\r\n UpdateATK = (BaseATK - 1) \u002B (level * 5);\r\n } else if (level \u003E= 8 \u0026\u0026 level \u003C= 12) {\r\n UpdateATK = (BaseATK - 2) \u002B (level * 5);\r\n } else if (level \u003E= 13 \u0026\u0026 level \u003C= 17) {\r\n UpdateATK = (BaseATK - 3) \u002B (level * 5);\r\n } else if (level \u003E= 18 \u0026\u0026 level \u003C= 22) {\r\n UpdateATK = (BaseATK - 4) \u002B (level * 5);\r\n } else if (level \u003E= 23 \u0026\u0026 level \u003C= 25) {\r\n UpdateATK = (BaseATK - 5) \u002B (level * 5)\r\n }\r\n return UpdateATK\r\n }","IsDeferred":false},{"Name":"func2","Code":"function func2(level = 25, rank = 0) {\r\n const BaseATK = 30 \u002B rank * 2;\r\n const offset = Math.floor(level / 5);\r\n return BaseATK - offset \u002B level * 5;\r\n }","IsDeferred":false}]}