⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 text.txt

📁 北京大学ACM比赛题目 Consider an infinite full binary search tree (see the figure below), the numbers in the
💻 TXT
字号:
Input

In the input, the first line contains an integer N, which represents the number of queries. In the next N lines, each contains a number representing a subtree with root number X (1 <= X <= 231 - 1). 
Output

There are N lines in total, the i-th of which contains the answer for the i-th query.
Sample Input

2
8
10

Sample Output

1 15
9 11


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -