valid palindrome


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

題目說明

如果一個字正著讀反著讀皆相同就叫回文。輸入一個字,若為回文輸出true,不是的話輸出false

輸入資料限制:1 <= 輸入字串長度 <= 30

輸入

單字

輸出

是否為回文

sample input1

racecar

sample output1

true

sample input2

programming

sample output2

false

Comments

There are no comments at the moment.