问题

### Instructions: You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.
### Question:
Given a positive integer N, print a string of N zeros and N+1 ones where 0 and 1 alternate.

Input

The input is given from Standard Input in the following format:
N

Output

Print the answer.

Constraints


- N is an integer.
- 1 \leq N \leq 100

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

### Format: Read the inputs from stdin solve the problem and write the answer to stdout (do not directly test on the sample inputs). Enclose your code within delimiters as follows.
```python
# YOUR CODE HERE
```

### Answer: (use the provided format with backticks)

答案

模型 模型答案 正确答案
金声玉亮2.0 ```python
# YOUR CODE HERE
import sys
input = sys.stdin.read

N = int(input().strip())
result = ''.join(['10' for _ in range(N)]) + '1'
print(result)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
deepseek-r1

```python
n = int(input())
print('1' + '01' * n)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
gpto1 ```python
# YOUR CODE HERE
N = int(input())
result = '10' * N + '1'
print(result)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
gpt-4o-2024-08-06 ```python
# YOUR CODE HERE
def main():
import sys
input = sys.stdin.read
N = int(input().strip())

# We need N zeros and N+1 ones, alternating
result = []
for i in range(N):
result.append('10')
result.append('1') # Add the last '1' to make N+1 ones

# Join the list into a single string
print(''.join(result))

main()
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
DeepSeek-Coder-V2-Lite-Instruct ```python
# YOUR CODE HERE
N = int(input())
result = ''.join(['10'[i % 2] for i in range(N + 1)])
print(result)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
Meta-Llama-3.1-405B-Instruct-Turbo ```python
import sys

def solve(N):
ans = []
for i in range(N):
ans.append('1')
ans.append('0')
ans.append('1')
return ''.join(ans)

def main():
N = int(input())
print(solve(N))

if __name__ == "__main__":
main()
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
Meta-Llama-3.1-70B-Instruct-Turbo ```python
# YOUR CODE HERE
n = int(input())
print('10' * n + '1')
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
Qwen2-72B-Instruct ```python
n = int(input())
print('01'*n + '1')
```
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
baichuan4 ```python
# YOUR CODE HERE
N = int(input())
result = ""
for i in range(N):
result += "10"
result += "1"
print(result)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
doubao ```python
N = int(input())
result = ""
for i in range(2*N + 1):
if i % 2 == 0:
result += "1"
else:
result += "0"
print(result)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
gpto1 ```python
# YOUR CODE HERE
N = int(input())
result = '10' * N + '1'
print(result)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
kimi ```python
# YOUR CODE HERE
n = int(input())
print('1' + '01' * n)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
minimax ```python
# YOUR CODE HERE
N = int(input())
print('1' + '01' * N)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
wenxinyiyan ```python
# Read N from stdin
N = int(input())

# Generate and print the alternating string of zeros and ones
output_str = '1' # Start with '1'
for _ in range(N):
output_str += '01' # Alternate between '0' and '1'
print(output_str)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
zhipu ```python
import sys

def main():
input = sys.stdin.read
N = int(input().strip())
result = '10' * N + '1'
print(result)

if __name__ == "__main__":
main()
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]
deepseek-v3 ```python
# YOUR CODE HERE
N = int(input())
result = ''
for i in range(2 * N + 1):
if i % 2 == 0:
result += '1'
else:
result += '0'
print(result)
```
[{"input": "4\n", "output": "101010101\n", "testtype": "stdin"}, {"input": "1\n", "output": "101\n", "testtype": "stdin"}, {"input": "10\n", "output": "101010101010101010101\n", "testtype": "stdin"}]