#P10732. [NOISG 2019 Prelim] Palindromic FizzBuzz
[NOISG 2019 Prelim] Palindromic FizzBuzz
Background
Translated from NOISG2019 Prelim A.Palindromic FizzBuzz。
Problem Description
Given , for every number in the interval , if it is not a palindrome, output the number itself; otherwise, output Palindrome!。
Input Format
One line with two integers 。
Output Format
Output a total of lines. Each line contains one output. See the Description for the output rules。
8 13
Palindrome!
Palindrome!
10
Palindrome!
12
13
3 3
Palindrome!
999999997 1000000000
999999997
999999998
Palindrome!
1000000000
Hint
Sample #1 Explanation
are all palindromes, so output Palindrome!。
Sample #2 Explanation
is a palindrome。
Constraints
For convenience, let satisfy 。
| Score | Special property | ||
|---|---|---|---|
| - | Sample | ||
| None | |||
| None | |||
For of the testdata, , and 。
Translated by ChatGPT 5