F. [语言月赛202212] 数字口袋

    Type: RemoteJudge 1000ms 128MiB

[语言月赛202212] 数字口袋

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

小 A 有一个口袋,里面可以装整数。他从 11 开始,按从小到大的顺序,依次将每个整数装入口袋。

但是口袋是有限的,大小为 nn,这就是说,口袋里所有的数字的和不能够超过 nn。

输入格式

输入只有一行一个整数,表示整数 nn。

输出格式

输出若干行,每行一个整数,按从小到大的顺序输出口袋里的数字。

15
1
2
3
4
5
9
1
2
3

提示

数据规模与约定

  • 对于 40%40\% 的数据,n≤103n\le 10^3;
  • 对于 100%100\% 的数据,1≤n≤1091\le n \le 10^9。

2026~2027上学期初二1小测

Not Attended
Status
Done
Rule
IOI
Problem
7
Start at
2026-10-26 10:45
End at
2026-10-26 12:15
Duration
1.5 hour(s)
Host
Partic.
32