当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

5847:Different Sums

Special Judge 特殊评判
题目描述
A subsum of the sequence is sum of one or more consecutive integers of it. You are given an integer $N$($1\leq N \leq 2000$ ). Your task is to make a sequence of integers which are less than $3(N+ 6)$, such that its all subsums ($N (N +1) / 2$ in total) are different from each other.
输入解释
There are several test cases.

The first line of the input contains an integer $T(1\leq T\leq 200 )$, the number of test cases.

Each of the next $T$ lines contains an integer ,$N$ the length of the sequence.
输出解释
For each test case, print one line with $N$ space separated integers representing your sequence.

If multiple solutions exist, any of them will be accepted.
输入样例
2
2
5
输出样例
1 2
1 2 4 8 16
来自杭电HDUOJ的附加信息
Author 金策工业综合大学(DPRK)
Recommend wange2014

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-5847

最后修改于 2020-10-25T23:26:08+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 65536/65536K(Java/Others)