#abc326b. B - 326-like Numbers
B - 326-like Numbers
Score : points
问题陈述
326类数字是指一个三位正整数,其中百位数与十位数的乘积等于个位数。
例如, 是326类数字,而 不是。
给定一个整数 ,找出大于或等于 的最小的326类数字。在给定的约束条件下,该数字总是存在的。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
A 326-like number is a three-digit positive integer where the product of the hundreds and tens digits equals the ones digit.
For example, are 326-like numbers, while are not.
Given an integer , find the smallest 326-like number greater than or equal to . It always exists under the constraints.
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
320
Sample Output 1
326
are not 326-like numbers, while is a 326-like number.
Sample Input 2
144
Sample Output 2
144
is a 326-like number.
Sample Input 3
516
Sample Output 3
600
update @ 2024/3/10 01:49:03