시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 517 319 289 67.681%

문제

단어를 하나 읽고 그 단어가 팰린드롬(Palindromes)이면 "true" 아니면 "false"를 출력하는 프로그램을 작성하라.

팰린드롬은 뒤로 읽으나 앞으로 읽으나 똑같은 단어를 말한다.

예를들어:

  • ada는 팰린드롬이다
  • aabbaa는 팰린드롬이다
  • pizza는 팰린드롬이 아니다.

당신은 그 단어가 팰린드롬인지 아닌지를 판단하는 프로그램을 작성해야한다.

입력

입력은 단어 한 개가 주어진다. 그 단어 소문자로만 이루어져 있고 길이는 최대 20이다.

출력

그 단어가 팰린드롬이면 "true", 아니면 "false"를 출력하라.

예제 입력 1

a

예제 출력 1

true

예제 입력 2

uu

예제 출력 2

true

예제 입력 3

owo

예제 출력 3

true

예제 입력 4

bbbbbbbbbbb

예제 출력 4

true

예제 입력 5

zzzzzzzzo

예제 출력 5

false

예제 입력 6

slakdjfims

예제 출력 6

false
W3sicHJvYmxlbV9pZCI6IjEzMjM1IiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVkMzMwXHViOWIwXHViNGRjXHViODZjIChQYWxpbmRyb21lcykiLCJkZXNjcmlwdGlvbiI6IjxwPlx1YjJlOFx1YzViNFx1Yjk3YyBcdWQ1NThcdWIwOTggXHVjNzdkXHVhY2UwIFx1YWRmOCBcdWIyZThcdWM1YjRcdWFjMDAgXHVkMzMwXHViOWIwXHViNGRjXHViODZjKFBhbGluZHJvbWVzKVx1Yzc3NFx1YmE3NCAmcXVvdDt0cnVlJnF1b3Q7IFx1YzU0NFx1YjJjOFx1YmE3NCAmcXVvdDtmYWxzZSZxdW90O1x1Yjk3YyBcdWNkOWNcdWI4MjVcdWQ1NThcdWIyOTQgXHVkNTA0XHViODVjXHVhZGY4XHViN2E4XHVjNzQ0IFx1Yzc5MVx1YzEzMVx1ZDU1OFx1Yjc3Yy48XC9wPlxyXG5cclxuPHA+XHVkMzMwXHViOWIwXHViNGRjXHViOD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