#P1207. [USACO1.2] 双重回文数 Dual Palindromes
[USACO1.2] 双重回文数 Dual Palindromes
Description
Given two decimal integers , find the first decimal numbers greater than that are palindromic in at least two bases among base through base , and output them.
A solution to this problem does not need integers wider than bits.
Input Format
One line containing two positive integers separated by a space.
Output Format
Output lines. Each line contains one number that satisfies the requirement, in ascending order.
3 25
26
27
28
Hint
Constraints
For of the testdata, , .
Problem translation from NOCOW.
USACO Training Section 1.2.
Translated by ChatGPT 5
京公网安备 11011102002149号