Measure

AtCoder
IDtenka1_2018_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ of length $2$ or $3$ consisting of lowercase English letters. If the length of the string is $2$, print it as is; if the length is $3$, print the string after reversing it. ## Constraints * The length of $S$ is $2$ or $3$. * $S$ consists of lowercase English letters. ## Input Input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
abc
Output #1
cba

As the length of $S$ is $3$, we print it after reversing it.
Input #2
ac
Output #2
ac

As the length of $S$ is $2$, we print it as is.
API Response (JSON)
{
  "problem": {
    "name": "Measure",
    "description": {
      "content": "You are given a string $S$ of length $2$ or $3$ consisting of lowercase English letters. If the length of the string is $2$, print it as is; if the length is $3$, print the string after reversing it.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "tenka1_2018_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ of length $2$ or $3$ consisting of lowercase English letters. If the length of the string is $2$, print it as is; if the length is $3$, print the string after reversing it.\n...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments