시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 271 | 182 | 170 | 72.961% |
We say that a string is odd if and only if all palindromic substrings of the string have odd length.
Given a string s, determine if it is odd or not.
A substring of a string s is a nonempty sequence of consecutive characters from s. A palindromic substring is a substring that reads the same forwards and backwards.
The input consists of a single line containing the string s (1 ≤ |s| ≤ 100).
It is guaranteed that s consists of lowercase ASCII letters (‘a’–‘z’) only
If s is odd, then print “Odd.” on a single line (without quotation marks). Otherwise, print “Or not.” on a single line (without quotation marks).
amanaplanacanalpanama
Odd.
madamimadam
Odd.
annamyfriend
Or not.
nopalindromes
Odd.