This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
a, b = map(int, input().split())
for i in range(a, b + 1):
s = str(i)
if s == s[::-1]:
print('Palindrome!')
else:
print(i)
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |