{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"livecodebench","formal_name":"LiveCodeBench","introduction":"LiveCodeBench 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","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"2dd62d6a-83d5-5ef7-84db-b5d82b854754","task_key":"release~5fv1--test--2999","task_revision_id":"1","upstream_id":"2999","short_description":"check-if-strings-can-be-made-equal-with-operations-i","config":"release_v1","split":"test","body":"{\"contest_date\":\"2023-09-02T00:00:00\",\"contest_id\":\"biweekly-contest-112\",\"difficulty\":\"easy\",\"platform\":\"leetcode\",\"question_content\":\"You are given two strings s1 and s2, both of length 4, consisting of lowercase English letters.\\nYou can apply the following operation on any of the two strings any number of times:\\n\\nChoose any two indices i and j such that j - i = 2, then swap the two characters at those indices in the string.\\n\\nReturn true if you can make the strings s1 and s2 equal, and false otherwise.\\n \\nExample 1:\\n\\nInput: s1 = \\\"abcd\\\", s2 = \\\"cdab\\\"\\nOutput: true\\nExplanation: We can do the following operations on s1:\\n- Choose the indices i = 0, j = 2. The resulting string is s1 = \\\"cbad\\\".\\n- Choose the indices i = 1, j = 3. The resulting string is s1 = \\\"cdab\\\" = s2.\\n\\nExample 2:\\n\\nInput: s1 = \\\"abcd\\\", s2 = \\\"dacb\\\"\\nOutput: false\\nExplanation: It is not possible to make the two strings equal.\\n\\n \\nConstraints:\\n\\ns1.length == s2.length == 4\\ns1 and s2 consist only of lowercase English letters.\",\"question_title\":\"check-if-strings-can-be-made-equal-with-operations-i\",\"starter_code\":\"class Solution:\\n    def canBeEqual(self, s1: str, s2: str) -> bool:\\n        \"}","display_format":"text","language":"","answer_status":"published","assets":[],"source_url":"https://livecodebench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}