判断字符串是否为回文

Luogu
IDLGB2124
Time1000ms
Memory128MB
DifficultyP1
字符串(入门)
输入一个字符串,输出该字符串是否回文。回文是指顺读和倒读都一样的字符串。 ## Input 输入一行字符串,长度小于 $100$。 ## Output 如果字符串是回文,输出 `yes`;否则,输出 `no`。 [samples]
Samples
Input #1
abcdedcba
Output #1
yes
API Response (JSON)
{
  "problem": {
    "name": "判断字符串是否为回文",
    "description": {
      "content": "输入一个字符串,输出该字符串是否回文。回文是指顺读和倒读都一样的字符串。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2124"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "输入一个字符串,输出该字符串是否回文。回文是指顺读和倒读都一样的字符串。\n\n## Input\n\n输入一行字符串,长度小于 $100$。\n\n## Output\n\n如果字符串是回文,输出 `yes`;否则,输出 `no`。\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments