問題文
In Tenkaichi Kingdom, integers are expressed by lexicographic comparison.刚到日本的大树 I decided to write out integers up to 1000 .
1 以上 1000 Sort the strings representing all the following integers in decimal numbers in ascending order by lexicographical comparison, When1 请按 行输出。
关于词典比较 对于
文字列 A , A_i 在 i 个字符, 带有 |A| 的字符串 如果我们选择表示 A 中的字符数,则字符串 A 和字符串 使用字典比较来比较 B 意味着:
- A_i \neq B_i 如果 i (1 \leq i \leq {\rm min}(|A|,\ |B|)) 反对
- A_i \lt{} B_i ,则字符串 A 是一个字符串 让它代表 B 小于
- A_i \gt{} B_i ,则字符串 A 是一个字符串 让它代表 B 大于
- 这样的 i 不存在,则字符数少的被认为较小。 字符串为
目的是确定 A 和字符串 使用字典比较来比较 B 的大小关系。
例如, 1, 2, 11, 12, 21 is sorted in ascending order by lexicographical comparison,
Example output up to 1, 11, 12, 2, 21 变为。
入力
没有针对此问题提供任何输入。 打印
出力
1 以上 1000 Sort the strings representing all the following integers in decimal numbers in ascending order by lexicographical comparison, When1 逐行输出。
请注意,行尾需要换行。 定义
1 减去 10 示例输出最多
1 10 2 3 4 5 6 7 8 9