시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 841 568 520 71.823%

문제

팰린드롬은 앞에서부터 읽을 때와 뒤에서부터 읽을 때가 똑같은 단어를 의미한다. 예를 들어, eve, eevee는 팰린드롬이고, eeve는 팰린드롬이 아니다. 단어가 주어졌을 때, 팰린드롬인지 아닌지 판단해보자.

입력

길이가 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
W3sicHJvYmxlbV9pZCI6IjEzMjM1IiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVkMzMwXHViOWIwXHViNGRjXHViODZjIiwiZGVzY3JpcHRpb24iOiI8cD5cdWQzMzBcdWI5YjBcdWI0ZGNcdWI4NmNcdWM3NDAgXHVjNTVlXHVjNWQwXHVjMTFjXHViZDgwXHVkMTMwIFx1Yzc3ZFx1Yzc0NCBcdWI1NGNcdWM2NDAgXHViNGE0XHVjNWQwXHVjMTFjXHViZDgwXHVkMTMwIFx1Yzc3ZFx1Yzc0NCBcdWI1NGNcdWFjMDAgXHViNjExXHVhYzE5XHVjNzQwIFx1YjJlOFx1YzViNFx1Yjk3YyBcdWM3NThcdWJiZjhcdWQ1NWNcdWIyZTQuIFx1YzYwOFx1Yjk3YyBcdWI0ZTRcdWM1YjQsIGV2ZSwgZWV2ZWVcdWIyOTQgXHVkMzMwXHViOWIwXHViNGRjXHViODZjXHVjNzc0XHVhY2UwLCBlZXZlXHViMjk0IFx1ZDMzMFx1YjliMFx1YjRkY1x1Yjg2Y1x1Yzc3NCBcdWM1NDRcdWIyYzhcdWIyZTQuIFx1YjJlOF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