#C4935. Special Binary Representation
Special Binary Representation
Special Binary Representation
You are given a positive integer \( n \) and your task is to generate an alternating binary string of length \( n \), starting with a '1'. That is, the first character is '1', the second is '0', the third is '1', and so on. For example, if \( n = 5 \), the resulting string should be "10101".
Input constraints: \( n \) is a positive integer (\( n \ge 1 \)).
Example:
Input: 3
Output: 101
inputFormat
The input consists of a single line containing one integer \( n \) indicating the length of the special binary string to generate.
outputFormat
Output a single line containing the special binary string of length \( n \). The string should alternate between '1' and '0' starting with '1'.
## sample1
1