Boolean
Boolean-20
Boolean-21
Boolean-22
~/algor $ cat problems/raqamlari-har-xilmi
Are the digits different?
Easy
1000 ms
64 MB
17%
A three-digit positive integer $n$ is given. Check whether the statement is true: “all digits of $n$ are different”.
Input
One three-digit positive integer $n$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$100 \le n \le 999$
Examples
Input #1
123
Output #1
1
Input #2
112
Output #2
0