#`. XHXMMMlOPUlMFF#%/':
XHXMMMlOPUlMFF#%/':
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Statement
For an arbitrary binary string , let be the number of non-empty subsequences of that contain only , and let be the number of non-empty subsequences of that contain at least one .
Note that for and for , each subsequence is counted as many times as it appears in . E.g., .
We define the oneness of the binary string to be , where for an arbitrary integer , represents the absolute value of .
You are given a positive integer . Find a binary string of length such that its oneness is as small as possible. If there are multiple strings, you can print any of them.
A binary string is a string that only consists of characters and .
A sequence is a subsequence of a sequence if can be obtained from by the deletion of several (possibly, zero or all) elements. For example, subsequences of are , , , , but not nor .
Format
Input
The first line contains an integer ( ) — the number of test cases.
The only line of each test case contains an integer ( ) — the length of .
It is guaranteed that the sum of over all test cases does not exceed .
Output
For each test case, output on a new line. If multiple answers exist, output any.
Sample
3
1
2
3
0
01
010
ShanghaiTech ACM 炸鱼杯
- 状态
- 已结束
- 规则
- OI
- 题目
- 46
- 开始于
- 2024-12-10 23:00
- 结束于
- 2024-12-15 13:00
- 持续时间
- 110 小时
- 主持人
- 参赛人数
- 112