#K10676. Chmod to Binary Converter
Chmod to Binary Converter
Chmod to Binary Converter
This problem involves converting a three-digit octal permission string into its corresponding binary representation. In UNIX-like systems, file permissions are often represented using octal notation. Each octal digit is converted into a 3-bit binary number. For example, the digit 7 corresponds to \(111\) in binary and 5 corresponds to \(101\). The final binary string is the concatenation of the three 3-bit groups.
Input: A string \(s\) representing a three-digit octal permission (e.g. 754).
Output: A 9-character binary string (e.g. 111101100).
inputFormat
The input consists of a single line containing a three-digit octal permission string \(s\). For example: 754
outputFormat
The output is a single line containing the 9-character binary representation of the input octal permission string. For example: 111101100
754
111101100