{"problem":{"name":"058. Switch Case","description":{"content":"Take a single string S as input, then make all capital characters lowercase and all lowercase characters capital. A single string S containing the string to switch. The string S after being switched","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269058"},"statements":[{"statement_type":"Markdown","content":"Take a single string S as input, then make all capital characters lowercase and all lowercase characters capital.\n\nA single string S containing the string to switch.\n\nThe string S after being switched.\n\nThe string will not contain spaces or non-alphabetic characters.\n\n## Input\n\nA single string S containing the string to switch.\n\n## Output\n\nThe string S after being switched.\n\n[samples]\n\n## Note\n\nThe string will not contain spaces or non-alphabetic characters.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ S \\in \\Sigma^* $ be the input string, where $ \\Sigma = \\{a, b, \\dots, z, A, B, \\dots, Z\\} $.\n\n**Objective**  \nCompute the string $ S' $ such that for each character $ c \\in S $:  \n$$\nc' =\n\\begin{cases}\n\\text{lowercase}(c) & \\text{if } c \\text{ is uppercase}, \\\\\n\\text{uppercase}(c) & \\text{if } c \\text{ is lowercase}.\n\\end{cases}\n$$  \nOutput $ S' $.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269058","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}