#AT2037. A - Rotate
A - Rotate
当前没有测试数据。
A - Rotate
Score : $100$ points
Problem Statement
Let $xyz$ denote the $3$-digit integer whose digits are $x$, $y$, $z$ from left to right.
Given a $3$-digit integer $abc$ none of whose digits is $0$, find $abc+bca+cab$.
Constraints
- $abc$ is a $3$-digit integer $abc$ none of whose digits is $0$.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
123
666
We have $123+231+312=666$.
999
2997
We have $999+999+999=2997$.