103410: [Atcoder]ABC341 A - Print 341
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:9
Solved:0
Description
Score: $100$ points
Problem Statement
Given a positive integer $N$, print a string of $N$ zeros and $N+1$ ones where 0
and 1
alternate.
Constraints
- $N$ is an integer.
- $1 \leq N \leq 100$
Input
The input is given from Standard Input in the following format:
$N$
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
Input
Output
得分:100分
问题描述
给定一个正整数N,打印一个包含N个0和N+1个1的字符串,其中0和1交替出现。
约束条件
- N是一个整数。
- 1 ≤ N ≤ 100
输入
输入通过标准输入给出以下格式:
$N$
输出
打印答案。
样例输入1
4
样例输出1
101010101
一个包含四个0和五个1的字符串,其中0和1交替出现的是101010101
。
样例输入2
1
样例输出2
101
样例输入3
10
样例输出3
101010101010101010101