#P1151. 子数整数
子数整数
Description
For a five-digit number , it can be split into three subnumbers:
For example, the five-digit number can be split into
Given a positive integer , write a program to find all five-digit numbers between and inclusive such that their three subnumbers are all divisible by .
Input Format
A positive integer .
Output Format
Output one qualifying five-digit number per line in increasing order. Do not output duplicates or miss any. If there is no solution, output No.
15
22555
25555
28555
30000
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号