#abc341a. A - Print 341
A - Print 341
Score: points
问题描述
给定一个正整数 ,打印一个包含 个零和 个一的字符串,其中 0
和 1
交替出现。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Given a positive integer , print a string of zeros and ones where 0
and 1
alternate.
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
4
Sample Output 1
101010101
A string of four zeros and five ones where 0
and 1
alternate is 101010101
.
Sample Input 2
1
Sample Output 2
101
Sample Input 3
10
Sample Output 3
101010101010101010101
update @ 2024/3/10 01:33:50