Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem E: 折行输出1..N
Problem E: 折行输出1..N
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
370
Solved:
251
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数
n和m
(1≤n≤100,1≤m≤10)
,
输出1..n,每行m个数值
每行数据之间空一格,如果每行只有一个数据,则不需要空格
Sample Input
Copy
7 4
Sample Output
Copy
1 2 3 4 5 6 7