052. Passing Notes

Codeforces
IDCF10269052
Time1000ms
Memory256MB
Difficulty
English · Original
Formal · Original
You and your friend are passing notes in class, but to secure the safety of your notes you both decide to scramble the words. Your friend is going to pass you the first note, so that you can figure out the type of scramble that was used. Use the example test case below to figure out how the words where scrambled and write a program that will scramble words in the same way. The only line that you will be given will the plain unscrambled note that you want to send. Print the scrambled version of the note, so that you can send a message to your friend safely. ## Input The only line that you will be given will the plain unscrambled note that you want to send. ## Output Print the scrambled version of the note, so that you can send a message to your friend safely. [samples]
Let $ s \in \Sigma^* $ be the input string, where $ \Sigma $ is the set of printable ASCII characters. **Objective** Scramble $ s $ by reversing the order of its characters: $$ s' = \text{reverse}(s) $$
API Response (JSON)
{
  "problem": {
    "name": "052. Passing Notes",
    "description": {
      "content": "You and your friend are passing notes in class, but to secure the safety of your notes you both decide to scramble the words. Your friend is going to pass you the first note, so that you can figure ou",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10269052"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You and your friend are passing notes in class, but to secure the safety of your notes you both decide to scramble the words. Your friend is going to pass you the first note, so that you can figure ou...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "Let $ s \\in \\Sigma^* $ be the input string, where $ \\Sigma $ is the set of printable ASCII characters.\n\n**Objective**  \nScramble $ s $ by reversing the order of its characters:  \n$$ s' = \\text{reverse...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments