mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-09 01:58:48 +00:00
17 lines
267 B
C++
17 lines
267 B
C++
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int n, m, c;
|
||
|
|
||
|
int main() {
|
||
|
cin >> n >> m;
|
||
|
for (int i = 1; i <= n; i++, c++) {
|
||
|
for (int j = 1; j < m; j++) {
|
||
|
cout << ++c << ' ';
|
||
|
}
|
||
|
cout << "PUM" << endl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|