#abc235a. A - Rotate
A - Rotate
Score : points
问题描述
令 表示一个由左至右数字分别为 、、 的三位数。
给定一个各位数字均不为 的三位数 ,求解 的值。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Let denote the -digit integer whose digits are , , from left to right.
Given a -digit integer none of whose digits is , find .
Constraints
- is a -digit integer none of whose digits is .
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
123
Sample Output 1
666
We have .
Sample Input 2
999
Sample Output 2
2997
We have .
update @ 2024/3/10 10:11:07