{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"livecodebench","formal_name":"LiveCodeBench","introduction":"競技プログラミングの新しい問題を継続的に収集し、コードに関する能力を評価するベンチマークです。初期release_v1は400問で、問題の出題元と公開日時、データセットの版を区別して扱います。\n\nLiveCodeBench continuously collects new competitive-programming problems to evaluate coding capabilities. Its initial release_v1 contains 400 problems, with source platform, contest date, and dataset version tracked explicitly.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://livecodebench.github.io/","indexing_mode":"noindex"},"task_id":"77a50f63-d1b1-58e3-928e-792ded9c047f","task_key":"release~5fv1--test--2819","task_revision_id":"1","upstream_id":"2819","short_description":"remove-trailing-zeros-from-a-string","config":"release_v1","split":"test","body":"{\"contest_date\":\"2023-05-28T00:00:00\",\"contest_id\":\"weekly-contest-347\",\"difficulty\":\"easy\",\"platform\":\"leetcode\",\"question_content\":\"Given a positive integer num represented as a string, return the integer num without trailing zeros as a string.\\n \\nExample 1:\\n\\nInput: num = \\\"51230100\\\"\\nOutput: \\\"512301\\\"\\nExplanation: Integer \\\"51230100\\\" has 2 trailing zeros, we remove them and return integer \\\"512301\\\".\\n\\nExample 2:\\n\\nInput: num = \\\"123\\\"\\nOutput: \\\"123\\\"\\nExplanation: Integer \\\"123\\\" has no trailing zeros, we return integer \\\"123\\\".\\n\\n \\nConstraints:\\n\\n1 <= num.length <= 1000\\nnum consists of only digits.\\nnum doesn't have any leading zeros.\",\"question_title\":\"remove-trailing-zeros-from-a-string\",\"starter_code\":\"class Solution:\\n    def removeTrailingZeros(self, num: str) -> str:\\n        \"}","display_format":"text","language":"","answer_status":"published","assets":[],"source_url":"https://livecodebench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}