Type: Default 1000ms 512MiB

【字符串】回文串

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

回文串是从左到右或者从右到左读起来都一样的字符串,试编程判别一个字符串是否为回文串。

Input Format

输入一个字符串。串长度<255.

Output Format

判别输入的字符串是否为回文串,是输出"Y",否则输出"N"。

Sample

样例输入

abcba

样例输出

Y

语法-字符串

Not Claimed
Status
Done
Problem
16
Open Since
2026-5-30 0:00
Deadline
2026-6-6 23:59
Extension
24 hour(s)