语法练习
#include <iostream>
using namespace std;
int m, n;
int main(int argc, char** argv) {
cin >> m >> n;
for (int y = 0; y < m; ++y) {
for (int x = 0; x < n; ++x) {
if (x == n - 1) cout << "PUM";
else cout << y * n + x + 1 << ' ';
}
cout << endl;
}
return 0;
}